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

    Question Printing a GUI form that used swing

    Hey everyone!

    not cross-posting this time :)

    anyway, i'm wondering if it's possible to print my whole java program with the input in the text fields already there? I made my application using swing component. i'm using netbeans
    Last edited by Taron; 11-15-2010 at 10:30 PM.

  2. #2
    curmudgeon is offline Senior Member
    Join Date
    May 2010
    Posts
    436
    Rep Power
    5

    Default

    Have you looked into the Print API?
    Printing tutorial

  3. #3
    RichersooN is offline Senior Member
    Join Date
    Jan 2011
    Location
    Rizal Province, Philippiines
    Posts
    167
    Rep Power
    0

    Default Re: Printing a GUI form that used swing

    put them all in a panel, then use print method.

    jpanel.print();

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,239
    Rep Power
    19

    Default Re: Printing a GUI form that used swing

    Quote Originally Posted by RichersooN View Post
    put them all in a panel, then use print method.

    jpanel.print();
    I sincerely doubt anyone is still looking for a solution nearly two years after asking the question.

    db

    THREAD CLOSED
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Printing in Swing
    By dhaivat in forum AWT / Swing
    Replies: 8
    Last Post: 03-04-2010, 03:55 PM
  2. swing form
    By Patel in forum AWT / Swing
    Replies: 1
    Last Post: 01-31-2010, 06:05 PM
  3. Printing default Swing values
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-12-2008, 11:09 AM
  4. Printing Swing components in multiple pages
    By Rajeswari in forum New To Java
    Replies: 1
    Last Post: 07-27-2007, 05:49 PM
  5. Printing Swing components in multiple pages
    By Rajeswari in forum AWT / Swing
    Replies: 0
    Last Post: 07-27-2007, 05:01 PM

Posting Permissions

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