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 Chriss Miller 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
Joined
Sep 14, 2001
Messages
37
Location
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
 
i found JInternalFrame. that could be the solution.
 
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