Update StolowkaZPM.java
This commit is contained in:
parent
f471e6eaf1
commit
2d9a141b32
@ -17,7 +17,6 @@ import java.sql.Connection;
|
|||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
|
|
||||||
|
|
||||||
public class StolowkaZPM {
|
public class StolowkaZPM {
|
||||||
|
|
||||||
private JFrame frmStolowkaZpm;
|
private JFrame frmStolowkaZpm;
|
||||||
@ -41,6 +40,8 @@ public class StolowkaZPM {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Connection conn=null;
|
Connection conn=null;
|
||||||
|
protected String imie;
|
||||||
|
protected String IDuzytkownika;
|
||||||
|
|
||||||
public StolowkaZPM() {
|
public StolowkaZPM() {
|
||||||
initialize1();
|
initialize1();
|
||||||
@ -109,6 +110,7 @@ public class StolowkaZPM {
|
|||||||
pinView.setToolTipText("PIN");
|
pinView.setToolTipText("PIN");
|
||||||
|
|
||||||
JButton btnZaloguj = new JButton("Zaloguj");
|
JButton btnZaloguj = new JButton("Zaloguj");
|
||||||
|
btnZaloguj.setBackground(Color.GREEN);
|
||||||
btnZaloguj.setFont(new Font("Tahoma", Font.PLAIN, 50));
|
btnZaloguj.setFont(new Font("Tahoma", Font.PLAIN, 50));
|
||||||
btnZaloguj.setBounds(724, 298, 213, 69);
|
btnZaloguj.setBounds(724, 298, 213, 69);
|
||||||
frmStolowkaZpm.getContentPane().add(btnZaloguj);
|
frmStolowkaZpm.getContentPane().add(btnZaloguj);
|
||||||
@ -126,7 +128,8 @@ public class StolowkaZPM {
|
|||||||
pst.setString(2, "false");
|
pst.setString(2, "false");
|
||||||
ResultSet rFID = pst.executeQuery();
|
ResultSet rFID = pst.executeQuery();
|
||||||
String Dalej = rFID.getString("PIN");
|
String Dalej = rFID.getString("PIN");
|
||||||
String imie = rFID.getString("User");
|
imie = rFID.getString("User");
|
||||||
|
IDuzytkownika = rFID.getString("IDusers");
|
||||||
int count = 0;
|
int count = 0;
|
||||||
while (rFID.next()) {
|
while (rFID.next()) {
|
||||||
count=count+1;
|
count=count+1;
|
||||||
@ -161,6 +164,7 @@ public class StolowkaZPM {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
btnZaloguj.addActionListener(new ActionListener() {
|
btnZaloguj.addActionListener(new ActionListener() {
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user