Can I make a JFrame have the shape of an image rather than a rectangle ?

Simon Brown

JFrame extends java.awt.Frame and therefore uses Java's peering mechanism to draw the frame and it's platform dependent decorations. JDialog and JWindow are the same so unless your operating system supports "irregular" shaped windows then this is not possible at present.

You could shape JInternalFrames by changing the look and feel that they use though.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact