Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Disable something -- JFileChooser

843806Jun 27 2009 — edited Jul 3 2009
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
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
Thank you, your answer is correct and very helpful for me.
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 31 2009
Added on Jun 27 2009
2 comments
384 views