This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why are no components displaying?

 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm just experimenting with setBounds() and setLayout(null). But the following code doesn't work unless the scrollPaneHolder.setLayout(null) line is commented out.

Does anyone know why?

(What I am trying to achieve is to set the position of the scrollPane manually so that it's grey border is not visible.)

Cheers,
James

 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
scrollPaneHolder.setSize(400, 400);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic