Re: Status Bar or any swing component
- From: ffellico@xxxxxxxxx
- Date: 29 Oct 2005 11:16:49 -0700
Thank you. I solved my problem but it was necessary to change the two
statement you suggest in:
getContentPane().setLayout(new BorderLayout());
getContentPane().add(statusBar, BorderLayout.SOUTH);
In that way it worked but any other component disappears from the
frame, so I create a Panel (jPanel1) in the NORTH part of the frame,
and I put all other components in this Panel; after II add this other
statement:
getContentPane().add(jPanel1, BorderLayout.CENTER);
Now when at run time I resize the frame, the statusbar remain always at
the bottom of the frame, jPanel1 expand itself in all the rest of the
space of the frame and the other components ar alway visible in the
location where I have put them.
Please, can you confirm that this is the way to work with Layouts to
solve all this kind of problems?
I am a beginner in Java (I worked until now in Delphi) so I need to
understant this different architecture.
Tank you again. Franco.
.
- Follow-Ups:
- Re: Status Bar or any swing component
- From: zero
- Re: Status Bar or any swing component
- References:
- Status Bar or any swing component
- From: ffellico
- Status Bar or any swing component
- Prev by Date: Re: why this cast won't work?
- Next by Date: Animated PNGs?
- Previous by thread: Status Bar or any swing component
- Next by thread: Re: Status Bar or any swing component
- Index(es):
Relevant Pages
|
|