Adding a status bar to a window ??

Discussion in 'Java' started by Ulf Meinhardt, May 24, 2006.

  1. How do I add a status bar to a window?

    When I google for it I found some examples which adds them to a content pane.
    But I don't want to add them to a window content. I want to "paste" it
    to the whole window frame at the bottom most part of the window.
    Just as (nearly) every other window (e.g.Internet Explorer) has.

    So when I code e.g.

    StatusBar sb = new StatusBar();
    contentPane.add(sb);

    it is added like a button to a GridBagLayout. But it is not like a statusbar.

    Furthermore: How do I write a text (e.g. "Hello") to it?

    Ulf
     
    Ulf Meinhardt, May 24, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    0
    Views:
    3,556
  2. John Hann
    Replies:
    0
    Views:
    6,096
    John Hann
    Aug 21, 2004
  3. Matt
    Replies:
    9
    Views:
    70,880
  4. Matt
    Replies:
    9
    Views:
    557
    kaeli
    Aug 23, 2004
  5. topmind
    Replies:
    1
    Views:
    345
    Bart Van der Donck
    Jul 1, 2006
Loading...

Share This Page