Path: csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dr.UgoGagliardelli" Newsgroups: it.comp.java Subject: Re: da package a jframe Date: Sat, 17 Oct 2015 06:41:29 +0200 Organization: Aioe.org NNTP Server Lines: 9 Message-ID: References: NNTP-Posting-Host: w5/KoasfCEasm7WubpjmBw.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.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com it.comp.java:8633 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();