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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scrollbar for Frame

Status
Not open for further replies.

vinu77

Programmer
Jan 11, 2001
13
0
0
IN
Im new to java programming. I would be greatful if someone can help me in implementing scrobars for frame.

Thanks
Vinod
 
add a JScrollPane to your contentPane and then add your components to the JScrollPane instead of the contentPane. I have found that this works pretty well when everything is contained in a JPanel, and you set the preferredSize of the JPanel.

You can also set the contentPane of your JFrame to a JScrollPane.

-gc "I don't look busy because I did it right the first time."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top