How to print an invisible JPanel.

Hello!

I try to print a new instance of a JPanel with the Printable interface. But the output page is everytime empty.

When I put the instance of the JPanel into a new JFrame and open this frame with a setVisible(true), the output is perfect.

My theory is, that the JPanel will not be painted, when it's not will be showed.

Is it possible, that I can print my JPanel without creating and showing a JFrame?

Thanks for your answers!

PS: And sorry for this mad english!

[510 byte] By [Bjoern2a] at [2007-11-27 8:16:55]
# 1
You know, there's an easy way to test your theory. Just try it out.
hunter9000a at 2007-7-12 20:02:00 > top of Java-index,Java Essentials,Java Programming...
# 2
I have try it.Or what for a way mean you?
Bjoern2a at 2007-7-12 20:02:00 > top of Java-index,Java Essentials,Java Programming...
# 3
> I have try it.I'm assuming it didn't work. What happened? What did you try?> Or what for a way mean you?
hunter9000a at 2007-7-12 20:02:00 > top of Java-index,Java Essentials,Java Programming...