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.
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.
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.
Then you would have to be also able to set the "saved preferred size". Something like: /** @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?
That sounds like about it.
Umm, I missed that I've already filed it (see dependency). So we should discuss it there.
I'm not working on APISupport anymore. Reassigning to owner of the component, so the issue is not 'forgotten' forever.
Not into 7.0 or next release. Feel free to reopen if more important than it seems.
NetBeans.org Migration: changing resolution from LATER to WONTFIX