Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Print JFrame with components

 
Jude Fawly
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There,
can somebody help me. my deadline is on the next Sunday.

how can i print my jframe with all the components on it like a jtable.
can you provide me with a code fragment for that.
I read the printing API but it is hard for me.
 
Dave Mace
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A little late, but I'll leave this here for reference:

//pertinent code only




Note: Your class needs to implement Printable

It's a little dirty, but it's rather old code from when I was learning Java and I didn't double-check it as I posted it here, but it's working in my application so.....

David
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic