Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / April 2007

Tip: Looking for answers? Try searching our database.

Undecorated JFrame versus JWindow

Thread view: 
robotiser@googlemail.com - 29 Mar 2007 10:58 GMT
I've only just discovered undecorated JFrames. Thy solve some of the
problems I'd had with JWindows before, such as not being suitable
parents for JDialogs.

In fact, I don't have any reason to use JWindow at all any more. For
the kind of things I do.

Are there situations where it is better to use JWindow rather than
JFrame?
robotiser@googlemail.com - 18 Apr 2007 09:44 GMT
No answers. Does this mean that nobody knows of any reasons to use a
JWindow instead of an undecorated JFrame, or that everyone thinks that
it's a stupid question that I should be able to work out myself?
Andrew Thompson - 18 Apr 2007 10:10 GMT
>No answers. Does this mean that nobody knows of any reasons to use a
>JWindow instead of an undecorated JFrame, ...

I do not speak for others, but for my own part,
there are only some minor reasons..
1) One less line of code.
2) JFrame has some 'baggage' that is not required
for a (J)Window.  It inherits the methods of Frame,
and has things like setDefaultCloseOperation().

Signature

Andrew Thompson
http://www.athompson.info/andrew/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.