Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to use JScrollPane and JViewPort?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
giuseppe105




PostPosted: Thu Jan 28, 2010 10:57 pm   Post subject: How to use JScrollPane and JViewPort?

I have a program.

There is a ScrollPane and inside that scroll pane is a JPanel. inside the Jpanel i am useing paint to call g.drawImage. how do i make the scroll bars work with my image i looked at the littel to no documentation and i think i need to set a viewport.

Dose anyone on this forum know how to make a view port or how to use jscrollpane for what i am trying to accomplish?
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: