Doç. Dr. GÜRAY SONUGÜR

Doç. Dr. Güray SONUGÜR – Öğrenci Bilgi Paylaşım Platformu

Mayıs, 2014

2. soru ve yanıtı

import java.awt.EventQueue; import javax.swing.ComboBoxModel; import javax.swing.DefaultComboBoxModel; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JRadioButton; import javax.swing.JButton; import javax.swing.JTextField; import javax.swing.JComboBox; import javax.swing.JPanel; import javax.swing.UIManager; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.ButtonGroup; import java.awt.Color; import java.awt.Font; import javax.swing.event.ChangeListener; import javax.swing.event.ChangeEvent; public class UrunSatis { private JFrame frmrnSat; private JTextField txtUrunAdi; private JTextField txtUrunFiyati; private JTextField txtUrun; private JTextField txtToplam; […]

1.soru ve yanıtı

  import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JRadioButton; import javax.swing.ButtonGroup; import javax.swing.JButton; import javax.swing.SwingConstants; import javax.swing.plaf.basic.BasicBorders.RadioButtonBorder; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.Color; public class IsciUcretleri { private JFrame frame; private JTextField txtSaatUcreti; private JTextField txtHafta; private JTextField txtFazlaMesai; private final ButtonGroup buttonGroup = new ButtonGroup(); private JTextField txtToplamUcret; private JTextField txtVergi; private […]

Dosya Okuma

              Okunan dosya örneği   import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JLabel; import java.awt.Color; import javax.swing.JTextField; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; public class DosyaOku { private JFrame frame; private JTextField txtDosyaAdi; private JTextField txtIcerik; private JTextField txtAdSoyad; private JTextField […]

Sayı Tahmin Oyunu

            import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import java.awt.Color; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class SayiTahminOyunu { private JFrame frmSayTahminOyunu; private JTextField txtSayi; private JTextField txtTahmin; private JTextField txtSayac; private JTextField txtMesaj; public int sayac = 0; /** * Launch the application. */ public static void […]

İlk Uygulama (Devamı)

                    import java.awt.EventQueue; import java.awt.TextArea; import javax.swing.ComboBoxModel; import javax.swing.DefaultComboBoxModel; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JTextField; import java.awt.Color; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JTextArea; import java.awt.Font; import javax.swing.JComboBox; import javax.swing.JCheckBox; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.event.ChangeListener; import javax.swing.event.ChangeEvent; import javax.swing.JRadioButton; import javax.swing.JPanel; import […]

Swing kullanarak dosyaya yazma

                  import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JLayeredPane; import javax.swing.JTable; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.awt.Color; import javax.swing.SwingConstants; public class Dosya_Yaz {   private JFrame frame; private JTextField txtAdSoyad; private JTextField txtNumara; […]

İlk Uygulama

import java.awt.EventQueue; import javax.swing.JFrame; import java.awt.Font; import javax.swing.JLabel; import java.awt.Color;   import javax.swing.JOptionPane; import javax.swing.SwingConstants; import javax.swing.JTextField; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JTextArea; public class ilkUygulama1 {   private JFrame frmIlkUygulama; private JLabel lblAd; private JLabel lblNumara; private JLabel lblBolum; private JTextField txtAd; private JTextField txtNumara; private JTextField txtBolum; private JButton btnYaz; private […]