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 72380

Summary: Dialogs remembering their sizes should check OS screen resolution
Product: apisupport Reporter: Martin Krauskopf <mkrauskopf>
Component: ProjectAssignee: rmichalsky <rmichalsky>
Severity: blocker CC: tboudreau
Priority: P4 Keywords: UI
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 72586    
Bug Blocks:    

Description Martin Krauskopf 2006-02-08 04:51:14 UTC
See issue #71994 for more details. Consider to file a general RFE (this has to
be problem of all such dialogs). However with Utilities.getUsableScreenBounds()
probably short boilerplate.
Comment 1 _ tboudreau 2006-02-11 20:05:55 UTC
What I'd suggest:  Refile this against core/windows with the following 
requirement:  When requesting a dialog, you should be able to pass a string 
token, which DialogDisplayer can use to request a saved preferred size for a 
dialog, and any calculation about screen size should be done there.  I don't 
think this should be done just for apisupport, everybody has this problem.
Comment 2 Martin Krauskopf 2006-08-10 11:07:43 UTC
Then you would have to be also able to set the "saved preferred size". Something

/** @param token the token you pass to createDialog() (e.g. fqn) */
DialogDescriptor.getDefault().putPreferedSize(String token, java.awt.Rectangle r)

Since after Dialog is returned from DD.createDialog(desc) it is not tracked by
DD anymore (?). So after the user changes the size, closes the dialog, then you
want to remeber the size.
Or did I misunderstood your idea?
Comment 3 _ tboudreau 2006-08-10 23:24:40 UTC
That sounds like about it.
Comment 4 Martin Krauskopf 2006-08-11 08:09:22 UTC
Umm, I missed that I've already filed it (see dependency). So we should discuss
it there.
Comment 5 Martin Krauskopf 2008-02-07 17:50:58 UTC
I'm not working on APISupport anymore. Reassigning to owner of the component, so
the issue is not 'forgotten' forever.
Comment 6 rmichalsky 2008-11-24 15:05:23 UTC
Not into 7.0 or next release. Feel free to reopen if more important than it seems.
Comment 7 Quality Engineering 2009-11-02 11:04:35 UTC Migration: changing resolution from LATER to WONTFIX