aspose file tools*
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: 601
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: 40052
    
  28
Why have you got so many fields?
Put the initialisation in the constructor.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I make the field initialized before the initComponents method is called?