You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Luis tuti <mi...@gmail.com> on 2019/06/03 15:28:26 UTC

how to put focus inside JDialog with netbeans

Hi,


I have a JDialog created by Netbeans. How could I put focus in a jTextArea
when I open the JDialog. I know after pack() method with
jTextArea.requestFocus() works but in Netbeans can't modify
initComponents() method.

Thanks and sorry for my English!

Re: how to put focus inside JDialog with netbeans

Posted by Christoph Theis <th...@gmx.at>.
Am 03.06.2019 um 16:28 schrieb Luis tuti:
>
> I have a JDialog created by Netbeans. How could I put focus in a
> jTextArea when I open the JDialog. I know after pack() method with
> jTextArea.requestFocus() works but in Netbeans can't modify
> initComponents() method.

I put my code into the constructor after the call of initComponents().

There may be better ways to do it.


Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists