G Jay
G Jay

Reputation: 41

Resize the Jpanel with in Jframe in java Swing

I have 2 jpanels in Jframe. when i reduce the frame size then the jpanel size need to reduce should not hide. what ever in the jpanel like textbox or label size also need to reduce. share your view for the problem. how to set the width and height for the jframe as well as the Jpanel.

Upvotes: 0

Views: 684

Answers (1)

Guillaume Polet
Guillaume Polet

Reputation: 47627

You need to use LayoutManagers for that purpose. Read all about LayoutManagers here

Upvotes: 4

Related Questions