Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2005

Tip: Looking for answers? Try searching our database.

Swing problem with layout and servera panels.

Thread view: 
Eva - 21 Jan 2005 08:54 GMT
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
Andrew Thompson - 21 Jan 2005 09:17 GMT
> 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>

Signature

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

Sathish - 22 Jan 2005 07:47 GMT
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
Sathish - 22 Jan 2005 08:24 GMT
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

> Hello, I have a problem that is making me mad.
> I have an application with a menubar that lets me change the JPanel to
[quoted text clipped - 18 lines]
> Thanks in advanced.
>   Eva


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.