Hi All,
Is someone able to show me a simple way that I can access the status bar label provided by Netbeans
IDE when creating a desktop application?
I have the usual mainWindow that contains the menuBar, mainPanel and the statusPanel.
I have also created a couple of screens for my application that I place on the mainPanel as
cards:
However I am unable to access the status bar on the mainWindow to display simple messages.
I have tried passing mainWindow as a parent to my screens/cards and adding a function to mainWindow as per:
Then from within a card when I want to display a message:
...but this didn't work. Instead I get a Null Pointer exception at the line above where I try to set the status message:
Exception in
thread "AWT-EventQueue-0" java.lang.NullPointerException
Many thanks for any suggestions.
Peter.