Re: Adding a status bar to a window ??
Ulf Meinhardt wrote:
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
I do it this way with JGoodies forms..
frame.getContentPane().add(buildMainPanel(),BorderLayout.CENTER);
frame.getContentPane().add(buildStatusPanel(),BorderLayout.PAGE_END);
.
.
.
private JComponent buildStatusPanel()
{
jTextField9.setFont(new Font("Dialog",1,12));
jTextField9.setEditable(false);
jTextField9.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
FormLayout layout = new FormLayout("default:grow","");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.append(jTextField9);
return builder.getPanel();
}
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)