File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes scrollPane.getHorizontalScrollBar().setValue Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "scrollPane.getHorizontalScrollBar().setValue Problem" Watch "scrollPane.getHorizontalScrollBar().setValue Problem" New topic
Author

scrollPane.getHorizontalScrollBar().setValue Problem

comus leong
Greenhorn

Joined: Jun 01, 2012
Posts: 1
hi, i want setValue to the end of the scrollBar. but fail.

here is the code, result is picture1


but, but , but it is successful when i type this code twice.
here is the code, result is in picture2


please help me and can i type this code once to solve this problem?



[Thumbnail for 1.png]


[Thumbnail for 2.png]

Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Hello comus and welcome to the Ranch! The code snippet does not provide enough information for a definitive answer. To get better help sooner, post a SSCCE (Short, Self Contained, Correct (Compilable), Example) that demonstrates the problem.

Are the scroll pane and its content realized at the time you call getMaximum()?


luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: scrollPane.getHorizontalScrollBar().setValue Problem
 
Similar Threads
mouseClicked event for the "Cancel button"
Unable to populate Data in Jtable from Sparql result
Connect to a remote host using JSch
Adding array list to JList - MVC - Getting nothing but memory addresses!
Switching between two forms