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 / General / August 2006

Tip: Looking for answers? Try searching our database.

Two Jframe`s - how to setenable(fasle) ?

Thread view: 
tk - 15 Aug 2006 19:46 GMT
I have problem, in my application I have main jframe, now user click on
jbutton, now I create another Jframe with jprogressbar
i would like to block main Jframe. How to do is ?
Michael Rauscher - 15 Aug 2006 20:21 GMT
tk schrieb:
> I have problem, in my application I have main jframe, now user click on
> jbutton, now I create another Jframe with jprogressbar
> i would like to block main Jframe. How to do is ?

E. g. you can use a modal JDialog for the second window.

Bye
Michael
tk - 15 Aug 2006 20:32 GMT
> tk schrieb:
>> I have problem, in my application I have main jframe, now user click on
[quoted text clipped - 5 lines]
> Bye
> Michael

if I create JDialog the main windows is also enable I want to be disable
Andrew Thompson - 15 Aug 2006 20:45 GMT
> > tk schrieb:
> >> I have problem, in my application I have main jframe, now user click on
> >> jbutton, now I create another Jframe with jprogressbar
> >> i would like to block main Jframe. How to do is ?
> >
> > E. g. you can use a modal JDialog for the second window.
..
> if I create JDialog the main windows is also enable I want to be disable

Michael said a *modal* JDialog.  (and that is 'modal=true')
If you do not understand what modal means, check the
constructors and try it.  It should do exactly what you need.

(Or at least - the main window is 'disabled' in the sense
that the end user cannot click in it, but the controls are
not 'grayed out')

Andrew T.


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.