Re: Status Bar or any swing component



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.

.



Relevant Pages

  • Re: Lightweight Theater walls
    ... The walls should not warp while stored. ... I am thinking of some sort of panel material attached to a frame. ... I think I have found satisfactory frame materials. ...
    (rec.arts.theatre.stagecraft)
  • Re: Frames links have stopped working in IE and Firefox but work in Opera
    ... >> panels of the frame whose links load different pages into the main panel ... >> load the new link in the whole page instead of in the panel of the frame. ... I'm not convinced that it needs the animated rollover images. ...
    (uk.net.web.authoring)
  • Re: Lightweight Theater walls
    ... The walls should not warp while stored. ... I am thinking of some sort of panel material attached to a frame. ... I think I have found satisfactory frame materials. ...
    (rec.arts.theatre.stagecraft)
  • Re: Newbie wxPython questions.
    ... which is a panel. ... is the frame. ... close the app. ... def EvtCheckBox: ...
    (comp.lang.python)
  • Re: Scrolling popup window
    ... Sorry about making the frame so large - doh! ... I create the panel, add the labels, and then ... add the panel to the viewport. ...
    (comp.lang.java.gui)