Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ScrollPane problem

 
Anirban dutta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
I have a TabbedPane. In this tabbedpane I am adding a panel(it's contents are described below) at tab position 0. The contents of the panel are as follows :
A ScrollPane in which I have added a panel containing a Label and TextField with GridBagLayout. This scrollpane is added to the panel above which is added in the tabbed pane.
Now my problem is that the panel added to the scrollpane is not shown. But the ScrollPane itself is shown. I could not get the problem. If anyone can help me then I will be really grateful to him/her.
Thanks and regards
 
Joe Ess
Bartender
Posts: 9300
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show us the code.
 
Anirban dutta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Joe,
Thank you for your concern. Actually I have solved the problem. The problem was that I was adding components to the scrollbar directly, instead of adding to the viewport.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic