/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package GUI.touchscreen;
import Administracion.Mesero;
import GUI.VentanaMesero;
import SistemaDeKioscos.ServicioDeNotificacion;
import java.awt.Dimension;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.SystemTray;
import java.awt.Toolkit;
import javax.swing.JOptionPane;
import org.jvnet.substance.SubstanceLookAndFeel;
import org.jvnet.substance.api.SubstanceConstants.ImageWatermarkKind;
import org.jvnet.substance.api.SubstanceSkin;
import org.jvnet.substance.skin.CremeCoffeeSkin;
import org.jvnet.substance.watermark.SubstanceImageWatermark;
/**
*
* @author Administrador
*/
public class VentanaLoginTouchScreen extends javax.swing.JFrame {
int x,y;
private VentanaMesero comandas;
Mesero m = new Mesero();
String pass = "";
/**
* Creates new form ventanaLogin
*/
public VentanaLoginTouchScreen() {
initComponents();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setSize(screenSize);
// setExtendedState(MAXIMIZED_BOTH);
this.comandas = new VentanaMesero(this);
//mandar manseja de bienvenida
ServicioDeNotificacion.bienvenida();
}
/**
* 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() {
java.awt.GridBagConstraints gridBagConstraints;
pnlBarraDeTitulo = new javax.swing.JPanel();
pnlBotones = new javax.swing.JPanel();
btnMinimize = new javax.swing.JButton();
btnExit = new javax.swing.JButton();
lblTituloFrame = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
panelcopyright = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(90, 20), new java.awt.Dimension(32767, 0));
jButton1 = new javax.swing.JButton();
jPanel1 = new javax.swing.JPanel();
btnBorrar = new javax.swing.JButton();
btnEntrar = new javax.swing.JButton();
btn3 = new javax.swing.JButton();
btn0 = new javax.swing.JButton();
btn7 = new javax.swing.JButton();
btn2 = new javax.swing.JButton();
btn5 = new javax.swing.JButton();
btn4 = new javax.swing.JButton();
btn9 = new javax.swing.JButton();
btn8 = new javax.swing.JButton();
btn1 = new javax.swing.JButton();
btn6 = new javax.swing.JButton();
filler6 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0));
filler8 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0));
filler10 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0));
filler13 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0));
filler16 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0));
filler18 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0));
filler19 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0));
filler20 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0));
filler21 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0));
filler22 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0));
pantalla = new javax.swing.JLabel();
filler5 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767));
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Login");
setUndecorated(true);
pnlBarraDeTitulo.setBackground(new java.awt.Color(0, 0, 0));
pnlBarraDeTitulo.setFocusable(false);
pnlBarraDeTitulo.addMouseListener(new java.awt.event.MouseAdapter() {
public void mousePressed(java.awt.event.MouseEvent evt) {
pnlBarraDeTituloMousePressed(evt);
}
});
pnlBarraDeTitulo.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseDragged(java.awt.event.MouseEvent evt) {
pnlBarraDeTituloMouseDragged(evt);
}
});
pnlBarraDeTitulo.setLayout(new java.awt.BorderLayout());
pnlBotones.setBackground(new java.awt.Color(0, 0, 0));
pnlBotones.setFocusable(false);
btnMinimize.setText("-");
btnMinimize.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnMinimizeActionPerformed(evt);
}
});
pnlBotones.add(btnMinimize);
btnExit.setText("x");
btnExit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnExitActionPerformed(evt);
}
});
pnlBotones.add(btnExit);
pnlBarraDeTitulo.add(pnlBotones, java.awt.BorderLayout.EAST);
lblTituloFrame.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
lblTituloFrame.setText(" Iniciar Sesión");
lblTituloFrame.setFocusable(false);
pnlBarraDeTitulo.add(lblTituloFrame, java.awt.BorderLayout.WEST);
jPanel2.setBackground(new java.awt.Color(0, 0, 0));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 151, Short.MAX_VALUE)
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 34, Short.MAX_VALUE)
);
pnlBarraDeTitulo.add(jPanel2, java.awt.BorderLayout.CENTER);
getContentPane().add(pnlBarraDeTitulo, java.awt.BorderLayout.PAGE_START);
jLabel1.setText("(C) Nextia 2014");
panelcopyright.add(jLabel1);
panelcopyright.add(filler1);
jButton1.setText("Acerca De...");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
panelcopyright.add(jButton1);
getContentPane().add(panelcopyright, java.awt.BorderLayout.SOUTH);
jPanel1.setLayout(new java.awt.GridBagLayout());
btnBorrar.setText("Borrar");
btnBorrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnBorrarActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 7;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btnBorrar, gridBagConstraints);
btnEntrar.setText("Entrar");
btnEntrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnEntrarActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 2;
gridBagConstraints.gridy = 6;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btnEntrar, gridBagConstraints);
btn3.setText("3");
btn3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn3ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 3;
gridBagConstraints.gridy = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btn3, gridBagConstraints);
btn0.setText("0");
btn0.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn0ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btn0, gridBagConstraints);
btn7.setText("7");
btn7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn7ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btn7, gridBagConstraints);
btn2.setText("2");
btn2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn2ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 2;
gridBagConstraints.gridy = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btn2, gridBagConstraints);
btn5.setText("5");
btn5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn5ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 2;
gridBagConstraints.gridy = 3;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btn5, gridBagConstraints);
btn4.setText("4");
btn4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn4ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 3;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btn4, gridBagConstraints);
btn9.setText("9");
btn9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn9ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 3;
gridBagConstraints.gridy = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btn9, gridBagConstraints);
btn8.setText("8");
btn8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn8ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 2;
gridBagConstraints.gridy = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btn8, gridBagConstraints);
btn1.setText("1");
btn1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn1ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btn1, gridBagConstraints);
btn6.setText("6");
btn6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn6ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 3;
gridBagConstraints.gridy = 3;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(btn6, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 6;
gridBagConstraints.ipadx = 40;
gridBagConstraints.ipady = 30;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(20, 30, 0, 0);
jPanel1.add(filler6, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 1;
gridBagConstraints.ipadx = 40;
gridBagConstraints.ipady = 30;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(20, 30, 0, 0);
jPanel1.add(filler8, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 2;
gridBagConstraints.ipadx = 40;
gridBagConstraints.ipady = 30;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(30, 10, 0, 0);
jPanel1.add(filler10, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 3;
gridBagConstraints.ipadx = 40;
gridBagConstraints.ipady = 30;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(20, 30, 0, 0);
jPanel1.add(filler13, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 4;
gridBagConstraints.ipadx = 40;
gridBagConstraints.ipady = 30;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(20, 30, 0, 0);
jPanel1.add(filler16, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 1;
gridBagConstraints.ipadx = 40;
gridBagConstraints.ipady = 30;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(20, 30, 0, 0);
jPanel1.add(filler18, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 2;
gridBagConstraints.ipadx = 40;
gridBagConstraints.ipady = 30;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(20, 30, 0, 0);
jPanel1.add(filler19, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 3;
gridBagConstraints.ipadx = 40;
gridBagConstraints.ipady = 30;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(20, 30, 0, 0);
jPanel1.add(filler20, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 4;
gridBagConstraints.ipadx = 40;
gridBagConstraints.ipady = 30;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(20, 30, 0, 0);
jPanel1.add(filler21, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 6;
gridBagConstraints.ipadx = 40;
gridBagConstraints.ipady = 30;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(20, 30, 0, 0);
jPanel1.add(filler22, gridBagConstraints);
pantalla.setBackground(new java.awt.Color(255, 51, 51));
pantalla.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
pantalla.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow"));
pantalla.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
pantalla.setBorder(javax.swing.BorderFactory.createMatteBorder(2, 2, 2, 2, new java.awt.Color(0, 0, 0)));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 1;
gridBagConstraints.gridwidth = 3;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(pantalla, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
jPanel1.add(filler5, gridBagConstraints);
getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
pack();
}// </editor-fold>//GEN-END:initComponents
private void btnEntrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEntrarActionPerformed
//TODO buscar en usuarios y regresar el # de empleado
//TODO asignar los datos obtenidos a un objeto mesero
comandas.setMesero(m);
pass = "";
pantalla.setText(pass);
this.setVisible(false);
comandas.setVisible(true);
comandas.correTiempo();
}//GEN-LAST:event_btnEntrarActionPerformed
private void btn0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn0ActionPerformed
pass += "0";
pantalla.setText(pass);
}//GEN-LAST:event_btn0ActionPerformed
private void btn1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn1ActionPerformed
pass += "1";
pantalla.setText(pass);
}//GEN-LAST:event_btn1ActionPerformed
private void btn2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn2ActionPerformed
pass += "2";
pantalla.setText(pass);
}//GEN-LAST:event_btn2ActionPerformed
private void btn3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn3ActionPerformed
pass += "3";
pantalla.setText(pass);
}//GEN-LAST:event_btn3ActionPerformed
private void btn4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn4ActionPerformed
pass += "4";
pantalla.setText(pass);
}//GEN-LAST:event_btn4ActionPerformed
private void btn5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn5ActionPerformed
pass += "5";
pantalla.setText(pass);
}//GEN-LAST:event_btn5ActionPerformed
private void btn6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn6ActionPerformed
pass += "6";
pantalla.setText(pass);
}//GEN-LAST:event_btn6ActionPerformed
private void btn7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn7ActionPerformed
pass += "7";
pantalla.setText(pass);
}//GEN-LAST:event_btn7ActionPerformed
private void btn8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn8ActionPerformed
pass += "8";
pantalla.setText(pass);
}//GEN-LAST:event_btn8ActionPerformed
private void btn9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn9ActionPerformed
pass += "9";
pantalla.setText(pass);
}//GEN-LAST:event_btn9ActionPerformed
private void btnBorrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBorrarActionPerformed
pass = "";
pantalla.setText(pass);
}//GEN-LAST:event_btnBorrarActionPerformed
private void btnMinimizeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMinimizeActionPerformed
setExtendedState(ICONIFIED);
//setVisible(false);
}//GEN-LAST:event_btnMinimizeActionPerformed
private void btnExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExitActionPerformed
System.exit(0);
}//GEN-LAST:event_btnExitActionPerformed
private void pnlBarraDeTituloMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pnlBarraDeTituloMousePressed
x = evt.getX();
y = evt.getY();
}//GEN-LAST:event_pnlBarraDeTituloMousePressed
private void pnlBarraDeTituloMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pnlBarraDeTituloMouseDragged
Point point = MouseInfo.getPointerInfo().getLocation();
setLocation(point.x - x, point.y - y);
}//GEN-LAST:event_pnlBarraDeTituloMouseDragged
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO hacer un aceca de para poner ar atribución por los iconos
JOptionPane.showConfirmDialog(this, "<html>Este sistema ha sido desarrollado por:<ul><li>Ruslan López</li><li>Mao Rivera</li></ul><br>Con iconos de: http://www.aha-soft.com/, cutberto.ru, Mischa McLachlan</html>", "Acerca de...",JOptionPane.OK_CANCEL_OPTION);
//,
}//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(VentanaLoginTouchScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(VentanaLoginTouchScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(VentanaLoginTouchScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(VentanaLoginTouchScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
//try {
//LipstikLookAndFeel TemaVisual = new com.lipstikLF.LipstikLookAndFeel();
//LipstikLookAndFeel.setMyCurrentTheme(new com.lipstikLF.theme.DefaultTheme());
//设置水印
// UIManager.setLookAndFeel(new SubstanceOfficeBlue2007LookAndFeel());
//SubstanceLookAndFeel TemaVisual = new SubstanceLookAndFeel(skin) {};
//SubstanceLookAndFeel.setSkin(skin);
//SubstanceLookAndFeel.setCurrentWatermark ( new SubstanceBinaryWatermark ()) ;
// UIManager.setLookAndFeel(TemaVisual);
// } catch (Exception e) {
// e.printStackTrace();
// }
if (!SystemTray.isSupported()) {
System.out.println("SystemTray is not supported");
return;
}
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
new VentanaLoginTouchScreen().setVisible(true);
// try {
SubstanceImageWatermark watermark = new SubstanceImageWatermark("GUI/res/ciaobellawm.jpg");
//SubstanceCrosshatchWatermark watermark = new SubstanceCrosshatchWatermark();
watermark.setKind(ImageWatermarkKind.APP_TILE);
watermark.setOpacity(0.8f);// 设置水印透明度
SubstanceSkin skin = new CremeCoffeeSkin()
.withWatermark(watermark); // 初始化有水印的皮肤
SubstanceLookAndFeel.setSkin(skin); // 设置皮肤
// } catch (FileNotFoundException ex) {
// Logger.getLogger(ventanaLogin.class.getName()).log(Level.SEVERE, null, ex);
// }
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton btn0;
private javax.swing.JButton btn1;
private javax.swing.JButton btn2;
private javax.swing.JButton btn3;
private javax.swing.JButton btn4;
private javax.swing.JButton btn5;
private javax.swing.JButton btn6;
private javax.swing.JButton btn7;
private javax.swing.JButton btn8;
private javax.swing.JButton btn9;
private javax.swing.JButton btnBorrar;
private javax.swing.JButton btnEntrar;
private javax.swing.JButton btnExit;
private javax.swing.JButton btnMinimize;
private javax.swing.Box.Filler filler1;
private javax.swing.Box.Filler filler10;
private javax.swing.Box.Filler filler13;
private javax.swing.Box.Filler filler16;
private javax.swing.Box.Filler filler18;
private javax.swing.Box.Filler filler19;
private javax.swing.Box.Filler filler20;
private javax.swing.Box.Filler filler21;
private javax.swing.Box.Filler filler22;
private javax.swing.Box.Filler filler5;
private javax.swing.Box.Filler filler6;
private javax.swing.Box.Filler filler8;
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JLabel lblTituloFrame;
private javax.swing.JPanel panelcopyright;
private javax.swing.JLabel pantalla;
private javax.swing.JPanel pnlBarraDeTitulo;
private javax.swing.JPanel pnlBotones;
// End of variables declaration//GEN-END:variables
}