File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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: 10771

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
It's not a secret anymore!