File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Scroll Pane not visible on Frame window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Scroll Pane not visible on Frame window" Watch "Scroll Pane not visible on Frame window" New topic

Scroll Pane not visible on Frame window

vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
I have a class extending from JFrame.
I created a JPanel and created a JscrollPane like foll..

panelInput=new JPanel();
scrollPane = new JScrollPane(panelInput);
The scrollpane is not visible when i execute the program..what may be happened??
any help??
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Welcome to the Ranch visu.
No problem at all. Call setSize and setVisible on the parent container.
[ November 23, 2003: Message edited by: Jose Botella ]

SCJP2. Please Indent your code using UBB Code
I agree. Here's the link:
subject: Scroll Pane not visible on Frame window
Similar Threads
JScrollPane Pseudo Auto-Scroll
how to add a scrollpane...
Adding ScrollPane to JPanel
Scrollbar for jtable