-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ac1407a
Showing
10 changed files
with
336 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>br.com.descompila</groupId> | ||
<artifactId>ProjetoLogin</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<maven.compiler.source>22</maven.compiler.source> | ||
<maven.compiler.target>22</maven.compiler.target> | ||
<exec.mainClass>br.com.descompila.projetologin.ProjetoLogin</exec.mainClass> | ||
</properties> | ||
</project> |
146 changes: 146 additions & 0 deletions
146
src/main/java/br/com/descompila/projetologin/ViewLogin.form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> | ||
<Properties> | ||
<Property name="defaultCloseOperation" type="int" value="3"/> | ||
</Properties> | ||
<SyntheticProperties> | ||
<SyntheticProperty name="formSizePolicy" type="int" value="1"/> | ||
<SyntheticProperty name="generateCenter" type="boolean" value="false"/> | ||
</SyntheticProperties> | ||
<AuxValues> | ||
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> | ||
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> | ||
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> | ||
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> | ||
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> | ||
</AuxValues> | ||
|
||
<Layout> | ||
<DimensionLayout dim="0"> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Group type="102" alignment="0" attributes="0"> | ||
<EmptySpace max="-2" attributes="0"/> | ||
<Component id="jPanel1" min="-2" max="-2" attributes="0"/> | ||
<EmptySpace pref="416" max="32767" attributes="0"/> | ||
</Group> | ||
</Group> | ||
</DimensionLayout> | ||
<DimensionLayout dim="1"> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Group type="102" alignment="0" attributes="0"> | ||
<Component id="jPanel1" min="-2" max="-2" attributes="0"/> | ||
<EmptySpace min="0" pref="312" max="32767" attributes="0"/> | ||
</Group> | ||
</Group> | ||
</DimensionLayout> | ||
</Layout> | ||
<SubComponents> | ||
<Container class="javax.swing.JPanel" name="jPanel1"> | ||
<Properties> | ||
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> | ||
<Color blue="ff" green="ff" red="ff" type="rgb"/> | ||
</Property> | ||
</Properties> | ||
|
||
<Layout> | ||
<DimensionLayout dim="0"> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Group type="102" alignment="0" attributes="0"> | ||
<EmptySpace min="-2" pref="72" max="-2" attributes="0"/> | ||
<Group type="103" groupAlignment="1" attributes="0"> | ||
<Component id="jButton1" min="-2" max="-2" attributes="0"/> | ||
<Group type="103" groupAlignment="0" max="-2" attributes="0"> | ||
<Component id="jLabel3" min="-2" max="-2" attributes="0"/> | ||
<Component id="jLabel2" min="-2" max="-2" attributes="0"/> | ||
<Component id="txtlogin" alignment="0" pref="306" max="32767" attributes="0"/> | ||
<Component id="txtsenha" alignment="0" max="32767" attributes="0"/> | ||
</Group> | ||
</Group> | ||
<EmptySpace pref="72" max="32767" attributes="0"/> | ||
</Group> | ||
</Group> | ||
</DimensionLayout> | ||
<DimensionLayout dim="1"> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Group type="102" alignment="0" attributes="0"> | ||
<EmptySpace min="-2" pref="175" max="-2" attributes="0"/> | ||
<Component id="jLabel2" min="-2" max="-2" attributes="0"/> | ||
<EmptySpace max="-2" attributes="0"/> | ||
<Component id="txtlogin" min="-2" max="-2" attributes="0"/> | ||
<EmptySpace type="unrelated" max="-2" attributes="0"/> | ||
<Component id="jLabel3" min="-2" max="-2" attributes="0"/> | ||
<EmptySpace type="unrelated" max="-2" attributes="0"/> | ||
<Component id="txtsenha" min="-2" max="-2" attributes="0"/> | ||
<EmptySpace type="separate" max="-2" attributes="0"/> | ||
<Component id="jButton1" min="-2" max="-2" attributes="0"/> | ||
<EmptySpace pref="144" max="32767" attributes="0"/> | ||
</Group> | ||
</Group> | ||
</DimensionLayout> | ||
</Layout> | ||
<SubComponents> | ||
<Component class="javax.swing.JLabel" name="jLabel2"> | ||
<Properties> | ||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> | ||
<Font name="Segoe UI" size="12" style="1"/> | ||
</Property> | ||
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> | ||
<Color blue="ff" green="8d" red="42" type="rgb"/> | ||
</Property> | ||
<Property name="text" type="java.lang.String" value="Login"/> | ||
</Properties> | ||
</Component> | ||
<Component class="javax.swing.JTextField" name="txtlogin"> | ||
<Properties> | ||
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> | ||
<Color blue="ff" green="8d" red="42" type="rgb"/> | ||
</Property> | ||
</Properties> | ||
</Component> | ||
<Component class="javax.swing.JLabel" name="jLabel3"> | ||
<Properties> | ||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> | ||
<Font name="Segoe UI" size="12" style="1"/> | ||
</Property> | ||
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> | ||
<Color blue="ff" green="8d" red="42" type="rgb"/> | ||
</Property> | ||
<Property name="text" type="java.lang.String" value="Senha"/> | ||
</Properties> | ||
</Component> | ||
<Component class="javax.swing.JPasswordField" name="txtsenha"> | ||
<Properties> | ||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> | ||
<Font name="Segoe UI" size="12" style="1"/> | ||
</Property> | ||
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> | ||
<Color blue="ff" green="8d" red="42" type="rgb"/> | ||
</Property> | ||
</Properties> | ||
</Component> | ||
<Component class="javax.swing.JButton" name="jButton1"> | ||
<Properties> | ||
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> | ||
<Color blue="f7" green="c2" red="a4" type="rgb"/> | ||
</Property> | ||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> | ||
<Font name="Segoe UI" size="14" style="1"/> | ||
</Property> | ||
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> | ||
<Color blue="ff" green="8d" red="42" type="rgb"/> | ||
</Property> | ||
<Property name="text" type="java.lang.String" value="Entrar"/> | ||
</Properties> | ||
<Events> | ||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/> | ||
</Events> | ||
</Component> | ||
</SubComponents> | ||
</Container> | ||
</SubComponents> | ||
</Form> |
172 changes: 172 additions & 0 deletions
172
src/main/java/br/com/descompila/projetologin/ViewLogin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
/* | ||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | ||
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template | ||
*/ | ||
package br.com.descompila.projetologin; | ||
|
||
import javax.swing.JOptionPane; | ||
|
||
/** | ||
* | ||
* @author mdnvi | ||
*/ | ||
public class ViewLogin extends javax.swing.JFrame { | ||
|
||
/** | ||
* Creates new form ViewLogin | ||
*/ | ||
public ViewLogin() { | ||
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">//GEN-BEGIN:initComponents | ||
private void initComponents() { | ||
|
||
jPanel1 = new javax.swing.JPanel(); | ||
jLabel2 = new javax.swing.JLabel(); | ||
txtlogin = new javax.swing.JTextField(); | ||
jLabel3 = new javax.swing.JLabel(); | ||
txtsenha = new javax.swing.JPasswordField(); | ||
jButton1 = new javax.swing.JButton(); | ||
|
||
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); | ||
|
||
jPanel1.setBackground(new java.awt.Color(255, 255, 255)); | ||
|
||
jLabel2.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N | ||
jLabel2.setForeground(new java.awt.Color(66, 141, 255)); | ||
jLabel2.setText("Login"); | ||
|
||
txtlogin.setForeground(new java.awt.Color(66, 141, 255)); | ||
|
||
jLabel3.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N | ||
jLabel3.setForeground(new java.awt.Color(66, 141, 255)); | ||
jLabel3.setText("Senha"); | ||
|
||
txtsenha.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N | ||
txtsenha.setForeground(new java.awt.Color(66, 141, 255)); | ||
|
||
jButton1.setBackground(new java.awt.Color(164, 194, 247)); | ||
jButton1.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N | ||
jButton1.setForeground(new java.awt.Color(66, 141, 255)); | ||
jButton1.setText("Entrar"); | ||
jButton1.addActionListener(new java.awt.event.ActionListener() { | ||
public void actionPerformed(java.awt.event.ActionEvent evt) { | ||
jButton1ActionPerformed(evt); | ||
} | ||
}); | ||
|
||
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); | ||
jPanel1.setLayout(jPanel1Layout); | ||
jPanel1Layout.setHorizontalGroup( | ||
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | ||
.addGroup(jPanel1Layout.createSequentialGroup() | ||
.addGap(72, 72, 72) | ||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) | ||
.addComponent(jButton1) | ||
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) | ||
.addComponent(jLabel3) | ||
.addComponent(jLabel2) | ||
.addComponent(txtlogin, javax.swing.GroupLayout.DEFAULT_SIZE, 306, Short.MAX_VALUE) | ||
.addComponent(txtsenha))) | ||
.addContainerGap(72, Short.MAX_VALUE)) | ||
); | ||
jPanel1Layout.setVerticalGroup( | ||
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | ||
.addGroup(jPanel1Layout.createSequentialGroup() | ||
.addGap(175, 175, 175) | ||
.addComponent(jLabel2) | ||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) | ||
.addComponent(txtlogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) | ||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) | ||
.addComponent(jLabel3) | ||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) | ||
.addComponent(txtsenha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) | ||
.addGap(18, 18, 18) | ||
.addComponent(jButton1) | ||
.addContainerGap(144, Short.MAX_VALUE)) | ||
); | ||
|
||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); | ||
getContentPane().setLayout(layout); | ||
layout.setHorizontalGroup( | ||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | ||
.addGroup(layout.createSequentialGroup() | ||
.addContainerGap() | ||
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) | ||
.addContainerGap(416, Short.MAX_VALUE)) | ||
); | ||
layout.setVerticalGroup( | ||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | ||
.addGroup(layout.createSequentialGroup() | ||
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) | ||
.addGap(0, 312, Short.MAX_VALUE)) | ||
); | ||
|
||
pack(); | ||
}// </editor-fold>//GEN-END:initComponents | ||
|
||
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed | ||
// TODO add your handling code here: | ||
|
||
if(txtlogin.getText().equals("usuario") && new String(txtsenha.getPassword()).equals("123")){ | ||
|
||
JOptionPane.showMessageDialog(null, "Logado"); | ||
|
||
}else { | ||
JOptionPane.showMessageDialog(null, "Usúario ou senha inválidos"); | ||
} | ||
|
||
|
||
}//GEN-LAST:event_jButton1ActionPerformed | ||
|
||
/** | ||
* @param args the command line arguments | ||
*/ | ||
public static void main(String args[]) { | ||
/* Set the Nimbus look and feel */ | ||
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> | ||
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. | ||
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html | ||
*/ | ||
try { | ||
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { | ||
if ("Nimbus".equals(info.getName())) { | ||
javax.swing.UIManager.setLookAndFeel(info.getClassName()); | ||
break; | ||
} | ||
} | ||
} catch (ClassNotFoundException ex) { | ||
java.util.logging.Logger.getLogger(ViewLogin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); | ||
} catch (InstantiationException ex) { | ||
java.util.logging.Logger.getLogger(ViewLogin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); | ||
} catch (IllegalAccessException ex) { | ||
java.util.logging.Logger.getLogger(ViewLogin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); | ||
} catch (javax.swing.UnsupportedLookAndFeelException ex) { | ||
java.util.logging.Logger.getLogger(ViewLogin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); | ||
} | ||
//</editor-fold> | ||
|
||
/* Create and display the form */ | ||
java.awt.EventQueue.invokeLater(new Runnable() { | ||
public void run() { | ||
new ViewLogin().setVisible(true); | ||
} | ||
}); | ||
} | ||
|
||
// Variables declaration - do not modify//GEN-BEGIN:variables | ||
private javax.swing.JButton jButton1; | ||
private javax.swing.JLabel jLabel2; | ||
private javax.swing.JLabel jLabel3; | ||
private javax.swing.JPanel jPanel1; | ||
private javax.swing.JTextField txtlogin; | ||
private javax.swing.JPasswordField txtsenha; | ||
// End of variables declaration//GEN-END:variables | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
br\com\descompila\projetologin\ViewLogin$1.class | ||
br\com\descompila\projetologin\ViewLogin.class | ||
br\com\descompila\projetologin\ViewLogin$2.class |
1 change: 1 addition & 0 deletions
1
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
C:\Users\mdnvi\OneDrive\Documentos\NetBeansProjects\ProjetoLogin\src\main\java\br\com\descompila\projetologin\ViewLogin.java |