Title: RE: Resizing JFrame

What layout are you using?  I've noticed that GridBags and other bounded layout suck.  Did you get this from the stacking layout approach?  As a rule I NEVER mess with min/max sizes cause they always bit me in the ass.  I always use the perferredsize.

aaron

-----Original Message-----
From: Soubhratra Das [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 4:44 AM
To: [EMAIL PROTECTED]
Subject: Resizing JFrame


Hi all,

      i am currently working a pure swing application which has a tabbed pane in the JFrame. The tabbed pane has 3 tabs, two having JTextPanes for editing input and output files of my application. the third tab contains a form designed using 6 panels in gridbag layout. these panels again contains panels or other JComponents using gridbag layout. When user enters information in the form and click proceed button the application parses the inputfile and produces the output file.  

I am facing 2 problems.

1) the application opens in full screen. In some computer it is ok. In some , one or two textboxs shrinks in size, even vanishes. Means the size of the JComponents are not uniform in different pcs.

2)When i resize the main JFrame the interface get garbled ie same problem some components shrinks in size or vanishes or distorted.

It seems that both the problems have same solution which may be setPreferredsize(getPreferredSize()) and setMinimumSize(getPreferredSize()) for each component.

Please give some suggestion how to solve.

Also is there any text editor(capability same as notepad) written in java whose sorce code is free. Please give me the link to download if any.

I am tested the application in win98,nt,2000 with JDK1.2,1.2.2,1.3 with metal and windows look and feel.
Sorry for elaborating the message but thing it will help you to understand the problem.

TNA,
Soubhratra

____________________________________________________________
Sent via ocsemail from IASRI Intranet System intranet

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to