SidePanel

SidePanel - leftPanel = new JPanel();...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.ArrayList; public class SidePanel extends JPanel { private SecondPanel second; private JPanel leftPanel; private JButton _do, _dont; private ArrayList linelist; private JTextField textfield1; public SidePanel() { lineList = new ArrayList(); _do = new JButton ("Do"); _dont = new JButton ("Don't");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: leftPanel = new JPanel(); leftPanel.setLayout(new GridLayout(2,1)); leftPanel.add(_do); leftPanel.add(_dont); _do.addActionListener(new ButtonListener(event)); _dont.addActionListener(new ButtonListener(event)); textfield1 = new JTextField(); second = new SecondPanel(); second.add(listList); second.add(JTextField); } }...
View Full Document

Ask a homework question - tutors are online