• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Netbeans IDE 6.0 statusMessageLabel.setText

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Is that a spider in your hair? Here, threaten it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic