Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Swing + JDBC - Best practice?

user13117585Feb 11 2018 — edited Feb 14 2018

Hello everyone,

I'm posting a message to ask for some help. I haven't done any Java development for years and now I need to create a Java Swing application that connects to a database and display some values. Basically, I have a UI with a ComboBox (values loaded from database) and whenever a user selects a value in that combobox, other textfields must be updated. In the begining, I only need to display values; not insert/update the database.

I've been looking on the internet and found this tutorial:

https://docs.oracle.com/javase/tutorial/jdbc/basics/jdbcswing.html

I wanted to ask any of you for a very basic code with only a JComboBox and a JTextField so that I can easilly understand the basics.

Thank you,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2018
Added on Feb 11 2018
8 comments
1,078 views