Tag Archives: JDBC

JTables + JDBC: Pt. 4 Putting it all Together

This is part 4 in the series on JTables and JDBC << Pt. 3 Connecting to your database through JDBC Alright, let’s put this JTable together! Using the code from the previous section, we can now populate our custom AbstractTableModel by pulling information from a remote database.  Don’t worry, its a lot easier than it looks.
Posted in Java, Tech | Also tagged , , , | Leave a comment

JTables + JDBC: Pt. 3 Connecting to your database through JDBC

This is part 3 in the series on JTables and JDBC << Pt. 2 Extending AbstractTableModel Now that we have set up our empty TableModel, we’ll need to populate it with information from our database. In order to do that, we’ll first have to establish a connection to our database and query it for information.
Posted in Java, Tech | Also tagged , , , , | 4 Comments

JTables + JDBC – Pt.1 Introduction

Consider this: you have a running Java application with a Swing front-end and a PostgreSQL database managing the data in the backend.  You want to let your users view and modify the data in your database, but they don’t know a smidgen of SQL.  Perhaps there is a way to (easily?) draw a GUI front-end [...]
Posted in Java, Tech | Also tagged , , , , , | 2 Comments