• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.





 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic