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.
Linux(gnome or kde) with ATI graphics card: openJDK: NetBeans cannot detect the correct screen size and produces some dialog windows which are too long (compared to running NetBeans on windows or older versions of NetBeans) on the Y axis. eg: project deletion dialog This might be an openJDK bug as I saw the same behavior in a particular NetBeans installer window. If so then please report this bug to openJDK and sorry for this misplaced bug.
cordisvictor, please file the bug report with all the specifics of your configuration at http://bugreport.sun.com/bugreport/ against "JDK/JRE" product, "classes_awt" subcategory. The report will need to list the JDK version, the graphics card specification, linux version, maybe other details they ask you for. The incorrect values are returned presumably from: GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration().getBounds()
It seemed you where right, but just as I was about to submit a bug report on OpenJDK, I decided to make a small set of tests: 1) Is this a general issue? Yes, it occurs on both my desktop and laptop (both: Linux , ATI, OpenJDK) 2) Is this ATI video driver related? No, I specially uninstalled the driver, restarted and got the exact same results. This did not happen prior to NB 6.8 using the same ATI driver. 3) Is this OpenJDK related? No, it does not occur with other Java apps like Open Office or a self made Java app which uses the following: "GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration().getBounds()" ==> The issue does not occur with other apps which run on the same OpenJDK nor with NB prior to 6.8. The OpenJDK getBounds() works ok, I tested it. ==> The is some NB bug which persists since 6.8 OR is an OpenJDK bug OTHER THAN "getBounds()" Isn't there some other bounds related lines in the dialog code ?
Created attachment 108606 [details] The issue occuring
Pretty good evaluation from reporter - I guess we should at least look at this once again.
Reassigning to Dialogs&Wizards for evaluation. Stando, any changes since 6.8 that could regress the screen size detection for the dialogs regardless of any possible graphics card / openjdk issue?
I have just done some testing and I managed to reproduce the bug on another Java app ( ARGO UML). So this must be an OpenJDK bug, but I must know what calls does NetBeans use which OpenJDK does not execute correctly before I can submit an OpenJDK bug report. Thanks in advance
(In reply to comment #6) > I have just done some testing and I managed to reproduce the bug on another > Java app ( ARGO UML). > > So this must be an OpenJDK bug, but I must know what calls does NetBeans use > which OpenJDK does not execute correctly before I can submit an OpenJDK bug > report. > > Thanks in advance see org.openide.util.findCenterBounds but the problem might be in the JDK code that computes dialogs preferred size.