Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3401968
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:04:50+00:00 2026-05-18T05:04:50+00:00

I have files in a directory. I would like to know if it’s possible

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T05:04:51+00:00Added an answer on May 18, 2026 at 5:04 am
    1. For list of files,
      http://download.oracle.com/javase/1.4.2/docs/api/java/io/File.html#listFiles()

    2. I don’t know about how to get creation date, but there is a function for getting lastmodifieddate().
      http://download.oracle.com/javase/1.4.2/docs/api/java/io/File.html#lastModified()

    3. To open with the button, on button click event execute,
      Runtime.getRuntime().exec(“cmd /c dir \””+<filename from first column> + “\””); (IF your OS is windows)

    4. To put all these in table,
      http://www.java2s.com/Code/Java/Swing-Components/ButtonTableExample.htm

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a directory with several .html files. Would like to read the list
I have directory with > 1000 .html files, and would like to check all
I have a data directory which I would like automake to generate install and
I would like to know if it is possible to copy/move files to a
Suppose you have 2 files in the same directory: New File Name.txt and NewFil~1.txt
I have a directory with files that look like this: 001_something.php 002_something_else.php 004_xyz.php 005_do_good_to_others.php
I would like to know if it is possible to apply a function to
For my usecase, I would like to have an in memory directory to store
I have a directory on my local machine that I would like to copy
I have apache running on different servers, I would like to rsync log files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.