@@ -0,0 +1,2180 @@
+/*%0A%0AProgrammers: Kris Larson%0A%0ADescription: Just fiddling around with JFrame and GUIs in java.%0A%0A*/%0A%0A%0A%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0Aimport javax.swing.*;%0Aimport java.util.ArrayList;%0A%0Apublic class GUIFun %7B%0A%09 %0A   private JFrame frame;%0A   private JPanel panel;%0A   private JButton button;%0A   private JButton button2;%0A%0A%0A   public GUIFun()%7B%0A       frame = new JFrame();%0A       frame.setSize(400,400);%0A       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A        %0A       panel = new JPanel();%0A%0A       button = new JButton(%220%22);%0A       button.addActionListener(new ActionListener()%7B%0A%0A           public void actionPerformed(ActionEvent e)%7B%0A               JOptionPane.showMessageDialog(null, %22You clicked the JButton%22);%0A           %7D%0A       %7D);%0A%0A       panel.add(button);%0A       otherButtons();%0A       buttonsCreate();%0A       %0A       frame.add(panel);%0A       frame.setVisible(true);%0A   %7D%0A   %0A   public void otherButtons() %7B%0A      button2 = new JButton(%221%22);%0A      %0A      button2.addActionListener(new ActionListener()%7B%0A%0A           public void actionPerformed(ActionEvent e)%7B%0A               JOptionPane.showMessageDialog(null, %22%22);%0A           %7D%0A       %7D);%0A       %0A       panel.add(button2);%0A   %7D%0A   %0A   %0A   public void buttonsCreate() %7B%0A      String str;%0A            %0A      for (int count = 0; count %3C 16; count++) %7B%0A         str = %22%22 + count;%0A         JButton test = new JButton(str);%0A         %0A         if (count == 10) %7B%0A            test.addActionListener(new ActionListener()%7B%0A   %0A              public void actionPerformed(ActionEvent e)%7B%0A                  methodAction();%0A              %7D%0A            %7D);%0A         %7D%0A         else %7B%0A            test.addActionListener(new ActionListener()%7B%0A   %0A              public void actionPerformed(ActionEvent e)%7B%0A                  JOptionPane.showMessageDialog(null, %22Eventually will be a dynamic message%22);%0A              %7D%0A            %7D);%0A         %7D%0A         %0A         panel.add(test);%0A      %7D %0A   %7D%0A   %0A   public void methodAction() %7B%0A      JOptionPane.showMessageDialog(null, %22Wooh the method works!%22);%0A   %7D%0A   %0A   public static void main(String%5B%5D args) %7B%0A      GUIFun test = new GUIFun();%0A   %7D%0A%7D%0A

Create GUIFun.java