Path: csiph.com!aioe.org!.POSTED.hqPgifCF1TaqUfx+6Uvsxg.user.gioia.aioe.org!not-for-mail From: Gioacchino Newsgroups: it.comp.java Subject: Re: etichetta invisibile Date: Thu, 29 Aug 2019 23:12:30 +0200 Organization: Aioe.org NNTP Server Lines: 21 Message-ID: References: NNTP-Posting-Host: hqPgifCF1TaqUfx+6Uvsxg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Content-Language: it X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com it.comp.java:9315 Il 29/08/2019 18:11, Dr.UgoGagliardelli ha scritto: > Il 29.08.2019 14.25, Gioacchino ha scritto: >> Vorrei mettere su una maschera una label non visibile,ma in una >> posizione nota. Cliccandoci sopra TENENDO PREMUTO UN TASTO, ESEMPIO >> CTRL , mi fa comparire un menu' segreto. >> >> Ho difficoltà a scrivere (gestire)  l'evento "clic+ tasto CTRL" premuto >> >> >> Grazie > L'evento MouseEvent ha il metodo getModifiers() ereditato da InputEvent, > se contiene CTRL_DOWN_MASK significa che il mouse e' stato clikkato con > il tasto ctrl giu'. Per cui il test diventa: > (event.getModifiers() & InputEvent.CTRL_DOWN_MASK) == > InputEvent.CTRL_DOWN_MASK grazie PS: il codice intercetta anche la pressione del tasto "ALT GR" ( perchè suppongo corrisponde alla pressione di due tasti CONTROL + ALT ): si può escludere tale tasto ALT GR ?