diff --git a/bin/SecondGUI.class b/bin/SecondGUI.class new file mode 100644 index 0000000..e8e65e3 --- /dev/null +++ b/bin/SecondGUI.class Binary files differ diff --git a/src/SecondGUI.java b/src/SecondGUI.java new file mode 100644 index 0000000..635cadb --- /dev/null +++ b/src/SecondGUI.java @@ -0,0 +1,21 @@ +import java.awt.FlowLayout; + +import javax.swing.JButton; +import javax.swing.JFrame; + +public class SecondGUI extends JFrame { + public static void main(String[] args) { + // new SecondGUI().setVisible(true); + new SecondGUI(); + } + public SecondGUI(){ + super("SecondGUI"); + getContentPane().setLayout(new FlowLayout()); + getContentPane().add(new JButton("B1")); + getContentPane().add(new JButton("B2")); + getContentPane().add(new JButton("B3")); + setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + pack(); + setVisible(true); + } +}