Bug 23039 - Swing: JScrollPane/JViewPort broken
Summary: Swing: JScrollPane/JViewPort broken
Status: RESOLVED DUPLICATE of bug 23041
Alias: None
Product: classpath
Classification: Unclassified
Component: swing (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-14 08:50 UTC by from-classpath
Modified: 2005-08-08 18:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description from-classpath 2005-07-14 08:50:21 UTC
Classpath CVS 20050714

At the moment, JScrollPane (and/or JViewPort) are completely
broken. Whenever the target component is larger than the
current JScrollPane size, only the top-left part of the
target component is shown.

Scrolling to the bottom and right leaves the bottom and
right parts of the JScrollPane blank. This happens in all
JScrollPanes that I tested. For example, you cannot select
all files from a JFileChooser because scrolling through
the file list does not work.

I attach a screenshot that shows the bug in one of my test
applications: the JTree on the left should actually show
more files, and the image canvas on the right should be
filled completely. Instead, only the top-left parts of the
JTree and the image are painted.

Note that the scrollbar thumb size seems to be calculated
correctly, and the target component offset seems to be
correct, too. (It might even be that the clip-region for
painting the target component is wrong and everyhting else
works, but I did not investigate).
Comment 1 Mark Wielaard 2005-08-08 18:54:32 UTC

*** This bug has been marked as a duplicate of 23041 ***