Bug 452573
| Summary: | Bad window size calculation after using pack() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Robert Marcano <robert> | ||||||||||
| Component: | java-1.6.0-openjdk | Assignee: | Lillian Angel <langel> | ||||||||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||
| Severity: | low | Docs Contact: | |||||||||||
| Priority: | low | ||||||||||||
| Version: | 9 | CC: | langel, lkundrak, mjw, omajid, steven.moix, uckelman | ||||||||||
| Target Milestone: | --- | Keywords: | Reopened | ||||||||||
| Target Release: | --- | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | Environment: | ||||||||||||
| Last Closed: | 2009-02-02 15:41:02 UTC | Type: | --- | ||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||
| Documentation: | --- | CRM: | |||||||||||
| Verified Versions: | Category: | --- | |||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
| Embargoed: | |||||||||||||
| Attachments: |
|
||||||||||||
Created attachment 310067 [details]
Test case
Created attachment 310068 [details]
OpenJDK screenshot
See the empty are below. It happens using compiz and metacity, so it does not
looks like a Window Manager related problem at first sight
Created attachment 310069 [details]
Sun Java Screenshot
Screenshot taken using the Sun Java
I confirmed this and reported it upstream to Sun. Sun says this is not a bug, and intentional. Closing http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6721088 Created attachment 311852 [details]
Bug demostration
I am sorry but this is a bad review from Sun, the new attached image shows the
minimum size of a window on Windows, and a the JFrame shown on Linux with the
problem, as you noticed the smallest window size has nothing to do with the bad
pack() behaviour. I will be adding comments to the Sun bug, please reopen this
in order to keep track of it
sure thx *** Bug 478594 has been marked as a duplicate of this bug. *** *** Bug 466620 has been marked as a duplicate of this bug. *** will be in the next release. this should be in rawhide within the next couple of days: http://koji.fedoraproject.org/koji/taskinfo?taskID=1098935 java-1.6.0-openjdk-1.6.0.0-9.b14.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: The pack() method of the Window class allow to resize the window based on the contents preferred sizes, when using OpenJDK on the following example, the window always have a empty area below (that does not happens of the Sun Java binaries) JFrame frame = new JFrame(); JPanel panel = new JPanel(new FlowLayout()); panel.add(new JButton("Testing...")); frame.setContentPane(panel); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); frame.pack(); frame.setVisible(true); Version-Release number of selected component (if applicable): java-1.6.0-openjdk-1.6.0.0-0.15.b09.fc9.i386 See attached test case, and comparison screen shots Additional info: the font selection looks different too, but I think that is related to the better font selection than the SUN Java do when using the GTK Look and Feel.