Hello.
How can I add on a JFrame a status bar line
(line appear on the bottom left<->right of the frame).
Thanks :)
>How can I add on a JFrame a status bar line
>(line appear on the bottom left<->right of the frame).
You can change the title of the frame, but that is about it. If you
wanted to use that space for additional gismos, you would have to
subclass JFrame.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Andrew Thompson - 15 Aug 2007 10:58 GMT
>>How can I add on a JFrame a status bar line
>>(line appear on the bottom left<->right of the frame).
>You can change the title of the frame, but that is about it. If you
>wanted to use that space for additional gismos, you would have to
>subclass JFrame.
Rot.
JFrame frame = new JFrame("The Frame);
frame.getContentPane().setLayout( new BorderLayout() );
JLabel statusMessage = new JLabel();
frame.getContentPane().add( statusMessage, BorderLayout.SOUTH )
...
This is simply a statusMessage JLabel added to an
existing JFrame - no extend necessary.

Signature
Andrew Thompson
http://www.athompson.info/andrew/