> Hello,
>
[quoted text clipped - 14 lines]
>
> Thanks :)
Hi, Its very easy, till now you would have figure out yourself.
Its about the public static void main(String args[]), there no method
with this signature in the class! then form where the program should
start execution. :)
Mr. X. - 29 Feb 2008 15:11 GMT
Thanks.
What should I put on main.
See following (see remarks on main function ...)
public class dlgMain extends JDialog {
...
private dlgMain myDlg;
public dlgMain(Frame owner) {
super(owner);
initialize();
}
public static void main(String args[])
{
// **** here is the problem.
// **** null is not OK.
myDlg = new dlgMain(null); // null is not O.K , but still I want to show
the dialog (that Eclipse has done with the visual editor).
}
private void initialize() {
this.setSize(300, 200);
this.setContentPane(getJContentPane());
}
...
Thanks : )