This breaks scrolling in many test apps, attached is a sample. --Tony
On Tue, 2005-10-18 at 10:03 +0000, Roman Kennke wrote: > Hi, > > This fixes some issues with JViewport. > > 2005-10-18 Roman Kennke <[EMAIL PROTECTED]> > > * javax/swing/JViewport.java > (setView): Added repaint() call. > (revalidate): Removed unnecessary and unspecified method. > (reshape): Fire stateChanged if only the size changes. Do not fire > stateChanged if only the location changes. > (scrollRectToVisible): Reworked most of this method to correctly > determine the scroll offsets. Added validation of view as > specified. > > /Roman > _______________________________________________ > Classpath-patches mailing list > Classpath-patches@gnu.org > http://lists.gnu.org/mailman/listinfo/classpath-patches
import javax.swing.*; public class TestListBig { public static void main (String[] args) { JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); DefaultListModel v = new DefaultListModel(); v.addElement("alsdkfj"); v.addElement("lasdkfj"); v.addElement("owieur"); v.addElement("weoiru"); v.addElement("lskdfj"); v.addElement("alsdkfj"); v.addElement("lasdkfj"); v.addElement("owieur"); v.addElement("weoiru"); v.addElement("lskdfj"); v.addElement("alsdkfj"); v.addElement("lasdkfj"); v.addElement("owieur"); v.addElement("weoiru"); v.addElement("lskdfj"); v.addElement("alsdkfj"); v.addElement("lasdkfj"); v.addElement("owieur"); v.addElement("weoiru"); v.addElement("lskdfj"); v.addElement("alsdkfj"); v.addElement("lasdkfj"); v.addElement("owieur"); v.addElement("weoiru"); v.addElement("lskdfj"); JList a = new JList(v); JScrollPane p = new JScrollPane(a); f.getContentPane().add(p); f.pack(); f.show(); } }
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches