[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-classpath] [bug #13814] swing: JScrollPane is not repainted correct
From: |
Timo Lindfors |
Subject: |
[bug-classpath] [bug #13814] swing: JScrollPane is not repainted correctly after window resize |
Date: |
Fri, 15 Jul 2005 14:47:59 +0000 |
User-agent: |
Elinks |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13814>
Summary: swing: JScrollPane is not repainted correctly after
window resize
Project: classpath
Submitted by: lindi
Submitted on: Fri 07/15/05 at 14:47
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.
2. Scroll the textarea by dragging the scrollbar.
3. Resize the window.
4. Scroll the textarea by dragging the scrollbar.
Expected results:
2&4. Textarea scrolls as expected.
Actual results:
2. Textarea scrolls as expected.
4. Textarea scrolls but only lines 0-17 are visible, all others are
invisible.
Testcase:
import javax.swing.*;
import java.awt.*;
public class testcase extends JFrame {
public static void main(String[] args) {
new testcase().show();
}
public testcase() {
String text = "";
for (int i=0; i<80; i++)
text += i + "\n";
JTextArea area = new JTextArea(text);
JScrollPane scrollpane = new JScrollPane(area);
this.setContentPane(scrollpane);
this.setSize(new Dimension(100,300));
}
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13814>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-classpath] [bug #13814] swing: JScrollPane is not repainted correctly after window resize,
Timo Lindfors <=