

import java.awt.*;
import javax.swing.*;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class Window
{
	private JFrame window;
	private JPanel topPanel,
		buttons,
		list;

	public Window()
	{
		window = new JFrame();

		topPanel = new JPanel();
		buttons = new JPanel();
		list = new JPanel();

		window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		topPanel.add(list);
		topPanel.add(buttons);

		window.add(topPanel);
		window.pack();
		window.setVisible(true);
	}
}

@@ -206,28 +206,91 @@
 st;%0A
-%0A%09public Window()%0A%09%7B
+%09private JButton add;%0A%0A%09public Window()%0A%09%7B%0A%09%09bListener listener = new bListener();%0A
 %0A%09%09w
@@ -385,24 +385,88 @@
  JPanel();%0A%0A
+%09%09add = new JButton(%22Add%22);%0A%09%09add.addActionListener(listener);%0A%0A
 %09%09window.set
@@ -507,24 +507,45 @@
 ON_CLOSE);%0A%0A
+%09%09buttons.add(add);%0A%0A
 %09%09topPanel.a
@@ -650,11 +650,163 @@
 rue);%0A%09%7D
+%0A%0A%09private class bListener implements ActionListener%0A%09%7B%0A%09%09public void actionPerformed (ActionEvent e)%0A%09%09%7B%0A%09%09%09if(e.getSource() == add)%0A%09%09%09%09return;%0A%09%09%7D%0A%09%7D
 %0A%7D%0A

add "Add" button, does nothing atm