This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "swing with mysql connection1" Watch "swing with mysql connection1" New topic

swing with mysql connection1

Tapan Prajapati

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

Joined: Jul 26, 2007
Posts: 9993

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:
subject: swing with mysql connection1
Similar Threads
Unknown column 'mkl' in 'field list
Errors when I get to run()
Line Spacing in jTextPane
how will we move from one page to another within the same window in Swing?
Pressing a button to open a new window