}
});
elapsedPnl.add(tw, BorderLayout.EAST);
mainPnl.setLayout(new GridLayout(2, 1));
elapsedPnl.setBorder(elapsedBorder);
ImageButton applyButt = new ImageButton("Schedule", goPic);
ImageButton closeButton = new ImageButton("Close", closePic);
JPanel bufButPnl = new JPanel(new BorderLayout());
bufButPnl.add(buttonPnl, BorderLayout.SOUTH);
JPanel buttImplPnl = new JPanel(new GridLayout(1, 2, 5, 5));
buttonPnl.add(buttImplPnl, BorderLayout.EAST);
buttImplPnl.add(closeButton);
buttImplPnl.add(applyButt);
buttonPnl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
mainPnl.add(elapsedPnl);
mainPnl.add(startPnl);
mainPnl.setBorder(mainBorder);
bufferPnl.add(mainPnl, BorderLayout.NORTH);
bufferPnl.add(bufButPnl, BorderLayout.SOUTH);
this.setBorder(scheduleBorder);
this.add(bufferPnl, BorderLayout.CENTER);
applyButt.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
schedule();
}
});
closeButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
parent.setVisible(false);
}
});
}