• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

How to link Java with database?  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I am a truly beginner in this entire database thing. Right now i need to create a system similar to booking system.
I have created the system interface by using java in Eclipse for the user to add data from a form and into the Jtable created.
So now i wanted to link the data inserted from the user into the database and also into the Jtable created.
Is it possible ? and how do i start ?
 
Bartender
Posts: 2212
92
Eclipse IDE Google Web Toolkit Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are two things you need to learn to do this:
1. UI coding: lets say you load data from database, how are you going to show it in the JTable ?
2. JDBC: How to Connect and load data from database

Here are a few useful links for both:
https://docs.oracle.com/javase/tutorial/jdbc/overview/index.html
https://docs.oracle.com/javase/tutorial/uiswing/components/table.html
 
salvin francis
Bartender
Posts: 2212
92
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh and Welcome to Code ranch !!!
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Nadhirah Zunaidi wrote:Hi. I am a truly beginner in this entire database thing. Right now i need to create a system similar to booking system.
I have created the system interface by using java in Eclipse for the user to add data from a form and into the Jtable created.
So now i wanted to link the data inserted from the user into the database and also into the Jtable created.
Is it possible ? and how do i start ?



Fundamental Steps in JDBC
The fundamental steps involved in the process of connecting to a database and executing a query consist of the following:

Import JDBC packages.

Load and register the JDBC driver.

Open a connection to the database.

Create a statement object to perform a query.

Execute the statement object and return a query resultset.

Process the resultset.

Close the resultset and statement objects.

Close the connection.
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
ScroogeXHTML - the small and fast RTF to HTML converter library
https://coderanch.com/t/707504/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!