MERHABA ARKADAŞLAR
Merhaba Arkadaşlar bu yayınımda sizlerle Hassa MYO Bilgisayar Programcılığı Bölümünde Sistem Analizi dersi Için hazırlamış olduğum bitirme projesini paylaşacağım.Proje anaokul otomasyonu ile başlıyor.
Projenin Uygulama ortamında Eclipse Temel programlama dili Apache Derby Veri Tabanı programı bulunmalıdır Için Erişim ettik kod yer almaktadır bölümü ettik Aşagıda görmekte Olduğunuz Kullanıcı Giriş bölümü.
Programın Ekran Görüntüleri:
Projenin Uygulama ortamında Eclipse Temel programlama dili Apache Derby Veri Tabanı programı bulunmalıdır Için Erişim ettik kod yer almaktadır bölümü ettik Aşagıda görmekte Olduğunuz Kullanıcı Giriş bölümü.
Programın Ekran Görüntüleri:
Kullanıcı Girişi
Kod Tasarımı:
Öncelikle GirisGui.java Bir sınıf açınız.sonra kodları yerleştiriniz.
Öncelikle GirisGui.java Bir sınıf açınız.sonra kodları yerleştiriniz.
Paket com.anasınıfotomasyonu.ui;
ithalat java.awt.BorderLayout;
ithalat java.awt.EventQueue;
ithalat
javax.swing.JFrame;
ithalat
javax.swing.border.EmptyBorder;
ithalat
java.awt.event.ActionEvent;
ithalat
java.awt.event.ActionListener;
ithalat
javax.swing.GroupLayout;
impor
javax.swing.GroupLayout.Alignment;
ithalat
javax.swing.JTextField;
ithalat
javax.swing.JButton;
ithalat
javax.swing.ImageIcon;
zayıf olmakla birlikte baskı ithalat
javax.swing.JLabel;
ithalat
javax.swing.JOptionPane;
ithalat
javax.swing.LayoutStyle.ComponentPlacement;
ithalat
java.awt.Color;
ithalat javax.swing.JPasswordField;
ithalat javax.swing.JEditorPane;
ithalat javax.swing.JTabbedPane;
ithalat javax.swing.JCheckBox;
ithalat javax.swing.JComboBox;
public class GirisGui JFrame {uzanır
Özel JPanel ContentPane;
Özel JTextField txtKullanc;
Özel JButton btnk;
Özel JPasswordField alanında şifrenizi;
özel JLabel lblNewLabel;
/ **
* Uygulamayı başlatın.
* /
public static void main (String [] args) {
EventQueue.invokeLater (yeni Runnable () {
public void run () {
try {
GirisGui çerçeve = new GirisGui ();
frame.setVisible (true);
} Catch (Exception e) {
e.printStackTrace ();
}
}
});
}
/ **
* Kare oluşturun.
* /
Kamu GirisGui () {
setTitle ( "anaokul Otomasyonu v.2.00");
setIconImage (. Toolkit.getDefaultToolkit () getImage ( "Resimler / anasınıfikon.png"));
setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
SetBounds (100, 100, 558, 447);
ContentPane = new JPanel ();
contentPane.setBackground (Color.PINK);
contentPane.setBorder (yeni EmptyBorder (5, 5, 5, 5));
setContentPane (ContentPane);
JButton btnGiri = new JButton ( "");
btnGiri.setToolTipText ( "HO \ u015E geld \ u0130N \ u0130Z");
btnGiri.setSelectedIcon (NULL);
btnGiri.setBackground (Color.BLACK);
btnGiri.setIcon (yeni ImageIcon ( "Resimler / Admin1.png"));
btnGiri.addActionListener (yeni ActionListener () {
@Override
public void actionPerformed (ActionEvent arg0) {
JOptionPane.showMessageDialog (null, "Hoşgeldiniz");
Yeni AnaPencereGui ();
}
});
JLabel lblKullanc = new JLabel ( "KULLANICI ADI:");
txtKullanc = new JTextField ();
txtKullanc.setColumns (10);
btnk = new JButton ( "");
btnk.setBackground (Color.BLACK);
btnk.setIcon (yeni ImageIcon ( "Resimler / cık1.png"));
alanında şifrenizi = new JPasswordField ();
JLabel lblifre_1 = new JLabel ( "\ u015E \ u0130FRE ::");
lblNewLabel = new JLabel ( "Yeni etiket");
lblNewLabel.setIcon (yeni ImageIcon ( "Resimler / girisresim.jpg"));
JComboBox Combobox = new JComboBox ();
JLabel lblEitim = new JLabel ( "E \ u011E \ u0130T \ u0130M YILI:");
GroupLayout gl_contentPane = new GroupLayout (ContentPane);
gl_contentPane.setHorizontalGroup (
gl_contentPane.createParallelGroup (Alignment.LEADING)
.addGroup (gl_contentPane.createSequentialGroup ()
.addComponent (lblNewLabel, GroupLayout.PREFERRED_SIZE, 522, Short.MAX_VALUE)
.addContainerGap ())
.addGroup (gl_contentPane.createSequentialGroup ()
.addGap (24)
.addGroup (gl_contentPane.createParallelGroup (Alignment.LEADING)
.addComponent (lblifre_1)
.addComponent (lblEitim, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE)
.addComponent (lblKullanc, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE))
.addGap (84)
.addGroup (gl_contentPane.createParallelGroup (Alignment.LEADING)
.addGroup (gl_contentPane.createSequentialGroup ()
.addGap (60),
.addComponent (btnGiri, GroupLayout.PREFERRED_SIZE, 56, GroupLayout.PREFERRED_SIZE)
.addPreferredGap (ComponentPlacement.RELATED, 42, Short.MAX_VALUE)
.addComponent (btnk, GroupLayout.PREFERRED_SIZE, 56, GroupLayout.PREFERRED_SIZE)
.addGap (93))
.addGroup (gl_contentPane.createSequentialGroup ()
.addGroup (gl_contentPane.createParallelGroup (Alignment.LEADING)
.addComponent (Combobox, 0, 246, Short.MAX_VALUE)
.addComponent (alanında şifrenizi, GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE)
.addComponent (txtKullanc, GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE))
.addGap (61))))
);
gl_contentPane.setVerticalGroup (
gl_contentPane.createParallelGroup (Alignment.TRAILING)
.addGroup (gl_contentPane.createSequentialGroup ()
.addGap (4)
.addComponent (lblNewLabel, GroupLayout.PREFERRED_SIZE, 125, GroupLayout.PREFERRED_SIZE)
.addGap (18)
.addGroup (gl_contentPane.createParallelGroup (Alignment.BASELINE)
.addComponent (lblKullanc, GroupLayout.PREFERRED_SIZE, 31 GroupLayout.PREFERRED_SIZE)
.addComponent (txtKullanc, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addPreferredGap (ComponentPlacement.RELATED)
.addGroup (gl_contentPane.createParallelGroup (Alignment.BASELINE)
.addComponent (alanında şifrenizi, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent (lblifre_1, GroupLayout.PREFERRED_SIZE, 40, GroupLayout.PREFERRED_SIZE))
.addGap (6)
.addGroup (gl_contentPane.createParallelGroup (Alignment.BASELINE)
.addComponent (ComboBox GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent (lblEitim))
.addGap (39)
.addGroup (gl_contentPane.createParallelGroup (Alignment.LEADING, false)
.addComponent (btnk, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent (btnGiri, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap (67, Short.MAX_VALUE))
);
contentPane.setLayout (gl_contentPane);
}
}