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 swing with mysql connection1 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 "swing with mysql connection1" Watch "swing with mysql connection1" New topic
Author

swing with mysql connection1

Tapan Prajapati
Greenhorn

Joined: Mar 05, 2010
Posts: 27
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

The compiler has already told you what the problem is. It is also been helpful enough to tell you the line number at which the problem occurs.


Do you know what a NullPointerException is?
The problem with your code is you are invoking a method on an object instance which is null.
The instance is null because it has not been initialized when you invoke the method.
Hint: Check the sequence in which you are calling your internal methods.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: swing with mysql connection1
 
Similar Threads
Unknown column 'mkl' in 'field list
Pressing a button to open a new window
Errors when I get to run()
how will we move from one page to another within the same window in Swing?
Line Spacing in jTextPane