I require some info about GlassPane. I am developing an application. In that I want to add JEdtorPane to JFrame. I have a checkbox at the JMenubar of that Frame. If I check the checkbox then Glasspane has to be added to the Frame on which we can be able to draw line, rectangle, Ovel..etc(similar to whiteboard), but the contents of JEditorPane should be visible.i.e, I want to make the whiteboard panel as a glaspane to that frame. I hope u understand my requirement.. If anyone know how to do please give me an idea..