import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class simple extends JFrame {
private JButton button = new JButton("Button1");
private JPanel panel = new JPanel(new GridLayout(4, 4, 1, 1));
private JPanel panelInput = new JPanel(new GridLayout(4, 6, 1, 1));
private JCheckBox check = new JCheckBox("Check", false);
private JTextField inputA = new JTextField("", 2);
private JTextField inputB = new JTextField("", 2);
private JTextField inputC = new JTextField("", 2);
public simple() {
super("Yopta");
this.setBounds(1,1,600,500);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container container = this.getContentPane();
container.setLayout(new GridLayout(3,2,1,2));
//container.add(input);
//button.addActionListener(new ButtonEventListener());
container.add(panelInput);
panelInput.add(inputA);
panelInput.add(inputB);
panelInput.add(inputC);
container.add(panel);
button.addActionListener(new ButtonEventListener());
panel.add(button);
}
class ButtonEventListener implements ActionListener {
public void actionPerformed(ActionEvent e) {
--------------------------------------------
}
}
public static void main(String[] args) {
JFrame app = new simple();
app.setVisible(true);
}
}