*
The moose likes Java in General and the fly likes 2 problems.. getting correct file from filechooser to work..turning array into jlabel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "2 problems.. getting correct file from filechooser to work..turning array into jlabel" Watch "2 problems.. getting correct file from filechooser to work..turning array into jlabel" New topic
Author

2 problems.. getting correct file from filechooser to work..turning array into jlabel

C Ho
Greenhorn

Joined: Dec 15, 2002
Posts: 16
Hello guys,

Here is my first problem that I need assistance with.. I have a RatRace class that uses JFileChooser to allow the user to select a .txt file..I have another class called Map that is supposed to take the .txt file, read it into a 2D array and display its contents.. both programs work individually, but I do not know how to integrate them.. can someone please show me how to properly get RatRace class to call Map class, and to make Map class use the file the user chose in RatRace?

Second problem. Another class called MapWindow calls the Map class and somehow converts the 2D array into a Jlabel.. Can you please check the code and offer some suggestions as to how I can fix the problem?

Thanks.





 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 2 problems.. getting correct file from filechooser to work..turning array into jlabel