I currently have an Oracle database, a Java Program, and a text file. Text files are being read by the system, which automatically updates the database. How would I make a JTable to make the database be displayed nicely in a JFrame?

Recommended Answers

I currently have an Oracle database, a Java Program, and a text file. Text files are being read by the system, which automatically updates the database. How would I make a JTable to make the database be displayed nicely in a JFrame?

declare one, fill it up with your data …

Jump to Post

All 2 Replies

I currently have an Oracle database, a Java Program, and a text file. Text files are being read by the system, which automatically updates the database. How would I make a JTable to make the database be displayed nicely in a JFrame?

declare one, fill it up with your data and add it to your Container.
to make it fit nicely, you 'll have to take in account the settings to set the size (width and height) and those of your JFrame

Not sure what you mean by "displayed nicely", but here is classic tutorial from Sun on JTable

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.