Path: csiph.com!aioe.org!.POSTED.D/yWLgg4/J3ZIv1oe1tc3Q.user.gioia.aioe.org!not-for-mail From: "Dr.UgoGagliardelli" Newsgroups: it.comp.java Subject: Re: etichetta invisibile Date: Thu, 29 Aug 2019 18:11:16 +0200 Organization: Aioe.org NNTP Server Lines: 14 Message-ID: References: NNTP-Posting-Host: D/yWLgg4/J3ZIv1oe1tc3Q.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 X-Antivirus: Avast (VPS 190829-0, 29/08/2019), Outbound message X-Antivirus-Status: Clean Content-Language: it-IT X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com it.comp.java:9314 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