AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

simulazione di "occupato" = bloccare internal frame

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
luciano996
Guest





PostPosted: Mon Jun 28, 2004 7:44 am    Post subject: simulazione di "occupato" = bloccare internal frame Reply with quote



non riesco a capire come si può fare a bloccare un internal frame
durante l'esecuzione di un thread.

ho un internal frame con cui faccio delle "start" dopo che l'utente ha
cliccato un jbutton.
l'internal frame contiene pulsanti e campi di edit.

mentre il thread è in esecuzione, fornisco all'utente l'effetto di
"occupato" attivando un glass e mostrando il puntatore del mouse di
occupato.

in questa maniera l'utente non può cliccare nulla, però se si sposta
con il TAB sui campi editabili può tranquillamente digitare anche con
il glass attivo !!!

per bloccare tutti i componenti (senza referenziare ogni singolo
componente) ho provato "getContentPane().setEnabled(false);" ma non
sortisce effetti sui singoli componenti. Ho anche provato ad
intercettare gli KeyEvent sul contentpane ma non si attiva dal content
ma solo dai singoli componenti.

DOMANDA:
come posso fare a bloccare tutti i componenti del contentpane senza
entrare nel merito del singolo componente ?

Grazie ciao
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.