/*
* FormLogIn.java
*
* Created on 12 Maret 2008, 19:26
*/
package sample;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
/**
*
* @author usu
*/
public class FormLogIn extends javax.swing.JFrame {
/** Creates new form FormLogIn */
public FormLogIn() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
panelEfect = new pelajaran3.PanelEfect();
label1 = new sample.Label();
textField1 = new sample.TextField();
password1 = new sample.Password();
button1 = new sample.Button();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Form Log In");
label1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
label1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sample/myofficelogo.png"))); // NOI18N
textField1.setText("USERNAME");
password1.setText("PASSWORD");
button1.setText("LOGIN");
javax.swing.GroupLayout panelEfectLayout = new javax.swing.GroupLayout(panelEfect);
panelEfect.setLayout(panelEfectLayout);
panelEfectLayout.setHorizontalGroup(
panelEfectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelEfectLayout.createSequentialGroup()
.addGap(185, 185, 185)
.addGroup(panelEfectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addComponent(label1, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
.addComponent(textField1, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
.addComponent(password1, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
.addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(186, 186, 186))
);
panelEfectLayout.setVerticalGroup(
panelEfectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelEfectLayout.createSequentialGroup()
.addGap(51, 51, 51)
.addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(textField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(password1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(44, Short.MAX_VALUE))
);
getContentPane().add(panelEfect, java.awt.BorderLayout.CENTER);
pack();
}// </editor-fold>
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException ex) {
Logger.getLogger(FormLogIn.class.getName()).log(Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
Logger.getLogger(FormLogIn.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
Logger.getLogger(FormLogIn.class.getName()).log(Level.SEVERE, null, ex);
} catch (UnsupportedLookAndFeelException ex) {
Logger.getLogger(FormLogIn.class.getName()).log(Level.SEVERE, null, ex);
}
new FormLogIn().setVisible(true);
}
});
}
// Variables declaration - do not modify
private sample.Button button1;
private sample.Label label1;
private pelajaran3.PanelEfect panelEfect;
private sample.Password password1;
private sample.TextField textField1;
// End of variables declaration
}
0 komentar:
Posting Komentar