Results 1 to 4 of 4
  1. #1
    kovalensue is offline Member
    Join Date
    Nov 2010
    Posts
    19
    Rep Power
    0

    Default How to use .txt and .doc files...

    Hi,

    I am creating GUI for my little game. I've made a menu bar with button game and help, button help includes two tems - Help and Readme....now i want to create a actionListener for button readme....when the player click on this button, the new window with help, readme will show up.....because i am to lazy to rewrite whole readme or help i want to use already writen file .txt (.doc - manual)....can you give me some hints...i will appriciate some lines of code...thanks a lot

  2. #2
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    318
    Rep Power
    7

    Default

    Just read a .txt file line by line or word by word and append the text in popup when user clicks on readme button

    Or can you just post you code so that we can check the exact.
    sanjeev,संजीव

  3. #3
    kovalensue is offline Member
    Join Date
    Nov 2010
    Posts
    19
    Rep Power
    0

    Default

    i dont have code...i dont know how to read the stream file....i thought i can do it like pictures (using URL and setIcon), but i am not sure about that

  4. #4
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    318
    Rep Power
    7

    Default

    What program do you have for your current application, until you describe more how we can find the solution for that
    sanjeev,संजीव

Similar Threads

  1. Replies: 8
    Last Post: 07-30-2010, 06:47 PM
  2. import from dsv files and export to csv files
    By 10x2 in forum New To Java
    Replies: 12
    Last Post: 04-30-2010, 12:56 PM
  3. working with files (text files)
    By itaipee in forum New To Java
    Replies: 1
    Last Post: 02-24-2009, 12:38 PM
  4. Behaving text files like binary files
    By Farzaneh in forum New To Java
    Replies: 2
    Last Post: 08-27-2008, 04:20 PM
  5. how to convert mpeg files to .wav files
    By christina in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 05:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •