Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- /*
- * LoginPanel.java
- *
- * Created on 27.02.2011, 00:27:42
- */
- package view.panel;
- //import de.heizoelklick.*;
- import actionListener.LoginPanelActionListener;
- import javax.swing.JPasswordField;
- import javax.swing.JTextField;
- /**
- *
- * @author Ted
- */
- public class LoginPanel extends view.defaultLayout.JPanelLayout1 { //javax.swing.JPanel { //
- /** Creates new form LoginPanel */
- public LoginPanel() {
- super();
- this.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() {
- jtf_user = new javax.swing.JTextField();
- jbu_login = new javax.swing.JButton();
- jSeparator1 = new javax.swing.JSeparator();
- jLabel1 = new javax.swing.JLabel();
- jLabel2 = new javax.swing.JLabel();
- jLabel3 = new javax.swing.JLabel();
- jCheckBox1 = new javax.swing.JCheckBox();
- jLabel4 = new javax.swing.JLabel();
- jLabel5 = new javax.swing.JLabel();
- jSeparator3 = new javax.swing.JSeparator();
- jtf_password = new javax.swing.JPasswordField();
- setPreferredSize(new java.awt.Dimension(356, 300));
- jtf_user.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jtf_userActionPerformed(evt);
- }
- });
- jbu_login.setBackground(new java.awt.Color(32, 57, 61));
- jbu_login.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
- jbu_login.setForeground(getForeground());
- jbu_login.setText("Anmelden");
- jbu_login.setToolTipText("Klicken Sie hier um sich einzuloggen.");
- jbu_login.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jbu_loginActionPerformed(evt);
- }
- });
- jSeparator1.setBackground(new java.awt.Color(229, 219, 201));
- jSeparator1.setForeground(new java.awt.Color(240, 232, 221));
- jLabel1.setFont(new java.awt.Font("Verdana", 1, 12));
- jLabel1.setForeground(getForeground());
- jLabel1.setText("Am System anmelden");
- jLabel2.setFont(getFont());
- jLabel2.setForeground(getForeground());
- jLabel2.setText("Passwort");
- jLabel3.setFont(getFont());
- jLabel3.setForeground(getForeground());
- jLabel3.setText("Benutzername");
- jCheckBox1.setBackground(getBackground());
- jCheckBox1.setFont(getFont());
- jCheckBox1.setForeground(getForeground());
- jCheckBox1.setText("Benutzername merken");
- jLabel4.setFont(getFont());
- jLabel4.setForeground(getForeground());
- jLabel4.setText("Benutzername vergessen?");
- jLabel5.setFont(getFont());
- jLabel5.setForeground(getForeground());
- jLabel5.setText("Passwort vergessen?");
- jSeparator3.setBackground(new java.awt.Color(229, 219, 201));
- jSeparator3.setForeground(new java.awt.Color(240, 232, 221));
- jtf_password.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jtf_passwordActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(jLabel1)
- .addGroup(layout.createSequentialGroup()
- .addGap(12, 12, 12)
- .addComponent(jLabel3))
- .addGroup(layout.createSequentialGroup()
- .addGap(12, 12, 12)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jCheckBox1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(jbu_login, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jtf_user, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 301, Short.MAX_VALUE)
- .addComponent(jtf_password, javax.swing.GroupLayout.Alignment.LEADING)))
- .addGroup(layout.createSequentialGroup()
- .addGap(10, 10, 10)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel5)
- .addComponent(jLabel4)))
- .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 326, Short.MAX_VALUE)
- .addComponent(jSeparator1))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGap(17, 17, 17)
- .addComponent(jLabel1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel3)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jtf_user, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel2)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jtf_password, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jbu_login)
- .addComponent(jCheckBox1))
- .addGap(18, 18, 18)
- .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel4)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel5)
- .addContainerGap(46, Short.MAX_VALUE))
- );
- }// </editor-fold>
- private void jbu_loginActionPerformed(java.awt.event.ActionEvent evt) {
- LoginPanelActionListener listener = new LoginPanelActionListener();
- this.jbu_login.setName("jbu_login");
- this.jtf_user.setName("jtf_user");
- this.jtf_password.setName("jtf_password");
- listener.loginActionPerformed(evt);
- }
- private void jtf_userActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- }
- private void jtf_passwordActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- }
- public JTextField get_jtf_user() {
- return this.jtf_user;
- }
- public void set_jtf_user(JTextField jtf) {
- this.jtf_user = jtf;
- }
- public JPasswordField get_jtf_password() {
- return this.jtf_password;
- }
- public void set_jtf_password(JPasswordField jpf) {
- this.jtf_password = jpf;
- }
- // Variables declaration - do not modify
- private javax.swing.JCheckBox jCheckBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JLabel jLabel5;
- private javax.swing.JSeparator jSeparator1;
- private javax.swing.JSeparator jSeparator3;
- private javax.swing.JButton jbu_login;
- private javax.swing.JPasswordField jtf_password;
- private javax.swing.JTextField jtf_user;
- // End of variables declaration
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement