How can I set the JTextField with the JLabel just clicked?
What should I add in:
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel2MouseClicked(evt);
}
private void jLabel2MouseClicked(java.awt.event.MouseEvent evt) {
}
I would also question the reasons for allowing clicking on labels. Why not use buttons?
Anyway, assuming you do have a good reason, this is how you could do it: