Forum Stats

  • 3,733,661 Users
  • 2,246,801 Discussions
  • 7,856,830 Comments

Discussions

Disable something -- JFileChooser

843806
843806 Member Posts: 49,998
edited July 2009 in Swing
Hey guys,

I want to know how to disable the choosing methode on the left side of the JFileChooser (OS: Windows XP).
[Link...|http://casio.homeunix.com/fileChooser.jpg]


I have made a screenshoot, a picture says more than thousand words... I think so, isn't?

Hope somebody can help me.

Greetings

TheCasio

Comments

  • camickr
    camickr Member Posts: 24,931
    a picture says more than thousand words... I think so, isn't?
    Yes, which is why we ask you to post a SSCCE, not a picture. This only happens when using the Windows LAF which may not be apparent from looking at the picture.

    For the future you can read up on aSSCCE, that demonstrates the incorrect behaviour.

    Anyway you can use:
    UIManager.put("FileChooser.noPlacesBar", Boolean.TRUE);
    JFileChooser fileChooser = new JFileChooser(...)
  • 843806
    843806 Member Posts: 49,998
    Thank you, your answer is correct and very helpful for me.
This discussion has been closed.