View Javadoc

1   /*
2    * ToolsStatusBar.java
3    *
4    * Created on 8. august 2005, 00:50
5    */
6   
7   package com.vikash.firsttool.UI;
8   
9   import java.awt.BorderLayout;
10  
11  import javax.swing.*;
12  
13  /***
14   *
15   * @author  studajb
16   */
17  public class ToolsStatusBar extends JPanel{
18      JLabel status ;
19      /*** Creates a new instance of ToolsStatusBar */
20      public ToolsStatusBar() {
21                  super();
22  		setLayout(new BorderLayout());
23  		status = new JLabel("Ready.");
24  		status.setBorder(BorderFactory.createLoweredBevelBorder());
25  		add(status, BorderLayout.CENTER);
26  		
27      }
28      
29      public void setMessage(String message) {
30  		this.status.setText("Status:  "+message);
31  	}
32  
33      
34  }