Re: using Eclipse with visual editor



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 : )


.