aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes how to add scrollpane for a jpanel with null layout manager. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to add scrollpane for a jpanel with null layout manager." Watch "how to add scrollpane for a jpanel with null layout manager." New topic
Author

how to add scrollpane for a jpanel with null layout manager.

Lalchand omprakash
Greenhorn

Joined: May 30, 2009
Posts: 12
I include a JPanel with a null layout in a JScrollPane, and it doesn't display the scrollbars. Why?

but its working with layout manager

pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
cross-post: http://forums.sun.com/thread.jspa?threadID=5448367&tstart=0

Lalchand, you've been warned in other fora about cross-posting without notification, and this basic forum etiquette is no different here. Please read this link to see why this is important to the volunteers here and at other fora: BeForthrightWhenCrossPostingToOtherSites

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19723
    
  20

Hint: what's the preferred size of the panel with null layout manager? And why does it have this size?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
jQuery in Action, 2nd edition
 
subject: how to add scrollpane for a jpanel with null layout manager.