regenerated by the Form Editor.
*/
@SuppressWarnings(“unchecked”)
//
private void initComponents() {
PopupMenu1 = new javax.swing.JPopupMenu();
Sair = new javax.swing.JMenuItem();
Panel_Login = new javax.swing.JPanel();
Logo_Login = new javax.swing.JLabel();
Text_User = new javax.swing.JLabel();
TextLabel_RM = new javax.swing.JTextField();
Text_Senha = new javax.swing.JLabel();
PassLabel_Senha = new javax.swing.JPasswordField();
Button_Entrar = new javax.swing.JButton();
Button_Sair = new javax.swing.JButton();
Sair.setText(“Sair”);
Sair.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
SairActionPerformed(evt);
}
});
PopupMenu1.add(Sair);
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle(“CMGP V0.1 - Login”);
setModal(true);
Logo_Login.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Logo_Login.png"))); // NOI18N
Text_User.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/user_icon.png"))); // NOI18N
Text_User.setText(“RM”);
TextLabel_RM.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
TextLabel_RMKeyPressed(evt);
}
});
Text_Senha.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Password_icon.png"))); // NOI18N
Text_Senha.setText(“Senha”);
PassLabel_Senha.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
PassLabel_SenhaActionPerformed(evt);
}
});
PassLabel_Senha.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
PassLabel_SenhaKeyPressed(evt);
}
});
Button_Entrar.setText(“Entrar”);
Button_Entrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Button_EntrarActionPerformed(evt);
}
});
Button_Sair.setText(“Sair”);
Button_Sair.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Button_SairActionPerformed(evt);
}
});
javax.swing.GroupLayout Panel_LoginLayout = new javax.swing.GroupLayout(Panel_Login);
Panel_Login.setLayout(Panel_LoginLayout);
Panel_LoginLayout.setHorizontalGroup(
Panel_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(Panel_LoginLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(Panel_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(Panel_LoginLayout.createSequentialGroup()
.addComponent(Button_Sair, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(Button_Entrar, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(Panel_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(PassLabel_Senha, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)
.addComponent(Text_Senha)
.addComponent(Text_User)
.addComponent(TextLabel_RM)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(Panel_LoginLayout.createSequentialGroup()
.addContainerGap(119, Short.MAX_VALUE)
.addComponent(Logo_Login)
.addContainerGap(119, Short.MAX_VALUE))
);
Panel_LoginLayout.setVerticalGroup(
Panel_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(Panel_LoginLayout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(Logo_Login)
.addGap(47, 47, 47)
.addComponent(Text_User)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(TextLabel_RM, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(Text_Senha)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(PassLabel_Senha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(Panel_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Button_Entrar)
.addComponent(Button_Sair))
.addContainerGap(46, Short.MAX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Panel_Login, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Panel_Login, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
Panel_Login.getAccessibleContext().setAccessibleName("");
pack();
setLocationRelativeTo(null);
}//