Results 1 to 6 of 6
  1. #1
    ellias2007 is offline Member
    Join Date
    Feb 2010
    Posts
    25
    Rep Power
    0

    Default Print out a JFrame !

    Hi all....
    i have many panels and texts and Tables ... All are inside a JFrame (or a JTabbedPane)
    My Question is sooooo simple :
    How to Print this JFrame (or JTabbedPane) ?!
    i searched the web and found so many codes but they r all so complicated...
    Please any body help me with a VERY SIMPLE code doing that ?!!
    (Note : the JFrame has the same dimension as an A4 Paper)
    many many Thanks...:rolleyes:

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I'm not sure that there is a way to do this with one or three method calls. Have you tried using the code you've seen? Have you read any tutorials on printing? Here's one:

    Article: Java 2 Platform Introduces Print Capability to the Swing Forum

    Why not give it a try and if it fails, come on back with your code.

  3. #3
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

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

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    and he doesn't respond to replies and has been warned about cross-posting without notification before. Another one for the do-not-help list.

  6. #6
    ellias2007 is offline Member
    Join Date
    Feb 2010
    Posts
    25
    Rep Power
    0

Similar Threads

  1. Replies: 6
    Last Post: 04-12-2010, 11:33 AM
  2. Print jFrame
    By uthpalaw in forum AWT / Swing
    Replies: 7
    Last Post: 04-02-2010, 05:39 PM
  3. Passing data from one JFrame to another JFrame
    By tarami in forum New To Java
    Replies: 3
    Last Post: 08-06-2009, 05:44 PM
  4. Replies: 4
    Last Post: 04-22-2009, 11:02 PM
  5. Print the text file and print preview them
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-22-2008, 11:04 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
  •