import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DisplayFinal_Panel extends JPanel
{
private JLabel label1, label2, label3;
private JTextField box;
private JCheckBox c1,c2;
public DisplayFinal_Panel()
{
setLayout(null);
box = new JTextField("",60);
box.setBounds(0,1,500,45);
add(box);
JButton b1 = new JButton("Data");
b1.addActionListener(new Listener1());
b1.setBounds(10, 50,70, 30);
add(b1);
JButton b2 = new JButton("Staticticks");
b2.addActionListener(new Listener2());
b2.setBounds(100, 50, 100, 30);
add(b2);
JButton b3 = new JButton("Graph Data");
b3.addActionListener(new Listener3());
b3.setBounds(220, 50,100, 30);
add(b3);
JButton b4 = new JButton("Quit");
b4.addActionListener(new Listener4());
b4.setBounds(340, 50,70, 30);
add(b4);
Font f = new Font("Serif", Font.BOLD, 30);
label1 = new JLabel("Data:");
label1.setFont(f);
label1.setForeground(Color.blue);
label1.setBounds(10, 100,70, 30);
add(label1);
label2 = new JLabel("Mean: ");
label2.setFont(f);
label2.setForeground(Color.blue);
label2.setBounds(10, 150,90, 30);
add(label2);
label3 = new JLabel("Standard Deviation:");
label3.setFont(f);
label3.setForeground(Color.blue);
label3.setBounds(10,200,300, 30);
add(label3);
JCheckBox c1 = new JCheckBox("Mean");
c1.addActionListener(new Listener1());
c1.setBounds(10, 250,70, 30);
add(c1);
JCheckBox c2 = new JCheckBox("Standard Deviation");
c2.addActionListener(new Listener1());
c2.setBounds(10, 300,150, 30);
add(c2);
}
public void paintComponent(Graphics g)
{
}
private class Listener1 implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
}
}
private class Listener2 implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
}
}
private class Listener3 implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
}
}
private class Listener4 implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
System.exit(0);
}
}
}