-
Bug
-
Resolution: Won't Fix
-
P2
-
None
-
5.0
-
generic
-
windows_2000
This bug is reproducible with Java Control Panel (available with JRE). In 1.5 the Control Panel uses JTextArea components with word wrap. The pack() method does not determine the size of the Control Panel correctly if setLineWrap(true);
setWrapStyleWord(true); are set on the JTextArea components. This causes some components of Control Panel to show up off the viewable area.
Control Panel is localized application, and in different languages the size of each text area will change. In order to make Control Panel show up correctly in all locals this has to be fixed.
I am attaching an easy test case which demonstrates the problem. If you comment out lines where you set the word line wrap to true, the frame will pack and show up correctly.
setWrapStyleWord(true); are set on the JTextArea components. This causes some components of Control Panel to show up off the viewable area.
Control Panel is localized application, and in different languages the size of each text area will change. In order to make Control Panel show up correctly in all locals this has to be fixed.
I am attaching an easy test case which demonstrates the problem. If you comment out lines where you set the word line wrap to true, the frame will pack and show up correctly.
- relates to
-
JDK-5037834 Repaint issue if we set html having color setting as text on JRadioButton
-
- Open
-
-
JDK-4446522 JTextArea.getPreferredSize() incorrect when line wrapping is used
-
- Resolved
-
-
JDK-5008122 Korean: Java Web Start-add entry, buttons are stuck to the bottom of the page
-
- Resolved
-
-
JDK-4920211 Buttons truncated in ControlPanel
-
- Closed
-