如何在JTextArea
点击上选择JButton
?
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
jTextArea1.setEditable(true);
jTextArea1.setForeground(Color.BLACK);
//*******************************************************
jframe.setselected(jTextArea1); // I need such function!
//*******************************************************
}