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 

Lettura di un carattere da tastiera

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





PostPosted: Sun Dec 26, 2004 10:27 am    Post subject: Lettura di un carattere da tastiera Reply with quote



Avrei bisogno di intercettare il primo tasto premuto dall'utente. "c =
(char) System.in.read();" funziona, ma devo aspettare la pressione del tasto
invio (e viene visualizzato quanto ho digitato). KeyListener non aspetta la
pressione del tasto invio, ma richiede oggetti gui, e io invece lavoro
esclusivamente da finestra DOS.

C'è qualcosa che fa al caso mio?


Back to top
Davide Consonni
Guest





PostPosted: Sun Dec 26, 2004 10:29 am    Post subject: Re: Lettura di un carattere da tastiera Reply with quote



Marco wrote:

Quote:
Avrei bisogno di intercettare il primo tasto premuto dall'utente. "c =
(char) System.in.read();" funziona, ma devo aspettare la pressione del
tasto invio (e viene visualizzato quanto ho digitato). KeyListener non
aspetta la pressione del tasto invio, ma richiede oggetti gui, e io invece
lavoro esclusivamente da finestra DOS.

C'è qualcosa che fa al caso mio?

è un limite di java.

puoi usare questo
http://java-readline.sourceforge.net/


--
Davide Consonni
http://csvtosql.sourceforge.net

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.