Results 1 to 6 of 6
Thread: Database GUI
- 01-04-2013, 01:05 AM #1
Member
- Join Date
- Oct 2012
- Posts
- 7
- Rep Power
- 0
Database GUI
How can I make a text field in NetBeans 7.2 show the value of a field in a Java DB (Derby) database for different rows using JDBC and JDK 7? Also, How can I make a 'back' and 'forward' button which navigate rows. For example, how can I make a text field show the title of a painting and a forward button select the next row so that the title of the next painting is shown.
-
Re: Database GUI
You will need to learn two processes -- 1) creating a Swing GUI with a JTextField that can accept data, and 2) creating a Derby database that allows you to retrieve data, and there are plenty of decent tutorials that will show you how to do both. Then once you learn these steps, write code to combine them. There's no magic involved, but just one "trick" in that you will want to read the Oracle Swing tutorial titled "Concurrence in Swing" (Google this -- it's the first hit), as you will want to do your database calls on a thread that is background to the Swing thread.
- 01-06-2013, 06:00 PM #3
Member
- Join Date
- Oct 2012
- Posts
- 7
- Rep Power
- 0
Re: Database GUI
Thanks Fubarable but I can't find tutorials that show me how to do both processes, please can you provide me with some links or tell me what to Google.
-
Re: Database GUI
That's because such a tutorial likely doesn't exist since you're asking for a tutorial that combines two distinct orthogonal concepts. Again, the details and code will likely need to come from *you*. Why not try creating this, using the knowledge that you have gained from the more specific tutorials? Then if your program doesn't work, come on back with your specific problems, and we can probably help you out. You've nothing to lose by trying this and much to gain.
- 01-06-2013, 07:06 PM #5
Member
- Join Date
- Oct 2012
- Posts
- 7
- Rep Power
- 0
Re: Database GUI
Sorry I meant tutorials that show me how to do each process.
-
Similar Threads
-
Create registration form | insert into database | call the database
By FamilyGuy in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 04-23-2012, 11:08 AM -
Embedded Database : SQLite or Derby Database
By vishnubrett in forum NetBeansReplies: 3Last Post: 03-26-2012, 10:50 AM -
Client-Database vs Client-Server-Database Setup
By xxSLRxx in forum New To JavaReplies: 5Last Post: 01-06-2012, 09:53 AM -
Relational Database or Object Database?
By mattlindsay in forum New To JavaReplies: 8Last Post: 09-24-2011, 06:44 PM -
How to convert access database to mysql database?
By vrk in forum Advanced JavaReplies: 2Last Post: 02-11-2009, 04:43 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks