JDialogs within Component
I've created an undecorated JDialog class that acts as a sticky-note which is displayed when the user right-clicks on a chart (this is a subclass of JLabel). This is a new feature that I've added in recently, and I already have a printing feature built into the system. The thing is I want to be able to print the sticky-notes placed on the screen, but to do this I'd need to make the sticky-notes children of my chart controls (which doesn't seem possible as a JDialog can only be a child of other windows).
Is there any way I could either print everything that lies within the area of the chart control (including the sticky-notes which aren't children of it), or somehow make the sticky-notes children of the chart control?
Thanks in advance!