How to set L&F on JFileChooser?

My JFileChooser is serialized, and upon deserialization I wish for it to have the current L&F. How do I set the L&F of a JFileChooser? Any method I suspect, like setUI takes a JComponent, not a LookAndFeel object.RegardsFluid
[254 byte] By [Fluida] at [2007-11-27 4:35:56]
# 1
Remind me why you are serializing a JFileChooser. Are you doing that to your whole GUI?
Hippolytea at 2007-7-12 9:46:04 > top of Java-index,Java Essentials,Java Programming...
# 2
Remind you? I have not told you. Do you know how to set the Look and Feel of a JFileChooser?
Fluida at 2007-7-12 9:46:04 > top of Java-index,Java Essentials,Java Programming...
# 3
Okay. Don't remind us. Tell us.
Hippolytea at 2007-7-12 9:46:04 > top of Java-index,Java Essentials,Java Programming...
# 4

I see... I serialize an object to preserve its state in persistent memory. It does little overhead, and occupies 4kb of non-expensive harddisk space. I guess there are other reasons for this since you need to ask.

Your assumption that I serialize all my GUI is coming from..where?

Who are "us"?

In your favor I will assume you are desperately trying to teach me some do's and dont's when it comes to serialization, in a smart-***, rhetoric fashion, but so far you have not managed to get to your point, nor give any hints whatsoever if you are able to answer MY questions.

Fluida at 2007-7-12 9:46:04 > top of Java-index,Java Essentials,Java Programming...
# 5
Remind me what you have managed to do. No wait, you already have.
Hippolytea at 2007-7-12 9:46:04 > top of Java-index,Java Essentials,Java Programming...
# 6
> Who are "us"?Oh, I am writing this for myself and my brothers, D閟ir? Jean-Marie and Jocelyn.
Hippolytea at 2007-7-12 9:46:04 > top of Java-index,Java Essentials,Java Programming...
# 7
I really appreciate your attempt to help Hippolyte, but the bottom line is that you cannot help? You are just socializing? :)
Fluida at 2007-7-12 9:46:04 > top of Java-index,Java Essentials,Java Programming...
# 8
Serializing a JFileChooser seem like a bad design move, to me and Jocelyn, at least. Why not just serialize the current directory and selected file(s). Is there really more one needs to store?
Hippolytea at 2007-7-12 9:46:04 > top of Java-index,Java Essentials,Java Programming...
# 9

There are a number of states that could be of interest, titles, tooltips, fileviews etc. There are a number of needs outside my own.

What comprise a good design move is always up for discussion. For most people, that is. In my book simplicity is a huge factor in a good design. This is simple, even if I need to add 2 lines to set the Look and Feel.

There may be issues in the serialization concept that I do not know about. Perhaps I may run the risk of cascade serialization due to listener objects, or similar. This I would like to discuss, perhaps not with you.

But I still need some tip regarding setting the Look and Feel for a JFileChooser object.

Fluida at 2007-7-12 9:46:04 > top of Java-index,Java Essentials,Java Programming...