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 197517 - NetBeans Dialogs cannot detect the correct screen size on linux+ATI+openJDK
Summary: NetBeans Dialogs cannot detect the correct screen size on linux+ATI+openJDK
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2011-04-07 00:29 UTC by cordisvictor
Modified: 2011-10-18 12:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The issue occuring (75.68 KB, image/png)
2011-05-30 19:49 UTC, cordisvictor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cordisvictor 2011-04-07 00:29:15 UTC
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.
Comment 1 Antonin Nebuzelsky 2011-05-30 16:41:08 UTC
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()
Comment 2 cordisvictor 2011-05-30 19:16:14 UTC
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 ?
Comment 3 cordisvictor 2011-05-30 19:49:55 UTC
Created attachment 108606 [details]
The issue occuring
Comment 4 Marian Mirilovic 2011-06-09 09:46:23 UTC
Pretty good evaluation from reporter - I guess we should at least look at this once again.
Comment 5 Antonin Nebuzelsky 2011-06-09 11:38:16 UTC
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?
Comment 6 cordisvictor 2011-08-03 21:15:24 UTC
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
Comment 7 Stanislav Aubrecht 2011-10-18 12:33:53 UTC
(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.