Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.java > #8622

Re: da package a jframe

Path csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From Gulp® <gulp@hotmail.it>
Newsgroups it.comp.java
Subject Re: da package a jframe
Date Fri, 16 Oct 2015 15:22:40 +0200
Organization Aioe.org NNTP Server
Lines 18
Message-ID <mvqtto$udl$1@speranza.aioe.org> (permalink)
References <mvmh3d$kir$1@speranza.aioe.org> <mvo5t7$l1$1@speranza.aioe.org>
NNTP-Posting-Host 5tPekrDgiV1/HwS+G/cH6A.user.speranza.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.1; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com it.comp.java:8622

Show key headers only | View raw


Ora però vorrei fare un ulteriore passaggio.
Ho inserito nella classe del frame this.addKeyListener(new KeyTab());
Vorrei con

if(evt.getKeyCode() == KeyEvent.VK_M){
	Frame f=(Frame) evt.getSource();
   	f.dispose();
e aprire il menu MENU.java

Ma mi da ClassCastException: javax.swing.JTextField cannot be cast to 
java.awt.Frame

Tieni presente che il controllo selezionato alla pressione di CTRL+M è 
un jTextField

-- 
Gulp®
(forse mi sono perso qualcosa :))

Back to it.comp.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

da package a jframe Gulp® <gulp@hotmail.it> - 2015-10-14 23:19 +0200
  Re: da package a jframe "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-15 14:24 +0200
    Re: da package a jframe Gulp® <gulp@hotmail.it> - 2015-10-16 14:39 +0200
    Re: da package a jframe Gulp® <gulp@hotmail.it> - 2015-10-16 15:22 +0200
      Re: da package a jframe "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-16 17:03 +0200
        Re: da package a jframe Gulp® <gulp@hotmail.it> - 2015-10-16 18:41 +0200
          Re: da package a jframe "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-17 06:41 +0200
            Re: da package a jframe Gulp® <gulp@hotmail.it> - 2015-10-17 16:33 +0200
            Re: da package a jframe Gulp® <gulp@hotmail.it> - 2015-10-17 16:49 +0200
              Re: da package a jframe "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-20 09:01 +0200
                Re: da package a jframe Gulp® <gulp@hotmail.it> - 2015-10-21 00:22 +0200
                Re: da package a jframe "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-21 03:08 +0200
                Re: da package a jframe Gulp® <gulp@hotmail.it> - 2015-10-25 23:09 +0100
                Re: da package a jframe "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-26 09:24 +0100
                Re: da package a jframe "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-26 13:48 +0100
                Re: da package a jframe Gulp® <gulp@hotmail.it> - 2015-10-26 17:27 +0100
                Re: da package a jframe "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-27 08:27 +0100
                Re: da package a jframe Gulp® <gulp@hotmail.it> - 2015-10-27 09:28 +0100
                Re: da package a jframe "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-27 09:59 +0100
                Re: da package a jframe marco <nospam@nospam.it> - 2015-10-27 11:47 +0100
                Re: da package a jframe "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-27 13:22 +0100
                Re: da package a jframe marco <nospam@nospam.it> - 2015-10-27 15:19 +0100

csiph-web