Click to See Complete Forum and Search --> : Irregular Shapped window


Vikram N
September 24th, 1999, 05:24 AM
Hi All

Does any body know how to create an irregular shaped window/frame in java e.g a window with 6 sides or 3 sides.

-Vikram

unicman
September 25th, 1999, 04:08 AM
I don't think so. At least not with Frame, as it draws border and caption by default. But there may be a work around in case of 'Window'. U can try sub-classing 'Window' class. It doesn't draw border and caption by default. Then in the paint method u can draw whatever shape u want.

I haven't tried this, this is just a suggestion.

- UnicMan
http://members.tripod.com/unicman