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

  • Home
  • SEARCH
  • 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 6895301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:53:29+00:00 2026-05-27T06:53:29+00:00

When using Java applications, every time I open a dialog box, the starting directory

  • 0

When using Java applications, every time I open a dialog box, the starting directory is always my home directory.
Is there any way to make it remember the last used directory?

Alternately, are there improved Java file selection dialogs that allow type-to-search or any of the features that are standard in most other application file selection dialogs?

EDIT: I think the answers posted address the question for writing Java applications, but not for a user. Perhaps it’s not possible for the user to change the file browser interface, but I’d like to know that. In case it matters, I have a few specific examples in mind (Amazon AWS uploader) but I have observed that behavior in most Java applications that use a file browser.

  • 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-27T06:53:30+00:00Added an answer on May 27, 2026 at 6:53 am

    Store the file chooser as a class attribute. When it is re-opened, the following will be preserved.

    1. The directory.
    2. The place in the directory to where the user had scrolled.
    3. The selected file filter.
    4. The size.
    5. The location on screen.
    6. The PLAF.
    7. ..

    Is there any way to make it remember the last used directory?

    Of course, if you mean persist the state between runs, there are a number of alternative forms of storing the details, and places/ways to store them.
    See this answer for an example of storing the bounds of a JFrame using a Properties file.


    Perhaps it’s not possible for the user to change the file browser interface, ..

    What ‘user’? Do you mean the developer who uses one in an app.?

    Maybe what you need is to implement your own file chooser. If that is the case, you might start with the FileBro code.

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

Sidebar

Related Questions

I'm writing a Java Swing application using the Metal look-and-feel. Every time there is
Has anyone had any experiences developing large Java applications using GNU gettext for internationalization?
I develop a number of desktop Java applications using Swing, and while Swing is
this is just theoretical question. I use JDBC with my Java applications for using
I have two applications written in Java that communicate with each other using XML
I've developed some web-based applications till now using PHP, Python and Java. But some
Every time that I start up my grails application, using the production environment on
How to get money from users phone using Java application? So I want to
I'm thinking about using the java application object to implement a simple cache, to
I have a Java Swing application, developed on Mac OS X 10.5 using Java

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.