public class JApplet extends javax.swing.JApplet {
/** Initializes the applet JApplet */
public void init() {
initComponents();
Runnable r = new Runnable() {
public void run() {
jTextArea1.requestFocus();
}
};
SwingUtilities.invokeLater(r);
}
/** This method is called from within the init() method to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
private void initComponents() {
jButton1 = new javax.swing.JButton();
jTextArea1 = new javax.swing.JTextArea();
getContentPane().setLayout(null);
jButton1.setText("jButton1");
jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton1MouseClicked(evt);
}
});
getContentPane().add(jButton1);
jButton1.setBounds(240, 10, 71, 23);
getContentPane().add(jTextArea1);
jTextArea1.setBounds(10, 10, 220, 120);
}
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
jTextArea1.requestFocus();
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JTextArea jTextArea1;
// End of variables declaration
}