tags:

views:

48

answers:

2
+1  Q: 

Java Custom JFrame

I want to draw a custom version of a JFrame. Is is possible to extend to a JFrame and draw over it?

I've looked everywhere and can't seem to find a solution. Can someone help point me in the right direction? Thank you!

+1  A: 

Check out this site from Sun (Oracle...):

http://download.oracle.com/javase/tutorial/uiswing/components/rootpane.html

This describes the layers of JFrame which you will have to override.

You can modify the drawing of the panes down below and make the background transparent. Then override the paint method on the Content Pane (or Glass Pane) and draw the frame as you wish.

Starkey
+2  A: 

You can use setUndecorated(false) to disable the host platform's window decorations, as shown in this example.

trashgod