0

I want to open a JFileChooser with the sorting option being set to modified descending by default.

Anyone have any ideas?

(I'm relatively new to swing)

Cheers

I've found this older solution but it doesn't seem to work anymore.

5
  • What have you done/tried? Welcome. Take the tour and then see how to How to Ask.
    – cliff2310
    Commented Jul 5 at 18:30
  • 1
    The more recent answer to the question linked to is 2 1/2 months old. Does the code in that answer not work? Commented Jul 5 at 18:42
  • 1
    Update to original suggestion works for me in JDK11 on Windows.
    – camickr
    Commented Jul 5 at 18:45
  • 1
    There appears to be a duplicate post here: stackoverflow.com/questions/16429779/… check this out and let me/us know if this answers your question, and I'll mark your question as duplicate? Commented Jul 5 at 18:59
  • Turns out it (the older solution) works but creates a second window, I'm going to play around with it and see if I can get it to only open one window. Thanks guys.
    – ViperNB
    Commented Jul 6 at 11:11

0

Browse other questions tagged or ask your own question.