jeremytaffy
Technical User
I am trying to get an actionlistener to open up a new window to display a JTextField.
the code is as follows:
delete.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
super("framename"
setSize(200, 200);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
popup frame = new popup();
frame.add(JTextfield);
}
});
when compiling, this gives me an "illegal start of expression" and points to the public parrt of public popup()
WHY????
thanx in advance
j
the code is as follows:
delete.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
super("framename"
setSize(200, 200);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
popup frame = new popup();
frame.add(JTextfield);
}
});
when compiling, this gives me an "illegal start of expression" and points to the public parrt of public popup()
WHY????
thanx in advance
j