I really like the Visual Studio Framework. I'm building a java application and I want my gui to be in a class called "Form" and I want my main method to be in a class "Program" so I can write a simple line of coding saying like Run(Form);
Form Class
public class Form {
private javax.swing.JFrame container;
public void Form() {
InitializeComponent();
}
public void InitializeComponent() {
this.container.setName("Frame");
this.container.setSize(500,500);
this.container.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
this.container.setVisible(true);
}
}
Program Class:
public class Program {
public static void main(String[] args) {
// what would I need to write here to launch an
// instance of Form and for it to be displayed?
}
}
Form Class
public class Form {
private javax.swing.JFrame container;
public void Form() {
InitializeComponent();
}
public void InitializeComponent() {
this.container.setName("Frame");
this.container.setSize(500,500);
this.container.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
this.container.setVisible(true);
}
}
Program Class:
public class Program {
public static void main(String[] args) {
// what would I need to write here to launch an
// instance of Form and for it to be displayed?
}
}