• Post Reply Bookmark Topic Watch Topic
  • New Topic

ScrollBar(VERY URGENT PLEASE)

 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
As page go down and up, I want to scrollup and down according to the size of the page???
would you please send me simple example?
Thanks,
Angela
 
anu mani
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is are two static int variables for the JScrollPane which can help you.
These variables will be seen as and when the length of the original document increases.
1. public static final int VERTICAL_SCROLLBAR_AS_NEEDED
2. public static final int HORIZONTAL_SCROLLBAR_AS_NEEDED
Thanks,
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use AWT only,,,
Thanks,
Angela
 
Ali Hassaan
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ScrollPane scroll;
scroll=new ScrollPane(scroll.SCROLLBAR_AS_NEEDED);
and then add this scrollpane in ur form...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!