Update StolowkaZPM.java

This commit is contained in:
s441433 2019-01-11 06:07:53 +01:00
parent e044ca1603
commit 1af2581a37

View File

@ -16,6 +16,7 @@ import javax.swing.SwingConstants;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
import javax.swing.ImageIcon;
public class StolowkaZPM { public class StolowkaZPM {
@ -76,6 +77,11 @@ public class StolowkaZPM {
int ysize = (int) tk.getScreenSize().getHeight(); int ysize = (int) tk.getScreenSize().getHeight();
frmStolowkaZpm.setSize(xsize, ysize); frmStolowkaZpm.setSize(xsize, ysize);
JLabel lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel_1.setIcon(new ImageIcon("C:\\myGo\\icon.png"));
frmStolowkaZpm.getContentPane().add(lblNewLabel_1);
lblNewLabel = new JLabel("\"Sto\u0142\u00F3wka ZPM\""); lblNewLabel = new JLabel("\"Sto\u0142\u00F3wka ZPM\"");
lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 70)); lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 70));
@ -97,12 +103,12 @@ public class StolowkaZPM {
podajPINlabel.setHorizontalAlignment(SwingConstants.CENTER); podajPINlabel.setHorizontalAlignment(SwingConstants.CENTER);
frmStolowkaZpm.getContentPane().add(podajPINlabel); frmStolowkaZpm.getContentPane().add(podajPINlabel);
podajPINlabel.setFont(new Font("Tahoma", Font.PLAIN, 40)); podajPINlabel.setFont(new Font("Tahoma", Font.PLAIN, 40));
JPasswordField pinView = new JPasswordField(); JPasswordField pinView = new JPasswordField();
pinView.setHorizontalAlignment(SwingConstants.CENTER); pinView.setHorizontalAlignment(SwingConstants.CENTER);
frmStolowkaZpm.getContentPane().add(pinView); frmStolowkaZpm.getContentPane().add(pinView);
pinView.setFont(new Font("Tahoma", Font.PLAIN, 50)); pinView.setFont(new Font("Tahoma", Font.PLAIN, 50));
pinView.setToolTipText("PIN"); pinView.setToolTipText("PIN");
JButton btnZaloguj = new JButton("Zaloguj"); JButton btnZaloguj = new JButton("Zaloguj");
btnZaloguj.setBackground(Color.GREEN); btnZaloguj.setBackground(Color.GREEN);
@ -110,6 +116,9 @@ public class StolowkaZPM {
btnZaloguj.setBounds(724, 298, 213, 69); btnZaloguj.setBounds(724, 298, 213, 69);
frmStolowkaZpm.getContentPane().add(btnZaloguj); frmStolowkaZpm.getContentPane().add(btnZaloguj);
JLabel lblNewLabel_2 = new JLabel("");
frmStolowkaZpm.getContentPane().add(lblNewLabel_2);
rfidView.addActionListener(new ActionListener() { rfidView.addActionListener(new ActionListener() {
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {