Re: using Eclipse with visual editor
- From: "Mr. X." <no_spam_please@xxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 17:11:32 +0200
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 : )
.
- References:
- using Eclipse with visual editor
- From: Mr. X.
- Re: using Eclipse with visual editor
- From: Pushkaraj
- using Eclipse with visual editor
- Prev by Date: Re: Drawing Icons
- Next by Date: Re: P~ 0.9 released, new Java-friendly scripting with novel regex
- Previous by thread: Re: using Eclipse with visual editor
- Next by thread: i m stuck with winsnmp.....!
- Index(es):