Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Swing problem with layout and several panels

Reply
Thread Tools

Swing problem with layout and several panels

 
 
Eva
Guest
Posts: n/a
 
      01-21-2005
Hello, I have a problem that is making me mad.
I have an application with a menubar that lets me change the JPanel to
show.
This panels are using gridBagLayout to localize and resize their
graphical components.
When I have five created panels to show all is rigth. If the number of
panels is greater (so number of graphical components grow) and I use
the menubar to see one of my panels, the layout redistribute the
components without sense.
It resizes the components , localizes them with greater y positions
.....

I have tryed with another layout manager (BorderLayout and FlowLayout)
but the result is the same.
I have tryed to set preferred , minimum and maximum size attributes of
components but the result is the same.
....
Is there no way to lock a layout?

Is there anyone with the same problem? Please I need some clue.
Thanks in advanced.
Eva
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      01-21-2005
On 21 Jan 2005 00:55:43 -0800, Eva wrote:

> Hello, I have a problem that is making me mad.


Going 'multi-postal', eh?

I was about to begin to respond to your post on c.l.j.help when I
noticed this post. Intead I will say this.

Please refrain from multi-posting.
<http://www.physci.org/codes/javafaq.jsp#xpost>

[ Note - copy pasted from c.l.j.g. response. ]

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57