• Post Reply Bookmark Topic Watch Topic
  • New Topic

JScrollerPane

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to display a JPanel in a JScroller Pane on a JInternalFrame.
If I use a normal ScrollerPane it works but when I use the same code using JScrollerPane instead of JPane it only displays a portion of the JPanel and doesn't display and scroll bars.
Any help, sample code would be appreciated.
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Paul,
i'm a bit confused by your description - do you mean you first tried ScrollPane over an JPanel, than JScrollPane over an JPanel? I used JScrollPane with JTable and JPanel and it works:
JPanel panel = new JPanel();
myContainer.add(new JScrollPane(panel));
chantal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!