This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 580
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: 36453
    
  15
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?
 
Similar Threads
Updating values in a jTable
MigLayout, vertical alignment problem
How to implement this layout plan?
after JDateChooser Lost Focus event fired, no breakpoint is caught
help with placing another JPanel inside a JScrollPane