*
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans 6.5: Populating JTable with MySQL database 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 » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans 6.5: Populating JTable with MySQL database" Watch "Netbeans 6.5: Populating JTable with MySQL database" New topic
Author

Netbeans 6.5: Populating JTable with MySQL database

Rudolf Meerkotter
Greenhorn

Joined: Apr 03, 2008
Posts: 14
Hi there,

I'm trying to populate a JTable with data from an online MySQL database. Here's what I've done so far:

1) Add the table to the form
2) Right click on table, select Table Contents, select bound, Import data to form (the connection works and the respective table can be viewed in the services window)
3) Right click on table again, select Bind, select Elements, shift Available to Selected

When I run the project, I get a load of errors with this being at the top:

SEVERE: Application class tabletesting.TableTestingApp failed to launch
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The above procedure works fine on the sample databases (on localhost) that come with NetBeans.

Any ideas where the problem is with the remote connection?

Thanks,
Rudolf


SCJP 5, SCWCD 5, SCBCD 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netbeans 6.5: Populating JTable with MySQL database
 
Similar Threads
regarding JTable
jtable not refreshing
database application problem with jtable binding
jtable
JTable ........