Results 1 to 7 of 7
  1. #1
    akshaydusane is offline Member
    Join Date
    May 2012
    Posts
    22
    Rep Power
    0

    Default Displaying Records

    Hello I want to Display fetched records in a List Component
    How to do that?
    Please help..
    I am using netbeans..

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

  3. #3
    akshaydusane is offline Member
    Join Date
    May 2012
    Posts
    22
    Rep Power
    0

    Default Re: Displaying Records

    I read that..
    But I didn't find any details about fetching records and place them in list...
    Can you please tell where it is ?
    May be I didn't look..

  4. #4
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default Re: Displaying Records

    If fetching data is reading data from the database, have you read the JDBC Tutorials? Trail: JDBC(TM) Database Access: Table of Contents (The Java™ Tutorials)

  5. #5
    akshaydusane is offline Member
    Join Date
    May 2012
    Posts
    22
    Rep Power
    0

    Default Re: Displaying Records

    sorry sir I am not getting it what I want exactly...
    Can you explain?

    Now there is a table component in netbeans..
    so can you just explain me how to insert records in that component from an external database?
    Last edited by akshaydusane; 06-08-2012 at 08:25 AM.

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Displaying Records

    Use JDBC to get the data, converting it into a suitable model. Pass that List<YourModel> to the JTable, via a TableModel.
    There are three bits there.
    The JDBC part.
    YourModel.
    The TableModel.

    So start where you feel comfortable, then try and work on the other bits.
    When you hit a problem then come back and ask a more specific question (with your code that you are having trouble with).
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    akshaydusane is offline Member
    Join Date
    May 2012
    Posts
    22
    Rep Power
    0

    Default Re: Displaying Records

    Thanks for the solution I have got it ..

    please explain me how do I open multiple forms under one main window?
    Is it possible??

Similar Threads

  1. deleting records in a db
    By droidus in forum New To Java
    Replies: 1
    Last Post: 11-08-2011, 08:16 PM
  2. Need help with saving and displaying records
    By dientrinh in forum AWT / Swing
    Replies: 3
    Last Post: 07-06-2010, 09:03 AM
  3. Throttling records
    By jitman in forum New To Java
    Replies: 0
    Last Post: 03-11-2010, 07:18 PM
  4. insert records
    By rudravaram in forum JDBC
    Replies: 3
    Last Post: 01-03-2010, 06:54 PM
  5. How to delete the records
    By kiran kumar in forum Java Servlet
    Replies: 6
    Last Post: 11-09-2008, 02:16 PM

Posting Permissions

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