Results 1 to 2 of 2
  1. #1
    GoodThing007 is offline Member
    Join Date
    Dec 2011
    Rep Power

    Default Printing from a file?

    I want to print out the contents of a file called statement.txt... How would i go about doing this?

    Any help would be appreciated!

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Rep Power

    Default Re: Printing from a file?

    Read the file
    Java IO
    Parse as needed, then figure out how to represent the data graphically for printing (if just plain text, one could use one of any number of JTextComponent's available in Swing), then see the following:
    Lesson: Printing (The Java™ Tutorials > 2D Graphics)

Similar Threads

  1. Printing \n to a file
    By fred2028 in forum New To Java
    Replies: 5
    Last Post: 09-15-2011, 09:41 AM
  2. Printing file through browser
    By BobswYourUcle in forum New To Java
    Replies: 5
    Last Post: 07-18-2011, 04:53 PM
  3. Sorting and Printing file
    By spry.chipper in forum New To Java
    Replies: 3
    Last Post: 12-13-2009, 09:15 PM
  4. Printing text file
    By amitcs1001 in forum NetBeans
    Replies: 2
    Last Post: 11-30-2009, 03:17 AM
  5. Job name when printing file
    By pjmorce in forum Advanced Java
    Replies: 3
    Last Post: 12-23-2008, 02:55 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