bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22881] JPanel.setBorder does not seem to affect layout at


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22881] JPanel.setBorder does not seem to affect layout at all
Date: 16 Oct 2005 01:27:33 -0000

Steps to reproduce:
1. Compile and run the attached testcase (used jamvm 1.4.1 and classpath cvs
HEAD)

Expected results:
1. A window shows up. It contains a JTextField surrounded by a thick red
border.

Actual results:
1. A small window shows up. It contains a JTextField but the border is hardly
visible. Border can be seen if the window is resized.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2005-04-20 
15:28 -------
It seems that JFrame (and java.awt.Frame for that matter) somehow do not handle
the window decorations correctly. JFrame.pack sets the window size to the
preferred size of its components, but the _outer_ window size (including
decorations) instead of the inner window size. I'm looking into this.


------- Comment #2 from from-classpath at savannah dot gnu dot org  2005-04-22 
20:50 -------
This was actually a mix of faulty layout behaviuor in BoxLayout and faulty
handling of window insets in Window.pack(). Both are fixed and the example
works fine. I close this bug.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22881





reply via email to

[Prev in Thread] Current Thread [Next in Thread]