This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes why do we always have rectangular or square frames or windows why not ovel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "why do we always have rectangular or square frames or windows why not ovel " Watch "why do we always have rectangular or square frames or windows why not ovel " New topic
Author

why do we always have rectangular or square frames or windows why not ovel

Sunil Babu
Greenhorn

Joined: Feb 04, 2003
Posts: 7
Hi,
ijust want to know why do we always have a square or rectangular shaped frames or windows why dont we have user defined interface like various shapes circle,ovels so that we can place some components on them instead of very old rectangulat or square shaped ones
bye
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

All Windows are square/rectangle. Even those oval ones you see. What they are doing is using a square image with a shape on it. Everything outside of the shape has been given transparent properties. Thus giving the effect of an oval or mishapen window.
Java doesn't do this because it is considered an OS Dependent procedure. And JAVA is supposed to be System Independent.
L2FPROD is a JAVA API with some JNI wrapper DLL's that will allow you to create non-square windows. IT ONLY WORKS IN WINDOWS!!!


GenRocket - Experts at Building Test Data
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: why do we always have rectangular or square frames or windows why not ovel
 
Similar Threads
JFrame's icon
How to Make Fancy Buttons?
Want help on a chanllenging project
Is there a way to find out color of whatever's behind my frame?
Circular Frame