I'm having trouble getting a JScrollpane to do what it is supposed to do, ie enable scrolling.
What I want to do is add scrolling to a JList. I have coded the following:
jScrollPane1 = new javax.swing.JScrollPane();
Then I add items to the list using:
When I then add items to the list, I see them added just fine, but once the entire list is filled on screen, no scrollbar appears though items continue to be added.
Thank you for your help Rachel. After seeing your bit of code work fine, my error turned out to be far more elementary than I'd feared (unreachable code because of a careless comment.... highly embarrasing ).
rgds, Maarten
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop