[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-classpath] [bug #13524] swing: JTextArea's scroll bar is shown only
From: |
Timo Lindfors |
Subject: |
[bug-classpath] [bug #13524] swing: JTextArea's scroll bar is shown only after window resize |
Date: |
Thu, 23 Jun 2005 14:42:07 +0000 |
User-agent: |
Elinks |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13524>
Summary: swing: JTextArea's scroll bar is shown only after
window resize
Project: classpath
Submitted by: lindi
Submitted on: Thu 06/23/05 at 14:42
Category: classpath
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Platform Version: None
_______________________________________________________
Details:
Steps to reproduce:
1. Compile and run the attached testcase.
Expected results:
1. A window with textarea shows up. Lines 0-18 and vertical scroll bar are
visible. (Sun's jdk shows horizontal scroll bar too but that is unnecessary.)
Actual results:
1. A window with textarea shows up. Lines 0-20 are visible but there are no
visible scroll bars.
Testcase:
import javax.swing.*;
public class testcase extends JFrame {
public static void main(String[] args) {
new testcase().show();
}
public testcase() {
JTextArea area = new JTextArea(20, 45);
JScrollPane scrollpane = new JScrollPane(area);
this.setContentPane(scrollpane);
this.pack();
for (int i=0; i<80; i++) {
area.append("line#" + i + "\n");
}
}
}
Note that if you resize the window then vertical scroll bar is shown
correctly.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13524>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-classpath] [bug #13524] swing: JTextArea's scroll bar is shown only after window resize,
Timo Lindfors <=