This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 71994 - Add module dependency dlg size issues
Summary: Add module dependency dlg size issues
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on: 114932
Blocks:
  Show dependency tree
 
Reported: 2006-01-30 06:13 UTC by _ tboudreau
Modified: 2007-09-06 18:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2006-01-30 06:13:18 UTC
I find I almost always resize the Add Module Dependency dialog whenever I open 
it - I've seen other users do this too.  

Two issues here:
 - It's particularly frustrating that it does not remember the size I resized 
it too the last time - I often end up slowly and painfully manually multi-
selecting things rather than typing a class name, just so I don't have to keep 
reopening and resizing the dialog
 - It should probably have a somewhat bigger default size
Comment 1 Martin Krauskopf 2006-01-30 12:23:20 UTC
I've already make default size little larger (since the "Show Non-API modules"
checkbox were added). Remebering would be nice - at least during the IDE session.
Comment 2 Martin Krauskopf 2006-02-06 13:50:42 UTC
The "Rectangle" is kept per IDE session.

ui/customizer/CustomizerLibraries.java; 1.44 -> 1.45;
Comment 3 Jesse Glick 2006-02-06 17:31:38 UTC
This was *not* fixed in 5.0u1 as of the freeze point.
Comment 4 Martin Krauskopf 2006-02-07 12:07:33 UTC
Backported
Comment 5 _ tboudreau 2006-02-07 20:48:25 UTC
Suggest you also keep the screen size, and if it is not the same as when the 
rectangle was recorded, ignore the rectangle - otherwise this can cause 
problems when switching displays, resolutions, etc. (if you do a lot of demos 
on projectors it can be really embarrassing if a dlg shows up with all its 
edges off screen).
Comment 6 Martin Krauskopf 2006-02-08 04:53:39 UTC
> Suggest you also keep the screen size, and if it is not the same as when the 
> rectangle was recorded, ignore the rectangle

Umm, no. I do not count (with) screensize at all. Since the user can hardly
resize a dialog out of screensize bounds - which solves 99% per IDE session
cases <- so dialog bounds (Rectangle) are kept per IDE session size. So when you
start NetBeans later with another resolution, the dialog appears with the
original size and after you resize it, it will be remembered in the session.
I would create simple method in UIUtil.getRemeberedSize(Class key) or something
like this which would handle resolution (since now I handle all (two) cases
separerately... which is not nice) - if such a simple method doesn't exist
already? (I filed issue 72380)
Comment 7 Tomas Danek 2006-03-21 14:00:52 UTC
works if dialog is acessed from customizer, but if not via libraries node:
1)create some module
2)invoke dialog via libraries node, resize it, add some dependency, close it
3)invoke again ->size is not remembered
Comment 8 Martin Krauskopf 2006-08-10 11:10:27 UTC
Right, should be easy to fix. For similar general "discussion" see issue 72380.
Comment 9 Martin Krauskopf 2007-08-15 14:56:25 UTC
src/org/netbeans/modules/apisupport/project/ui/LibrariesNode.java;
new revision: 1.20; previous revision: 1.19
src/org/netbeans/modules/apisupport/project/ui/customizer/AddModulePanel.java;
new revision: 1.43; previous revision: 1.42
src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.java;
new revision: 1.52; previous revision: 1.51