Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Layout J-Fields in a J-Frame-resizing question

  Asked By: Darcy    Date: Dec 31    Category: Java    Views: 1076
  

I am trying various different layout managers to
host a couple of JLabels & JTextFields in a JFrame. Whenever I resize
the frame (at runtime by dragging the borders) then the TextField
resizes too big. What is the best way to manage this problem?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Akins Massri     Answered On: Dec 31

Please try GridbagLayout and its constraints your problem  will solve.

and if it will be diffcult then try Null Layout of the Form but it is not
recommended.

 
Didn't find what you were looking for? Find more on Layout J-Fields in a J-Frame-resizing question Or get search suggestion and latest updates.




Tagged: