DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2008
    Location
    Switzerland
    Posts
    11

    Scrolling JScrollPane as credit window - ui update?

    Hi

    I would like to have a little credits-window and I tried to do it with a JScrollPane inside a JWindow. I want to let the content sroll upwards slowly, but my problem is that the content doesnt get updatet when I am scrolling it.

    I am scrolling it by getting the vertical scrollbar of the JScrollPane, and then changing the value...

    Code:
    		JScrollPane jsp = new JScrollPane(...a panel with content...);
    		JScrollBar jsb = jsp.getVerticalScrollBar();;
    		int value = jsb.getValue();
    		
    		for ( int count = 0; count < 100; count++ ) {
    			
    			try {
    				Thread.sleep(300);
    			} catch (Exception e) {}
    			
    			value += 1;
    			jsb.setValue(value);
    			
    			jsp.updateUI();
    			
    		}
    Can anyone give me a hint?

    thanks

  2. #2
    Join Date
    May 2007
    Posts
    843
    I also want to know.

Similar Threads

  1. Regarding closing a pop window
    By Usha.R in forum ASP.NET
    Replies: 1
    Last Post: 02-14-2006, 03:30 AM
  2. Forcing Property Window to Update
    By Michael Welch in forum .NET
    Replies: 1
    Last Post: 12-07-2001, 10:14 AM
  3. Replies: 0
    Last Post: 12-08-2000, 11:49 AM
  4. child window - is it or isn't it?
    By TC in forum VB Classic
    Replies: 8
    Last Post: 09-26-2000, 02:34 AM
  5. child window - is it or isn't it?
    By TC in forum VB Classic
    Replies: 0
    Last Post: 09-25-2000, 09:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links