Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to display a statusbar ?  RSS feed

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like the programe in windows,I want a statusbar to display some information useful.

Thank you.
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi letter

You may just add a JLabel or JTextField as the Status Bar at the bottom of your window. See the following code.
-------------------
jLabel2 = new JLabel();
jLabel2.setText("StatusBar:");

contentPane = (JPanel)this.getContentPane();
contentPane.setLayout(new BorderLayout(0, 0));
contentPane.add(jLabel2, BorderLayout.SOUTH);
 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
I want more, not just display "Loading...", "Ready".I want something looks more excited. You know what I mean? I cann't express the problem more clearly because of my poor english.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!