JScrollPane
PostPosted: Mon May 11, 2009 2:38 pm
Stupid bug in a Java project--my final project, actually.
So I'm reading schtuff from an Access database, and the program itself is basically a shopping cart. Someone clicks an item in a list box, and a JTextArea, affixed to a JScrollPane, displays the name, price, description, etc. Problem is, when I select an item, the scroll bar jumps to midway in its track or lower, it won't just hover and chill at the top. The API documentation and Java tutorials haven't helped, and the prof has no clue either (though that's a perpetual state for this adjunct lady.)
Any Java code monkeys here have any ideas on how to get the behavior I want out of this infernal Swing component?
So I'm reading schtuff from an Access database, and the program itself is basically a shopping cart. Someone clicks an item in a list box, and a JTextArea, affixed to a JScrollPane, displays the name, price, description, etc. Problem is, when I select an item, the scroll bar jumps to midway in its track or lower, it won't just hover and chill at the top. The API documentation and Java tutorials haven't helped, and the prof has no clue either (though that's a perpetual state for this adjunct lady.)
Any Java code monkeys here have any ideas on how to get the behavior I want out of this infernal Swing component?