*
The moose likes Swing / AWT / SWT and the fly likes Successful cloning of a Panel? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Successful cloning of a Panel?" Watch "Successful cloning of a Panel?" New topic
Author

Successful cloning of a Panel?

John Richardson
Greenhorn

Joined: Feb 20, 2004
Posts: 13
I want to send a cloned subclass of Panel to the printer (an image), then allow the user to change the original to whatever they want by opening a new file.
My question: Can I successfully clone the Panel (or the entire Frame) and hide it from the user, and keep printing the cloned panel behind the scenes in memory? I have to display pages on the new cloned(printed) panel too because this would be a multipage document.
Essentially, I want to keep the UI "alive" during printing.
Also, are there any other gotchas I should look out for in AWT with that approach?
Any information would be much appreciated.
Thanks!
 
wood burning stoves
 
subject: Successful cloning of a Panel?