package divelog; import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.*; import divelog.DiveHandler; public class UIWestPanel extends JPanel implements ActionListener, ItemListener { //Opens class private JLabel diveNumber = new JLabel("Dive #: "); private JLabel diveNumberL = new JLabel(); private JLabel menu2 = new JLabel("Maximum Depth"); private JLabel jelly = new JLabel("", new ImageIcon("images/jellyfish.jpg"), JLabel.CENTER); private JLabel dateL = new JLabel("Date: " ); private JTextField date = new JTextField("00/00/00"); private JLabel psiStartL = new JLabel("PSI Start:"); private JTextField psiStart = new JTextField("0000"); private JLabel psiEndL = new JLabel("PSI End:"); private JTextField psiEnd = new JTextField("000"); private JLabel psiUsedL = new JLabel("PSI Used:"); private JLabel psiUsed = new JLabel(); private JLabel bottomTimeL = new JLabel("Time in Minutes:"); private JTextField bottomTime = new JTextField("00"); private JLabel visL = new JLabel("Visibility:"); private JTextField vis = new JTextField("00"); private JComboBox maxDepths; private JLabel location = new JLabel("Dive Type: "); private JRadioButton rb; private JRadioButton boatButton; private JRadioButton shoreButton; // To hold result for ButtonGroup private JRadioButton b; private JLabel blank = new JLabel(" "); protected JButton view; protected JButton enter; //To track how many dives private int count = 0; //String for JComboBox result private String s; //Variable for text area public JTextArea comments; public String cts; private JScrollPane scrollpane; private JLabel whiteshark; private Box box;