Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 10167

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