Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrolling panel 2

Status
Not open for further replies.

Miros

Programmer
Jan 27, 2001
506
US
I'd like to have a panel in a Java application or applet which has other controls inside it AND a scroll bar which causes the other controls to scroll up and down inside the panel.

I tried ScrollPanel, but it doesn't allow me to add controls to it. Any advice?

Rosalie
 
Try using a JPanel... add stuff to that and then add the JPanel to the JScrollPanel. I hope this helped! ;-)
- Casey Winans
 
I believe Casey meant the JScrollPane. There is no such thing as a JScrollPanel.

Download the JDK1.3 Docs from Sun or look up its public interface through the help screens in your IDE (JBuilder, Visual Cafe, Visual Age, etc.)

Good luck,
Brian Zimmer
 
Oops! I made a typo. Sorry. I hope this helped! ;-)
- Casey Winans
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top