This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
Pie
Posts: 9258
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