
Loading ...
564 views
04.13.2008 by HappyFace in
Java
This is an example how to create a statusbar in a JFrame using Java
First create a JLabel component like this:
JLabel status = new JLabel("This is a statusBar example");
And add the following code below in your program:
status.setPreferredSize(new Dimension(100, 16));
getContentPane().add(status, BorderLayout.SOUTH);

Bookmark this page:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Related posts
- April 12, 2008 -- Java menu’s in a JFrame (0)
- April 13, 2008 -- How to center your application on the screen? (0)
- April 13, 2008 -- How to set tooltip text (0)
- December 29, 2008 -- New java challenges! (0)
- December 27, 2008 -- Java games at java4k, maximum fun, minimum size (0)
- December 24, 2008 -- Left 4 Dead Java version (0)
- December 22, 2008 -- Send and recieve images through network using java #2 (0)
- November 24, 2008 -- Eating monsters problem (0)
- November 17, 2008 -- [Java] Call a method from another class (0)
- November 17, 2008 -- [Java] parse a String to an int (0)