Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By Fubarable

Thread: Database GUI

  1. #1
    Asef is offline Member
    Join Date
    Oct 2012
    Posts
    7
    Rep Power
    0

    Default 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.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default 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.

  3. #3
    Asef is offline Member
    Join Date
    Oct 2012
    Posts
    7
    Rep Power
    0

    Default 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.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Database GUI

    Quote Originally Posted by Asef View Post
    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.
    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.
    DarrylBurke likes this.

  5. #5
    Asef is offline Member
    Join Date
    Oct 2012
    Posts
    7
    Rep Power
    0

    Default Re: Database GUI

    Sorry I meant tutorials that show me how to do each process.

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Create registration form | insert into database | call the database
    By FamilyGuy in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-23-2012, 11:08 AM
  2. Embedded Database : SQLite or Derby Database
    By vishnubrett in forum NetBeans
    Replies: 3
    Last Post: 03-26-2012, 10:50 AM
  3. Client-Database vs Client-Server-Database Setup
    By xxSLRxx in forum New To Java
    Replies: 5
    Last Post: 01-06-2012, 09:53 AM
  4. Relational Database or Object Database?
    By mattlindsay in forum New To Java
    Replies: 8
    Last Post: 09-24-2011, 06:44 PM
  5. Replies: 2
    Last Post: 02-11-2009, 04:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •