SidePanel - leftPanel = new JPanel leftPanel.setLayout(new...

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

This note was uploaded on 11/22/2010 for the course BSE 71920 taught by Professor Nakurmura during the Spring '10 term at ASU.

Ask a homework question - tutors are online