Java:
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Color;
import javax.swing.JLayeredPane;
import java.awt.Button;
import java.awt.Label;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class Display extends JPanel {
private JTextField textField;
private JTextField textField_1;
private JTextField textField_2;
private JTextField textField_3;
public static void main(String[] args) {
Display gui = new Display();
gui.setVisible(true);
}
/**
* Create the panel.
*/
public Display() {
setLayout(null);
this.setVisible(true);
JLabel lblVillageOrganizer = new JLabel("Village organizer");
lblVillageOrganizer.setForeground(Color.BLUE);
lblVillageOrganizer.setBounds(186, 11, 91, 14);
add(lblVillageOrganizer);
JLabel lblNewInhabitent = new JLabel("New inhabitent");
lblNewInhabitent.setBounds(24, 30, 72, 14);
add(lblNewInhabitent);
JLabel lblNewLabel = new JLabel("New club");
lblNewLabel.setBounds(202, 30, 52, 14);
add(lblNewLabel);
JLabel lblNewOrganisation = new JLabel("New organisation");
lblNewOrganisation.setBounds(332, 30, 91, 14);
add(lblNewOrganisation);
textField = new JTextField();
textField.setBounds(10, 55, 123, 20);
add(textField);
textField.setColumns(10);
textField_1 = new JTextField();
textField_1.setBounds(143, 55, 163, 20);
add(textField_1);
textField_1.setColumns(10);
textField_2 = new JTextField();
textField_2.setBounds(316, 55, 119, 20);
add(textField_2);
textField_2.setColumns(10);
JButton btnOk = new JButton("OK");
btnOk.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
btnOk.setText("Accepted");
}
});
btnOk.setBounds(24, 86, 89, 23);
add(btnOk);
JButton btnOk_1 = new JButton("O.K.");
btnOk_1.setBounds(186, 86, 89, 23);
add(btnOk_1);
JButton btnOk_2 = new JButton("O.K.");
btnOk_2.setBounds(332, 86, 89, 23);
add(btnOk_2);
JLabel lblSearchInhabitent = new JLabel("Search : ");
lblSearchInhabitent.setBounds(10, 183, 86, 14);
add(lblSearchInhabitent);
textField_3 = new JTextField();
textField_3.setBounds(260, 180, 163, 20);
add(textField_3);
textField_3.setColumns(10);
JLabel lblName = new JLabel("Name:");
lblName.setBounds(10, 288, 46, 14);
add(lblName);
JLabel lblAdress = new JLabel("Adress");
lblAdress.setBounds(10, 313, 46, 14);
add(lblAdress);
JLabel label_1 = new JLabel("");
label_1.setBounds(10, 240, 46, 14);
add(label_1);
JLabel lblTorka = new JLabel("Torka");
lblTorka.setBounds(143, 288, 163, 14);
add(lblTorka);
JLabel lblHaindlingerWeg = new JLabel("Haindlinger Weg 35");
lblHaindlingerWeg.setBounds(143, 313, 163, 14);
add(lblHaindlingerWeg);
JButton btnInhabitent = new JButton("Inhabitent");
btnInhabitent.setBounds(143, 145, 89, 23);
add(btnInhabitent);
JButton btnClub = new JButton("Club");
btnClub.setBounds(143, 179, 89, 23);
add(btnClub);
Button button = new Button("Organisation");
button.setBounds(143, 218, 89, 22);
add(button);
Label label_2 = new Label("Type: ");
label_2.setBounds(10, 260, 62, 22);
add(label_2);
JLabel lblInhabitent = new JLabel("Inhabitent");
lblInhabitent.setBounds(143, 260, 89, 14);
add(lblInhabitent);
}
}