NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

package dogancan;

import java.awt.Color;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JRadioButton;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

public class LayoutDemo extends JFrame {
JLabel label, label2, label3, label4, label5, label6, label7, label8;
JTextField textField, textField2;
JPasswordField password;
JCheckBox sec, sec2;
JRadioButton tik, tik2, tik3, tik4, tik5;
JTextArea textarea;
JComboBox combobox;
String[] dizi = { "Bİlgisayar Prog.", "BioMedikal", "Diğer" };
JButton button;


public LayoutDemo() {
this.setTitle("LayoutDemo");
this.setSize(310, 650);
this.setLayout(null);
BilesenleriEkle(this.getContentPane());
this.setVisible(true);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}

private void BilesenleriEkle(Container frame) {
// TODO Auto-generated method stub
JPanel panel = new JPanel();
frame.add(panel);
panel.setBounds(0, 0, 300, 640);
// panel.setBackground(Color.RED);

label = new JLabel("BİL203 DEĞERLENDİRME");
panel.add(label);
label.setBounds(30, 5, 150, 15);

label2 = new JLabel("Adınız:");
panel.add(label2);
panel.setLayout(null);
label2.setHorizontalAlignment(SwingConstants.RIGHT);
label2.setBounds(5, 25, 65, 15);

label3 = new JLabel("Soyadınız:");
panel.add(label3);
label3.setHorizontalAlignment(SwingConstants.RIGHT);
panel.setLayout(null);
label3.setBounds(5, 45, 65, 15);

label4 = new JLabel("Şifreniz:");
panel.add(label4);
label4.setHorizontalAlignment(SwingConstants.RIGHT);
panel.setLayout(null);
label4.setBounds(5, 65, 65, 15);

label5 = new JLabel("Cinsiyet:");
panel.add(label5);
label5.setHorizontalAlignment(SwingConstants.RIGHT);
panel.setLayout(null);
label5.setBounds(5, 85, 65, 15);

textField = new JTextField("");
panel.add(textField);
panel.setLayout(null);
textField.setBounds(80, 23, 100, 17);

textField2 = new JTextField("");
panel.add(textField2);
panel.setLayout(null);
textField2.setBounds(80, 43, 100, 17);

password = new JPasswordField("");
panel.add(password);
panel.setLayout(null);
password.setBounds(80, 63, 100, 17);

sec = new JCheckBox("E");
panel.add(sec);
panel.setLayout(null);
sec.setSelected(true);
sec.setBounds(80, 83, 35, 17);

sec2 = new JCheckBox("K");
panel.add(sec2);
panel.setLayout(null);
sec2.setBounds(120, 83, 35, 17);

label6 = new JLabel("BİL203 Dersini Nasıl Buldunuz?");
panel.add(label6);
label6.setBounds(5, 123, 180, 15);

ButtonGroup grup=new ButtonGroup();
JRadioButton btn1 = new JRadioButton("Muhteşem");
grup.add(btn1);
panel.add(btn1);
btn1.setBounds(5, 143, 100, 20);

ButtonGroup grup2=new ButtonGroup();
JRadioButton btn2 = new JRadioButton("İyi");
grup.add(btn2);
panel.add(btn2);
btn2.setBounds(5, 163, 100, 20);

ButtonGroup grup3=new ButtonGroup();
JRadioButton btn3 = new JRadioButton("Fena Değil");
grup.add(btn3);
panel.add(btn3);
btn3.setBounds(5, 183, 100, 20);

ButtonGroup grup4=new ButtonGroup();
JRadioButton btn4 = new JRadioButton("Berbat");
grup.add(btn4);
panel.add(btn4);
btn4.setBounds(5, 203, 100, 20);

ButtonGroup grup5=new ButtonGroup();
JRadioButton btn5 = new JRadioButton("Fikrim Yok");
grup.add(btn5);
panel.add(btn5);
btn5.setBounds(5, 223, 100, 20);

label7 = new JLabel("Görüşleriniz/Önerileriniz");
panel.add(label7);
label7.setBounds(5, 263, 150, 15);

textarea = new JTextArea("");
panel.add(textarea);
panel.setLayout(null);
textarea.setBounds(5, 283, 180, 150);

label8 = new JLabel("Bölümünüz:");
panel.add(label8);
label8.setHorizontalAlignment(SwingConstants.RIGHT);
panel.setLayout(null);
label8.setBounds(5, 450, 70, 15);

combobox = new JComboBox(dizi);

panel.setLayout(null);
combobox.setSelectedIndex(0);
combobox.setBounds(80, 450, 100, 20);
panel.add(combobox);

button = new JButton("TEMİZLE");
panel.add(button);
button.setLayout(null);
button.setBounds(80, 480, 100, 20);

//ButtonGroup grup=new ButtonGroup();
//JRadioButton btn1 = new JRadioButton("Deneme");
//grup.add(btn1);
//panel.add(btn1);
//btn1.setBounds(80, 500, 100, 20);

button.addActionListener(new ActionListener() {

@Override
public void actionPerformed(ActionEvent arg0) {
// TODO Auto-generated method stub
textField.setText(null);
textField2.setText(null);
password.setText(null);
textarea.setText(null);
}
});
}

public static void main(String[] args) {
// TODO Auto-generated method stub
new LayoutDemo();
}

}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.