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.
Summary: | Make NetBeans work smoothly with multiple monitors (Xinerama mode) | ||
---|---|---|---|
Product: | platform | Reporter: | _ ttran <ttran> |
Component: | -- Other -- | Assignee: | _ ttran <ttran> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | jglick, jtulach |
Priority: | P2 | Keywords: | API, UI |
Version: | 3.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
Diff against org.openide.util.Utilities which adds the new methods
The whole diff to solve this issues I suggest to start with these (smaller) API changes. They work just on "current" monitor but up to now all usages of the API also care just about current monitor... |
Description
_ ttran
2002-02-26 09:34:15 UTC
I'll have to add these methods in org.openide.util.Utilities public static GraphicsConfiguration getCurrentGraphicsConfiguration(); public static Rectangle getUsableScreenBounds(GraphicsConfiguration gconf); public static Rectangle getCenterBounds(Dimension componentSize); public static Rectangle getCenterBounds(GraphicsConfiguration gconf, Dimension componentSize); and deprecate Utilities.getScreenSize() A HOWTO document is being written and will be published. I am not sure that Utilities is the right place to add those methods. Should not these be part of org.openide.windows package for example WindowManager class? Anyway, before adding these methods, it would be nice to know the sample usage and have demo tests. I am looking for the docs to learn more. WindowManager is not the right place. What I need is a place to hang the static helper methods. org.openide.util.Utilities seems a good candidate. It already contains getScreenSize() [which I am going to deprecate :-)] and a whole lot of platform specific things. Perhaps WindowUtils or WindowUtilities is better named class, but I don't want to invent a new class just for this purpose. I am going to attach a diff for reviews Created attachment 4829 [details]
Diff against org.openide.util.Utilities which adds the new methods
Created attachment 4830 [details]
The whole diff to solve this issues
Created attachment 4844 [details]
I suggest to start with these (smaller) API changes. They work just on "current" monitor but up to now all usages of the API also care just about current monitor...
implemented in 3.4 dev 20020301 Yup, hard to verify without two monitors ;-) Marking as verified. Resolved for 3.4.x or earlier, no new info since then -> closing. |