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

when developping a grafical applica

Status
Not open for further replies.

dennisGuru

Programmer
Sep 14, 2001
37
NL
when developping a grafical application i want to use a JFrame in a JFrame. Is this possible?

The problem is I have multiple buttons of wich the size changes when I change the size of the JFrame. I do not want this. But I can't find anything about it.

You can set the preferred size, the minimum and maximum size, but these are somehow linked to the frame.

Dennis
 
To stop your buttons resizing place them in a JPanel with a FlowLayout layout manager and add this to your JFrame
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top