• 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);
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic