[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/24042] New: JEditorPane Scrollable not properly implemented
From: |
abalkiss at redhat dot com |
Subject: |
[Bug swing/24042] New: JEditorPane Scrollable not properly implemented |
Date: |
23 Sep 2005 19:35:33 -0000 |
the getScrollableTracksViewportHeight and getScrollableTracksViewportWidth
methods are not properly implemented. We currently implement them to return
false all the time but the following test case shows that's not true.
***TESTCASE***
Expected output: false, false, false, false, true, true (actually on newlines)
Actual output: false, false, false, false, false, false
import javax.swing.*;
public class Test
{
public static void main (String[] args)
{
JEditorPane pane = new JEditorPane();
System.out.println (""+pane.getScrollableTracksViewportWidth());
System.out.println (""+pane.getScrollableTracksViewportHeight());
JScrollPane js = new JScrollPane(pane);
System.out.println (""+pane.getScrollableTracksViewportWidth());
System.out.println (""+pane.getScrollableTracksViewportHeight());
JFrame jf = new JFrame();
jf.add(js);
jf.pack();
jf.show();
System.out.println (""+pane.getScrollableTracksViewportWidth());
System.out.println (""+pane.getScrollableTracksViewportHeight());
}
}
--
Summary: JEditorPane Scrollable not properly implemented
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: swing
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: abalkiss at redhat dot com
CC: bug-classpath at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24042
- [Bug swing/24042] New: JEditorPane Scrollable not properly implemented,
abalkiss at redhat dot com <=