Monday, February 2, 2015

Using JFrame
































I need some advice.































I am preparing a small program with a user interface where:































the user can choose between two buttons































1- button then leads to a whole series of options































button 2 - leads to another series.
































is correct to create a java project and immediately do:
















































Java Code:





































import javax.swing.JFrame;
public class TestInterface {

public static void main(String[] args) {
// TODO Auto-generated method stub

JFrame frame = new JFrame("ExampleWrite");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

frame.setSize(1200, 600);
frame.setLocationRelativeTo(null);

frame.setVisible(true);
}

}



































and then build the buttons and reasoning on this interface?














































No comments:

Post a Comment