Results 1 to 2 of 2
  1. #1
    danielpereira is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Default Create a table with buttons and the files list of a directory.

    Hi,

    I have files in a directory.

    I would like to know if itís possible to create a table with the list of the files (only the name) and the data of creation? But in each line of the table, a button to open the file of this line.

    Basically, a table with 3 columns (name, date, button), and the number of rows would vary depending on the number of files in the folder.

    If itís possible, how can I do this?

    Thank you for your help.

    Best regards.

    Daniel

  2. #2
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    How about understanding about the DefaultCellEditor and DefaultTableCellRenderer?
    Read more about the JTable API.
    These may guide you through.
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

Similar Threads

  1. List directory
    By dman in forum New To Java
    Replies: 4
    Last Post: 08-21-2009, 02:32 AM
  2. Populating a gui list box with the files in a directory
    By josejvelezcolon in forum New To Java
    Replies: 1
    Last Post: 08-10-2009, 05:50 PM
  3. how to list certain files in a given directory in java
    By corpusluteum in forum New To Java
    Replies: 6
    Last Post: 09-24-2008, 01:19 AM
  4. Replies: 20
    Last Post: 12-17-2007, 04:20 PM
  5. How can I get list of files in a directory
    By karma in forum New To Java
    Replies: 2
    Last Post: 12-15-2007, 12:20 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
  •