Results 1 to 9 of 9
  1. #1
    dhaivat is offline Member
    Join Date
    Feb 2010
    Posts
    9
    Rep Power
    0

    Default Printing in Swing

    Can anyone tell me how to print in specific format in swing...????

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    What you exactly want to do? print is nothing to do with swing specifically. Can you explain bit more your requirement.

  3. #3
    Join Date
    Mar 2010
    Posts
    5
    Rep Power
    0

    Default

    you can use JLabel or JTextArea or JDialogBox to print.
    Depends On How do you want to print, specify in detail to get specific answers

  4. #4
    dhaivat is offline Member
    Join Date
    Feb 2010
    Posts
    9
    Rep Power
    0

    Default

    In my application i have JTable , JTextarea ..I wnat to Print in specific format...like Invoice
    format...First in title it will contain company name then Name of customer etc..So is it possible to Print in specific format.....

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    In a JTable you ca use specific structure (with columns and rows) accordingly. But if you want to display them in a JTextArea then bit of work to do. In most of the cases JTable is more appropriate.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    If you have tried something show it here. Then we can comment on that. It's very difficult to guess what you have done, how your data format/store at the moment, etc.

  7. #7
    Join Date
    Mar 2010
    Posts
    5
    Rep Power
    0

    Default

    Using JTable is much much more appropriate than usinf JTextArea.

    Still if you want you can print in TextArea and make it UnEdiatble....

    Please display what have you done so far, I can help u further.

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by msheerazhaider View Post
    Please display what have you done so far, I can help u further.
    But don't write codes for him pal. He will not learn in better way. ;)

  9. #9
    Join Date
    Mar 2010
    Posts
    5
    Rep Power
    0

    Default

    Yes buddy i won't write code for him.
    just give him an idea so he can carry on in HIS way.

Similar Threads

  1. Printing Help...
    By chiragkini in forum AWT / Swing
    Replies: 1
    Last Post: 02-17-2009, 06:07 AM
  2. Printing Example
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-11-2008, 04:41 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
  •