JPanel panel = new JPanel();
JButton button = new JButton("Do it!");
button.addActionListener(new DoItListener());
outputLabel = new JLabel("date appears here");
DateFormatSymbols dateStuff = new DateFormatSymbols();
month = new JComboBox(dateStuff.getMonths());
day = new JTextField(8);
year = new JTextField(8);
JPanel inputPanel = new JPanel(new GridLayout(3,2));
inputPanel.add(new JLabel("Month"));
inputPanel.add(month);
inputPanel.add(new JLabel("Day"));
inputPanel.add(day);
inputPanel.add(new JLabel("Year"));
inputPanel.add(year);
panel.add(inputPanel);
panel.add(button);
panel.add(outputLabel);
return panel;