I am in the process of creating a Java app and would like to have a bar on the bottom of the app, in which I display a text bar and a status (progress) bar.
Only I c
Unfortunately Swing does not have a native support for StatusBars.
You can use a BorderLayout and a label or whatever you need to display at the bottom:
public class StatusBar extends JLabel {
/** Creates a new instance of StatusBar */
public StatusBar() {
super();
super.setPreferredSize(new Dimension(100, 16));
setMessage("Ready");
}
public void setMessage(String message) {
setText(" "+message);
}
}
Then in your Main Panel:
statusBar = new StatusBar();
getContentPane().add(statusBar, java.awt.BorderLayout.SOUTH);
From: http://www.java-tips.org/java-se-tips/javax.swing/creating-a-status-bar.html