Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Why are no components displaying? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Why are no components displaying? " Watch "Why are no components displaying? " New topic
Author

Why are no components displaying?

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
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

Joined: Jan 22, 2004
Posts: 401
scrollPaneHolder.setSize(400, 400);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why are no components displaying?
 
Similar Threads
Scroll ........i need help
ScrollPane
what's the possible reason?
Browse picture in JScrollpane !!!
Panel in ScrollPane