button listener help pls.
pls help.
private void EntityButtonActionPerformed(java.awt.event.ActionEvent evt) {
< what should i put here? T_T
}
what lines should i put in order for my button to call another form that is from another file. they are already using the same package.
this is the form that i'm trying to call.
package my.dbd;
public classNewEntity extends javax.swing.JFrame {
public NewEntity() {
initComponents();
}
private void initComponents() {
..........
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewEntity().setVisible(true);
}
});
}
private javax.swing.JButton CancelButton;
private javax.swing.JButton CreateButton;
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
private javax.swing.JTextField jTextField1;
// End of variables declaration
}
thanks.

