Bug 478594
| Summary: | Wrong BorderLayout management in JFrames | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Steven Moix <steven.moix> | ||||||||
| Component: | java-1.6.0-openjdk | Assignee: | Lillian Angel <langel> | ||||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 10 | CC: | dbhole, langel, lkundrak, mjw, omajid | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2009-01-09 19:04:04 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 328041 [details]
OpenJDK result
Created attachment 328042 [details]
Expected result with Sun JDK
The problem is caused by a mistake in the calculation of the window size. Fixed upstream: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2009-January/004455.html *** This bug has been marked as a duplicate of bug 452573 *** |
Created attachment 328040 [details] Test program to see the behaviour Description of problem: OpenJDK has a bad behavior when it comes to display standard BorderLayout-based Swing GUIs. The BorderLayout.CENTER pane is always displayed even if there is nothing in it. Version-Release number of selected component (if applicable): java-1.6.0-openjdk-devel-1.6.0.0-7.b12.fc10.x86_64 java-1.6.0-openjdk-1.6.0.0-7.b12.fc10.x86_64 How reproducible: Always Steps to Reproduce: 1. Download the attached code (Main.java) 2. javac Main.java 3. java Main Actual results: You'll see a grey zone that shouldn't exist. Expected results: Only a green and red zone. Additional info: It works perfectly (expected result) with Sun's dk-6u11 (jdk-1.6.0_11-fcs.x86_64). The same good result can be seen on any Windows or OSX machine running JDK 1.5 or 1.6.