This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to open up a html file with a File Chooser? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to open up a html file with a File Chooser?" Watch "How to open up a html file with a File Chooser?" New topic
Author

How to open up a html file with a File Chooser?

m brown
Ranch Hand

Joined: Mar 01, 2005
Posts: 57
okay, basically i want a "viewer" application that will use a file chooser dialog to choose and display a html file.

so far i have this




now when i try to run this, i get a "cannot resolve symbol" error...

i dont know any other way to try and do this, any help would be appreciated.
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1348
If you're getting a "cannot resolve symbol" error and want help, please include the rest of the error.
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342
Could be this line...



Where is the identifier "fc" created? I'm assuming this is supposed to be some kind of file browser/chooser dialog object?

Take a look at FileDialog which might help you out...


[ March 30, 2005: Message edited by: Ben Wood ]

SCJP 1.4, www.gsi3d.org.uk
m brown
Ranch Hand

Joined: Mar 01, 2005
Posts: 57
yes actually fc was a file chooser object that was created..ill try to use the file dialog that looks like what i was looking for.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to open up a html file with a File Chooser?
 
Similar Threads
Problems passing data into file from JTable
Problem with a JTextPane
PASSING DATA IN A JTable
JTextPane inside JScrollPane
Stop text from wrapping