JFileChooser

How do you use the JFileChooser. I want to be able to select a file and store the filename and path in a string.I already tried the example that is on the Java web site, bt it comes back with an error.Any help?
[238 byte] By [US101] at [2007-9-26 2:13:12]
# 1

It might help if you posted some code. Here are some links that might help though:

http://forum.java.sun.com/thread.jsp?forum=54&thread=151766

-> Java 2 Platform SE v1.3.1

http://java.sun.com/j2se/1.3/docs/api/

http://java.sun.com/j2se/1.3/docs/api/javax/swing/JFileChooser.html

thomasfly at 2007-6-29 9:07:28 > top of Java-index,Archived Forums,New To Java Technology Archive...