How to display the file status in the status bar?

Hi all, Can anyone tell me how to display the file status in the status bar?The file status can consists: the type of the file, the size of the file etc..thanx alot..
[201 byte] By [popcorn] at [2007-9-26 2:06:01]
# 1

class StatusBar extends JComponent {

JLabel l = new JLabel("ready");

public StatusBar() {

super();

setLayout(new BoxLayout(this, BoxLayout.X_AXIS));

add(l);

}

public void setText( String prompt ) {

l.setText(prompt);

setVisible( true );

}

public void paint(Graphics g) {

super.paint(g);

}

}

kzuellner at 2007-6-29 8:51:44 > top of Java-index,Archived Forums,Swing...
# 2
guess I pressed the wrong button.What I wanted to say is create a class like StatusBar, add it to the "South" of your frame and use the setText method to display any text you want.hope this helpskurt
kzuellner at 2007-6-29 8:51:44 > top of Java-index,Archived Forums,Swing...