Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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