AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Swing problem with layout and servera panels.

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits
View previous topic :: View next topic  
Author Message
Eva
Guest





PostPosted: Fri Jan 21, 2005 8:54 am    Post subject: Swing problem with layout and servera panels. Reply with quote



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
Back to top
Andrew Thompson
Guest





PostPosted: Fri Jan 21, 2005 9:17 am    Post subject: Re: Swing problem with layout and servera panels. Reply with quote



On 21 Jan 2005 00:54:34 -0800, Eva wrote:

Quote:
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>

--
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

Back to top
Sathish
Guest





PostPosted: Sat Jan 22, 2005 7:47 am    Post subject: Re: Swing problem with layout and servera panels. Reply with quote



See there is one solution for your problem. In gridabaglayout add one
Jpanel where ever you want. and set the JPanel layout as cardlayout.
Then after this what everyou want add in this cardlayout. when ever you
want show the cardlayout panel. so the size will not be resized.
-sathish

Back to top
Sathish
Guest





PostPosted: Sat Jan 22, 2005 8:24 am    Post subject: Re: Swing problem with layout and servera panels. Reply with quote

See there is one solution for your problem. In gridabaglayout add one
Jpanel where ever you want. and set the JPanel layout as cardlayout.
Then after this what everyou want add in this cardlayout. when ever you
want show the cardlayout panel. so the size will not be resized.

-sathish



Eva wrote:
Quote:
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


Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.