• Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing AWT From Applet

 
Patricia Fulk
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I am trying to print a panel from an applet, but it isn't working. All I get is a blank page. I am using the print utility that someone had suggested to someone else on this site. I am trying to call the utility with the following:
PrintUtilities.printComponent(aPanel);
Where aPanel is a panel with different awt components on it, i.e. TextArea, TextField, Label, etc.
Can someone tell me what I am doing wrong?
Thanks for the help in advance,
Trish

The print utility code is as follows:
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!