Update StolowkaZPM.java

This commit is contained in:
s441433 2019-01-11 00:59:16 +01:00
parent f471e6eaf1
commit 2d9a141b32

View File

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