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 JscrollPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JscrollPane" Watch "JscrollPane" New topic


marko stone

Joined: Oct 16, 2002
Posts: 23
in my JDialog i can have a lot of components
and they don't display at. I'm trying to use
JScrollPane for it, but all i have simple dot in my JDialog window why ???
how i can resolve my problem ?

JScrollPane jsp;
jsp=new JScrollPane();

Rene Liebmann
Ranch Hand

Joined: May 02, 2002
Posts: 196
As I know, you can add only one component in your JScrollPane, so please put all your components in a JPanel and add the JPanel to the JScrollPane. This will work.
I agree. Here's the link:
subject: JscrollPane
It's not a secret anymore!