Home
Categories
Dictionary
Download
Project Details
Changes Log
Tutorials
FAQ
License

Status bar


    1  Usage
    2  Example
    3  See also

The StatusBar class allows to show the status bar for a GUI application.

You don't need to create the status bar, it will be automatically created by the GUI initializations methods in the GUI application.

The status bar is shown at the bottom of the application.
statusbar
The Status bar contains a JProgressBar. it can show a progress status.

Usage

The StatusBar class has several methods:

Example

This example creates the application:
  • With a Message area with 4 lines
  • Without a Tool bar
  • With a Status bar
   public class TestStatusBar extends AbstractMDIApplication {
      public TestStatusBar() {
        super("Test StatusBar");
        this.initConfiguration();
         mfactory = new SimpleMenuFactory();
         super.preparePanels(4, true, false, mfactory); // create the panels with a mesage area, a status bar, and no toolbar
         this.setSize(500, 500);
         this.getStatusBar().setMessage("Hello World!");
      }
   }

See also


Categories: General | Gui | Swing

Copyright 2006-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences