indiWiz.com
SiteSearch:
Jump:

Site Map | WizTools.org | jCraze Blog
Web Developer's Den!
Home : WDD : Java : Swing
This Article...
Print Version
Add Comment
View Comments
Swing
Centered JFrame
JFrame Icon Image
JTabbedPane
Java Screen Capture
Beep Sound
Frame/Dialog/Window Size
Java Cursor
Centering JDialog In Relation To Parent JFrame
JFrame Without Titlebar
Statusbar For JFrame
Sections

Commniquè
Sign Guestbook!
Read Guestbook!
MailMe!

Statusbar For JFrame

The Swing library doesn't have a specific component for statusbar. The hack is you create a ordinary component- say JPanel - and set its border to LOWERED - BlevelBorder. Then add this component to the SOUTH of your BorderLayouted JFrame.

import javax.swing.*;
import javax.swing.border.*;

====================

JPanel jp_status = new JPanel();
jp_status.setLayout(new BorderLayout());
jp_status.add(new JLabel("Subhash"), BorderLayout.CENTER);

jp_status.setBorder(new BevelBorder(BevelBorder.LOWERED));
		
// ``ct'' is the Container of JFrame
ct.add(jp_status,BorderLayout.SOUTH);

User Comments

Add Comment

[Quick Stats: Number of main threads: 0, Number of sub-threads: 0]

Sign Guestbook | Who is Subhash?
The contents of this site are copyright© 2000-2008, indiWiz.com. All Rights Reserved.