Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: =?UTF-8?B?R3VscMKu?= Newsgroups: it.comp.java Subject: Re: da package a jframe Date: Sat, 17 Oct 2015 16:33:49 +0200 Organization: Aioe.org NNTP Server Lines: 16 Message-ID: References: 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:8649 Il 17/10/15 06:41, Dr.UgoGagliardelli ha scritto: > Il 16.10.2015 18.41, Gulp® ha scritto: >> Il 16/10/15 17:03, Dr.UgoGagliardelli ha scritto: >>> Frame f=SwingUtilities.getAncestorOfClass(Frame.class, evt.getSource()); >> >> evt.getSource() >> da come eccezione: incompatible types object cannot be converted to >> component >> > Prova con evt.getComponent(); Nemmeno con getComponenet ne vuol sapere. -- Gulp® (forse mi sono perso qualcosa :))