File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Successful cloning of a Panel?" Watch "Successful cloning of a Panel?" New topic

Successful cloning of a Panel?

John Richardson

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.
I agree. Here's the link:
subject: Successful cloning of a Panel?
It's not a secret anymore!