gui gone with JFileChooser

Hi,

I encountered an interesting problem this morning. I intialized the JFileChooser component globally ( not in any method of the class). Previously It was in the actionPefromed() method.

when I run the program I see no alphabets or script in my GUI. Everything is lost. even the text data in textfieild components is not visible. Interesting I am able to select the text. This means the text is there but not visible.

I rolled back the initialization to actionPerfromed method, and everything worked fine.

I failed to find logic for this behaviour. How could JFileChooser be responsible? that too intialization inside a method or globally should'nt affect the GUI.

Am I missing something?

Thank u for ur time,

regards,

Rajesh Rapaka.

[794 byte] By [R.Rajesha] at [2007-10-3 4:01:40]
# 1
Perhaps you should show us the relevant code ?
Franck_Lefevrea at 2007-7-14 22:00:55 > top of Java-index,Java Essentials,Java Programming...
# 2
Please show your code.I guess you have used awt GUI.Frame, Label, TextField belong to awt.JFrame, Label, JTextField belong to Swing.
evilknighthka at 2007-7-14 22:00:55 > top of Java-index,Java Essentials,Java Programming...