• Post Reply Bookmark Topic Watch Topic
  • New Topic

using scrollbars to translate components on a panel

 
george justin
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am facing problem moving components like canvas on a panel
i am using BorderLayout to lay the component, with scrollbars and panel at south,east and center, but set size does not work and all the components laid out are not drawn on container(panel)

please help me set the size of the panel with all components laid and movement with scrollbar
thanks
George
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i hope your using Java 2. if so, put the Canvas in a JScrollPane and add this one to the frame container.
chantal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!