Path: csiph.com!news.redatomik.org!aioe.org!.POSTED!not-for-mail From: "Dr.UgoGagliardelli" Newsgroups: it.comp.java Subject: Re: Focus Date: Tue, 27 Jun 2017 18:01:52 +0200 Organization: Aioe.org NNTP Server Lines: 7 Message-ID: References: NNTP-Posting-Host: ApcxreYFEFCaPYJBFSwylg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Antivirus: Avast (VPS 170626-4, 26/06/2017), Outbound message Content-Language: it-IT X-Antivirus-Status: Clean Xref: csiph.com it.comp.java:9100 Il 27.06.2017 17.16, Oliviero ha scritto: > Vorrei ottenere, in swing, che un certo componente abbia il focus subito > appena parte l'applicazione, qualcuno puo' > darmi qualche dritta? Tutti i JComponent ereditano i metodi requestFocusInWindow() e grabFocus() entrambi portano il focus sul componente, il primo solo se la finestra che lo contiene ha gia' il focus, il secondo in ogni caso.