wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes How can I make the field initialized before the initComponents method is called? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How can I make the field initialized before the initComponents method is called?" Watch "How can I make the field initialized before the initComponents method is called?" New topic
Author

How can I make the field initialized before the initComponents method is called?

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 600
My application is undergoing a major overhaul after the demo
The lblCustomerID is null when being added to the GradientPanel which is a JPanel with Database and
decoration support.
Thanks
Jack
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39095
    
  23
Why have you got so many fields?
Put the initialisation in the constructor.
 
GeeCON Prague 2014
 
subject: How can I make the field initialized before the initComponents method is called?