Implementación interfaz táctil cocina - three-headed-monkey

hundredcarriageΛογισμικό & κατασκευή λογ/κού

3 Νοε 2013 (πριν από 3 χρόνια και 7 μήνες)

143 εμφανίσεις





Three Heade
d

Monkey





Sábado
,
29

de mayo

de 2010

Implementación
interfaz táctil cocina


Versión 1.0

Carlos Pla Pueyo

Manuel María Barroso González

Alejandro Rodríguez Aguilera

Implementación interfaz táctil cocina

2010


1



Contenido

Código del menú inicial

................................
................................
................................
.

2

Código de la ventana de almacén

................................
................................
...............

12

Código de la ventana de carta

................................
................................
....................

36

Código de la ventana de comandas

................................
................................
............

50

Código de la ventana de pedidos

................................
................................
................

62

Código de la ventana de platos

................................
................................
...................

75




























Implementación interfaz táctil cocina

2010


2








Código del menú inicial


/*


* To change this template, choose Tools | Templates


* and open the template in the editor.


*/


/*


* MenuCocina.java


*


* Created on 25
-
may
-
2010, 22:19:51


*/


package desktopapplication2;


/**


*


* @author PERSONAL


*/

public class MenuCocina extends javax.swing.JFrame {



/** Creates new form MenuCocina */


public MenuCocina() {

Implementación interfaz táctil cocina

2010


3




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();


jPanel2 = new javax.swing.JPanel();


jButton1 = new javax.swing.JButton();


jLabel1 = new javax.swing.JLabel();


jPanel5

= new javax.swing.JPanel();


jLabel4 = new javax.swing.JLabel();


jButton2 = new javax.swing.JButton();


jButton3 = new javax.swing.JButton();


jButton4 = new javax.swing.JButton();


jButton5 = new javax.swing.JButton();


jButton6 = new javax.swing.JButton();


jLabel2 = new javax.swing.JLabel();



setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE)
;

Implementación interfaz táctil cocina

2010


4




setFocusable(false);


setMinimumSize(new java.awt.Dimension(1920, 1080));


setName("Form"); // NOI18N



org.jdesktop.application.ResourceMap resourceMap =
org.jdesktop.application.Application.getInstance(desktopapplication2.DesktopApplicatio
n2.class).getCo
ntext().getResourceMap(MenuCocina.class);


jPanel1.setBackground(resourceMap.getColor("jPanel1.background")); // NOI18N


jPanel1.setMinimumSize(new java.awt.Dimension(0, 0));


jPanel1.setName("jPanel1"); // NOI18N


jPanel1.setPreferredSize(new java.awt.Dimension(1920, 1000));



jPanel2.setBackground(resourceMap.getColor("jPanel2.background")); // NOI18N


jPanel2.setMinimumSize(new java.awt.Dimension(0, 0));


jPanel2.setName("jPanel2"); //

NOI18N


jPanel2.setPreferredSize(new java.awt.Dimension(1920, 165));



jButton1.setIcon(resourceMap.getIcon("jButton1.icon")); // NOI18N


jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N


jButton1.setBorderPa
inted(false);


jButton1.setContentAreaFilled(false);


jButton1.setFocusPainted(false);


jButton1.setName("jButton1"); // NOI18N


jButton1.setPressedIcon(resourceMap.getIcon("jButton1.pressedIcon")); //
NOI18N



jLabel1.se
tIcon(resourceMap.getIcon("jLabel1.icon")); // NOI18N


jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N


jLabel1.setName("jLabel1"); // NOI18N

Implementación interfaz táctil cocina

2010


5





javax.swing.GroupLayout jPanel2Layout = new
javax.swing.GroupLayout(jPane
l2);


jPanel2.setLayout(jPanel2Layout);


jPanel2Layout.setHorizontalGroup(


jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel2Layout.createSequentialGroup()


.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)


.addComponent(jLabel1)


.addGap(1
8, 72, Short.MAX_VALUE)


.addComponent(jButton1)


.addContainerGap())


);


jPanel2Layout.setVerticalGroup(


jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.add
Group(jPanel2Layout.createSequentialGroup()


.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)


.addGroup(jPanel2Layout.createSequentialGroup()


.addContainerGap(
)


.addComponent(jButton1))


.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE,
143, Short.MAX_VALUE))


.addContainerGap())


);


Implementación interfaz táctil cocina

2010


6




jPanel5.setBackground(resourceMap.getColor(
"jPanel5.background")); // NOI18N


jPanel5.setForeground(resourceMap.getColor("jPanel5.foreground")); // NOI18N


jPanel5.setName("jPanel5"); // NOI18N


jPanel5.setPreferredSize(new java.awt.Dimension(1160, 60));



jLabel4.setFon
t(resourceMap.getFont("jLabel4.font")); // NOI18N


jLabel4.setForeground(resourceMap.getColor("jLabel4.foreground")); // NOI18N


jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);


jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N


jLabel4.setName("jLabel4"); // NOI18N



javax.swing.GroupLayout jPanel5Layout = new
javax.swing.GroupLayout(jPanel5);


jPanel5.setLayout(jPanel5Layout);


jPanel5Layout.setHorizontalGroup(


jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 1151,
Short.MAX_VALUE)


);


jPanel5Lay
out.setVerticalGroup(


jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel5Layout.createSequentialGroup()


.addContainerGap()



.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 26,
Short.MAX_VALUE)


.addContainerGap())


);


Implementación interfaz táctil cocina

2010


7




jButton2.setIcon(resourceMap.getIcon("jButton2.icon")); // NOI18N


jButton2.setText(resourceMap.getSt
ring("jButton2.text")); // NOI18N


jButton2.setContentAreaFilled(false);


jButton2.setFocusPainted(false);


jButton2.setName("jButton2"); // NOI18N


jButton2.setPressedIcon(resourceMap.getIcon("jButton2.pressedIcon")); //
NOI18N



jButton3.setIcon(resourceMap.getIcon("jButton3.icon")); // NOI18N


jButton3.setContentAreaFilled(false);


jButton3.setFocusPainted(false);


jButton3.setName("jButton3"); // NOI18N


jButton3.setPressedIcon(resourceMap.g
etIcon("jButton3.pressedIcon")); //
NOI18N



jButton4.setIcon(resourceMap.getIcon("jButton4.icon")); // NOI18N


jButton4.setContentAreaFilled(false);


jButton4.setFocusPainted(false);


jButton4.setName("jButton4"); // NOI18N


jButton4.setPressedIcon(resourceMap.getIcon("jButton4.pressedIcon")); //
NOI18N



jButton5.setIcon(resourceMap.getIcon("jButton5.icon")); // NOI18N


jButton5.setContentAreaFilled(false);


jButton5.setFocusPainted(false);



jButton5.setName("jButton5"); // NOI18N


jButton5.setPressedIcon(resourceMap.getIcon("jButton5.pressedIcon")); //
NOI18N



jButton6.setIcon(resourceMap.getIcon("jButton6.icon")); // NOI18N

Implementación interfaz táctil cocina

2010


8




jButton6.setContentAreaFilled(false);



jButton6.setFocusPainted(false);


jButton6.setName("jButton6"); // NOI18N


jButton6.setPressedIcon(resourceMap.getIcon("jButton6.pressedIcon")); //
NOI18N



jLabel2.setIcon(resourceMap.getIcon("jLabel2.icon")); // NOI18N


jLa
bel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N


jLabel2.setName("jLabel2"); // NOI18N



javax.swing.GroupLayout jPanel1Layout = new
javax.swing.GroupLayout(jPanel1);


jPanel1.setLayout(jPanel1Layout);


jPanel1Lay
out.setHorizontalGroup(


jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 1151,
Short.MAX_VALUE)


.addComponent(jPanel5, javax.swing.
GroupLayout.DEFAULT_SIZE, 1151,
Short.MAX_VALUE)


.addGroup(jPanel1Layout.createSequentialGroup()


.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)


.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)


.addGroup(jPanel1Layout.createSequentialGroup()


.addComponent(jButton5)


.addPreferred
Gap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 367,
Short.MAX_VALUE)


.addComponent(jButton4))

Implementación interfaz táctil cocina

2010


9




.addGroup(jPanel1Layout.createSequentialGroup()


.addComponent(jButton2)



.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 367,
Short.MAX_VALUE)


.addComponent(jButton3)))


.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))


.ad
dGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()


.addContainerGap(386, Short.MAX_VALUE)


.addComponent(jButton6)


.addContainerGap(383, Short.MAX_VALUE))


.add
Group(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()


.addContainerGap(163, Short.MAX_VALUE)


.addComponent(jLabel2)


.addContainerGap(150, Short.MAX_VALUE))


);



jPanel1Layout.setVerticalGroup(


jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(jPanel1Layout.createSequentialGroup()


.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_S
IZE,
146, javax.swing.GroupLayout.PREFERRED_SIZE)


.addGap(18, 18, 18)


.addComponent(jLabel2)


.addGap(68, 68, 68)


.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.L
E
ADING)


.addComponent(jButton2)

Implementación interfaz táctil cocina

2010


10




.addComponent(jButton3))


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)


.addComponent(jButton6)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)


.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Grou
pLayout.Alignment.TR
AILING)


.addComponent(jButton5)


.addComponent(jButton4))


.addGap(109, 109, 109)


.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 48,
javax.swing.Group
Layout.PREFERRED_SIZE))


);



getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);



pack();


}// </editor
-
fold>//GEN
-
END:initComponents



/**


* @param args the command line arguments


*/


public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() {


public void run() {


new MenuCocina().setVisible(true);


}

Implementación interfaz táctil cocina

2010


11




});


}



// Variables declaration
-

do not
modify//GEN
-
BEGIN:variables


private javax.swing.JButton jButton1;


private javax.swing.JButton jButton2;


private javax.swing.JButton jButton3;


private javax.swing.JButton jButton4;


private javax.swing.JButton jButton5;


private javax.swing.JButton jButton6;


private javax.swing.JLabel jLabel1;


private javax.swing.JLabel jLabel2;


private javax.swing.JLabel jLabel4;


private javax.swing.JPanel jPanel1;


private javax.swing.JPanel jPanel2;


private ja
vax.swing.JPanel jPanel5;


// End of variables declaration//GEN
-
END:variables


}










Implementación interfaz táctil cocina

2010


12







Código de la ventana de almacén


/*


* To change this template, choose Tools | Templates


* and open the template in the editor.


*/


/*


* MenuCocina.java


*


* Created on 25
-
may
-
2010, 22:19:51


*/


package desktopapplication2;


/**


*


* @author PERSONAL


*/

public class Almacen extends javax.swing.JFrame {



/** Creates new form MenuCocina */


public Almacen() {


initComponents();

Implementación interfaz táctil cocina

2010


13




}



/**
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();


jPanel2 = new javax.swing.JPanel();


jButton1 = new javax.swing.JButton();


jLabel1 = new javax.swing.JLabel();


jPanel5 = new javax.swing.JPanel();


jLabel4 = new javax.swing.JLabel();


jTabbedPane1 = new javax.swing.JTabbedPane();


jPanel3 = new javax.swing.JPanel();


jScrollPane1 = ne
w javax.swing.JScrollPane();


jTable1 = new javax.swing.JTable();


jPanel4 = new javax.swing.JPanel();


jScrollPane2 = new javax.swing.JScrollPane();


jTable2 = new javax.swing.JTable();


jPanel6 = new javax.swing.JPanel(
);


jButton2 = new javax.swing.JButton();


jButton3 = new javax.swing.JButton();


jButton4 = new javax.swing.JButton();

Implementación interfaz táctil cocina

2010


14




jButton5 = new javax.swing.JButton();


jPanel7 = new javax.swing.JPanel();


jLabel3 = new jav
ax.swing.JLabel();


jTextField1 = new javax.swing.JTextField();


jTextField2 = new javax.swing.JTextField();


jLabel5 = new javax.swing.JLabel();


jLabel6 = new javax.swing.JLabel();


jTextField3 = new javax.swing.JTextField();


jLabel7 = new javax.swing.JLabel();


jTextField4 = new javax.swing.JTextField();


jLabel8 = new javax.swing.JLabel();


jTextField5 = new javax.swing.JTextField();


jLab
el9 = new javax.swing.JLabel();


jTextField6 = new javax.swing.JTextField();


jLabel10 = new javax.swing.JLabel();


jLabel11 = new javax.swing.JLabel();


jScrollPane3 = new javax.swing.JScrollPane();


jTextArea1 = new jav
ax.swing.JTextArea();


jLabel12 = new javax.swing.JLabel();


jTextField7 = new javax.swing.JTextField();


jLabel13 = new javax.swing.JLabel();


jTextField8 = new javax.swing.JTextField();


jLabel14 = new javax.swing.JLabe
l();


jTextField9 = new javax.swing.JTextField();


jButton6 = new javax.swing.JButton();


jLabel2 = new javax.swing.JLabel();


Implementación interfaz táctil cocina

2010


15




setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE)
;


setFocusable(false);


setMinimumSize(new java.awt.Dimension(1920, 1080));


setName("Form"); // NOI18N



org.jdesktop.application.ResourceMap resourceMap =
org.jdesktop.application.Application.getInstance(desktopapplication2.Des
ktopApplicatio
n2.class).getContext().getResourceMap(Almacen.class);


jPanel1.setBackground(resourceMap.getColor("jPanel1.background")); // NOI18N


jPanel1.setMinimumSize(new java.awt.Dimension(0, 0));


jPanel1.setName("jPanel1"); // NOI18N


jPanel1.setPreferredSize(new java.awt.Dimension(1920, 1000));



jPanel2.setBackground(resourceMap.getColor("jPanel2.background")); // NOI18N


jPanel2.setMinimumSize(new java.awt.Dimension(
0, 0));


jPanel2.setName("jPanel2"); // NOI18N


jPanel2.setPreferredSize(new java.awt.Dimension(1920, 165));



jButton1.setIcon(resourceMap.getIcon("jButton1.icon")); // NOI18N


jButton1.setBorderPainted(false);


jButton1
.setContentAreaFilled(false);


jButton1.setFocusPainted(false);


jButton1.setName("jButton1"); // NOI18N


jButton1.setPressedIcon(resourceMap.getIcon("jButton1.pressedIcon")); //
NOI18N



jLabel1.setIcon(resourceMap.getIcon("jLa
bel1.icon")); // NOI18N


jLabel1.setName("jLabel1"); // NOI18N

Implementación interfaz táctil cocina

2010


16





javax.swing.GroupLayout jPanel2Layout = new
javax.swing.GroupLayout(jPanel2);


jPanel2.setLayout(jPanel2Layout);


jPanel2Layout.setHorizontalGroup(


jPa
nel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel2Layout.createSequentialGroup()


.addContainerGap(317, Short.MAX_VALUE)


.addCom
ponent(jLabel1)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 328,
Short.MAX_VALUE)


.addComponent(jButton1)


.addContainerGap())


);


jPanel2Layout.setVerticalGroup(


jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(jPanel2Layout.createSequentialGroup()


.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)



.addGroup(jPanel2Layout.createSequentialGroup()


.addContainerGap()


.addComponent(jButton1))


.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE,
143, Short.MAX_VA
LUE))


.addContainerGap())


);


Implementación interfaz táctil cocina

2010


17




jPanel5.setBackground(resourceMap.getColor("jPanel5.background")); // NOI18N


jPanel5.setName("jPanel5"); // NOI18N


jPanel5.setPreferredSize(new java.awt.Dimension(1160, 60));



jLabel4.setFont(resourceMap.getFont("jLabel4.font")); // NOI18N


jLabel4.setForeground(resourceMap.getColor("jLabel4.foreground")); // NOI18N


jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);


jLabel4.setText(
resourceMap.getString("jLabel4.text")); // NOI18N


jLabel4.setName("jLabel4"); // NOI18N



javax.swing.GroupLayout jPanel5Layout = new
javax.swing.GroupLayout(jPanel5);


jPanel5.setLayout(jPanel5Layout);


jPanel5Layout.setHorizo
ntalGroup(


jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 1714,
Short.MAX_VALUE)


);


jPanel5Layout.setVerticalGroup(


jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel5Layout.createSequentialGroup()


.addContainerGap()


.addComponen
t(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 24,
Short.MAX_VALUE)


.addContainerGap())


);



jTabbedPane1.setFont(resourceMap.getFont("jTabbedPane1.font")); // NOI18N

Implementación interfaz táctil cocina

2010


18




jTabbedPane1.setName("jTabbedPane1"); // NOI18N



jPanel3.setName("jPanel3"); // NOI18N


jPanel3.setLayout(new java.awt.BorderLayout());



jScrollPane1.setName("jScrollPane1"); // NOI18N



jTable1.setModel(new javax.swing.table.DefaultTableModel(


new Object [][] {


{null, null, null, null, null, null, null, null},


{null, null, null, null, null, null, null, null},


{null, null, null, null, null, null, null, null},


{null, null, null, null, null, null, null
, null}


},


new String [] {


"Nombre", "ID", "Cantidad actual", "Cantidad máxima", "Cantidad mínima",
"Descripción", "Unidad de medida", "Descuento automático"


}


));


jTable1.setName("jTable1
"); // NOI18N


jTable1.setRowHeight(30);


jScrollPane1.setViewportView(jTable1);


jTable1.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title0")); // NOI18N


jTable1.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title1")); // NOI18N


jTable1.getColumnModel().getColumn(2).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title2")); // NOI18N

Implementación interfaz táctil cocina

2010


19





jTable1.getColumnModel().getColumn(3).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title3")); // NOI18N


jTable1.getColumnModel().getColumn(4).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title4")); // NOI18N


jTab
le1.getColumnModel().getColumn(5).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title5")); // NOI18N


jTable1.getColumnModel().getColumn(6).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title6")); // NOI18N


jTable1.ge
tColumnModel().getColumn(7).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title7")); // NOI18N



jPanel3.add(jScrollPane1, java.awt.BorderLayout.CENTER);



jTabbedPane1.addTab(resourceMap.getString("jPanel3.TabConstraints.tabTitle
"),
jPanel3); // NOI18N



jPanel4.setName("jPanel4"); // NOI18N


jPanel4.setLayout(new java.awt.BorderLayout());



jScrollPane2.setName("jScrollPane2"); // NOI18N



jTable2.setFont(resourceMap.getFont("jTable2.font")); // NOI18N


jTable2.setModel(new javax.swing.table.DefaultTableModel(


new Object [][] {


{null, null, null, null, null, null, null, null},


{null, null, null, null, null, null, null, null},


{null, null
, null, null, null, null, null, null},


{null, null, null, null, null, null, null, null}

Implementación interfaz táctil cocina

2010


20




},


new String [] {


"Nombre", "ID", "Cantidad actual", "Cantidad máxima", "Cantidad mínima",
"Descripción", "Unid
ad de medida", "Descuento automático"


}


));


jTable2.setName("jTable2"); // NOI18N


jTable2.setRowHeight(30);


jScrollPane2.setViewportView(jTable2);


jTable2.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title0")); // NOI18N


jTable2.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title1")); // NOI18N



jTable2.getColumnModel().getColumn(2).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title2")); // NOI18N


jTable2.getColumnModel().getColumn(3).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title3")); // NOI18N


jTab
le2.getColumnModel().getColumn(4).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title4")); // NOI18N


jTable2.getColumnModel().getColumn(5).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title5")); // NOI18N


jTable2.ge
tColumnModel().getColumn(6).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title6")); // NOI18N


jTable2.getColumnModel().getColumn(7).setHeaderValue(resourceMap.getString("jTab
le1.columnModel.title7")); // NOI18N



jPanel4.add(jSc
rollPane2, java.awt.BorderLayout.CENTER);

Implementación interfaz táctil cocina

2010


21





jTabbedPane1.addTab(resourceMap.getString("jPanel4.TabConstraints.tabTitle"),
jPanel4); // NOI18N



jPanel6.setBackground(resourceMap.getColor("jPanel6.background")); // NOI18N


jPanel6.setNa
me("jPanel6"); // NOI18N


jPanel6.setLayout(new java.awt.GridLayout(4, 1));



jButton2.setIcon(resourceMap.getIcon("jButton2.icon")); // NOI18N


jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N


jButton2.setBo
rderPainted(false);


jButton2.setContentAreaFilled(false);


jButton2.setFocusPainted(false);


jButton2.setName("jButton2"); // NOI18N


jButton2.setPressedIcon(resourceMap.getIcon("jButton2.pressedIcon")); //
NOI18N


jPane
l6.add(jButton2);



jButton3.setIcon(resourceMap.getIcon("jButton3.icon")); // NOI18N


jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N


jButton3.setBorderPainted(false);


jButton3.setContentAreaFilled(false);


jButton3.setFocusPainted(false);


jButton3.setName("jButton3"); // NOI18N


jButton3.setPressedIcon(resourceMap.getIcon("jButton3.pressedIcon")); //
NOI18N


jPanel6.add(jButton3);



jButton4.setIcon(resourceMap.getIcon("jButton4.icon")); // NOI18N

Implementación interfaz táctil cocina

2010


22




jButton4.setText(resourceMap.getString("jButton4.text")); // NOI18N


jButton4.setBorderPainted(false);


jButton4.setContentAreaFilled(false);


jButton4.s
etFocusPainted(false);


jButton4.setName("jButton4"); // NOI18N


jButton4.setPressedIcon(resourceMap.getIcon("jButton4.pressedIcon")); //
NOI18N


jPanel6.add(jButton4);



jButton5.setIcon(resourceMap.getIcon("jButton5.icon")); /
/ NOI18N


jButton5.setText(resourceMap.getString("jButton5.text")); // NOI18N


jButton5.setBorderPainted(false);


jButton5.setContentAreaFilled(false);


jButton5.setFocusPainted(false);


jButton5.setName("jButton5"); // N
OI18N


jButton5.setPressedIcon(resourceMap.getIcon("jButton5.pressedIcon")); //
NOI18N


jPanel6.add(jButton5);



jPanel7.setBackground(resourceMap.getColor("jPanel7.background")); // NOI18N


jPanel7.setToolTipText(resourceMap.getString("jPanel7.toolTipText")); // NOI18N


jPanel7.setName("jPanel7"); // NOI18N



jLabel3.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N


jLabel3.setForeground(resourceMap.getColo
r("jLabel3.foreground")); // NOI18N


jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N


jLabel3.setName("jLabel3"); // NOI18N



jTextField1.setFont(resourceMap.getFont("jTextField1.font")); // NOI18N

Implementación interfaz táctil cocina

2010


23




jTextField1
.setText(resourceMap.getString("jTextField1.text")); // NOI18N


jTextField1.setName("jTextField1"); // NOI18N



jTextField2.setFont(resourceMap.getFont("jTextField2.font")); // NOI18N


jTextField2.setText(resourceMap.getString("jTextFi
eld2.text")); // NOI18N


jTextField2.setName("jTextField2"); // NOI18N



jLabel5.setFont(resourceMap.getFont("jLabel5.font")); // NOI18N


jLabel5.setForeground(resourceMap.getColor("jLabel5.foreground")); // NOI18N


jLabel5.setT
ext(resourceMap.getString("jLabel5.text")); // NOI18N


jLabel5.setName("jLabel5"); // NOI18N



jLabel6.setFont(resourceMap.getFont("jLabel6.font")); // NOI18N


jLabel6.setForeground(resourceMap.getColor("jLabel6.foreground")); // NOI18
N


jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N


jLabel6.setName("jLabel6"); // NOI18N



jTextField3.setFont(resourceMap.getFont("jTextField3.font")); // NOI18N


jTextField3.setText(resourceMap.getString("jT
extField3.text")); // NOI18N


jTextField3.setName("jTextField3"); // NOI18N



jLabel7.setFont(resourceMap.getFont("jLabel7.font")); // NOI18N


jLabel7.setForeground(resourceMap.getColor("jLabel7.foreground")); // NOI18N


jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N


jLabel7.setName("jLabel7"); // NOI18N



jTextField4.setFont(resourceMap.getFont("jTextField4.font")); // NOI18N


jTextField4.setText(resourceMap.getString("jTex
tField4.text")); // NOI18N

Implementación interfaz táctil cocina

2010


24




jTextField4.setName("jTextField4"); // NOI18N



jLabel8.setFont(resourceMap.getFont("jLabel8.font")); // NOI18N


jLabel8.setForeground(resourceMap.getColor("jLabel8.foreground")); // NOI18N


jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N


jLabel8.setName("jLabel8"); // NOI18N



jTextField5.setFont(resourceMap.getFont("jTextField5.font")); // NOI18N


jTextField5.setName("jTextField5"); // NOI18N



jLabel9.setFont(resourceMap.getFont("jLabel9.font")); // NOI18N


jLabel9.setForeground(resourceMap.getColor("jLabel9.foreground")); // NOI18N


jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N


jLabel9.setName("
jLabel9"); // NOI18N



jTextField6.setFont(resourceMap.getFont("jTextField6.font")); // NOI18N


jTextField6.setName("jTextField6"); // NOI18N



jLabel10.setFont(resourceMap.getFont("jLabel10.font")); // NOI18N


jLabel10.setForeg
round(resourceMap.getColor("jLabel10.foreground")); // NOI18N


jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N


jLabel10.setName("jLabel10"); // NOI18N



jLabel11.setFont(resourceMap.getFont("jLabel11.font")); // NOI18N


jLabel11.setForeground(resourceMap.getColor("jLabel11.foreground")); // NOI18N


jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N


jLabel11.se
tName("jLabel11"); // NOI18N


Implementación interfaz táctil cocina

2010


25




jScrollPane3.setName("jScrollPane3"); // NOI18N



jTextArea1.setColumns(20);


jTextArea1.setRows(5);


jTextArea1.setName("jTextArea1"); // NOI18N


jScrollPane3.setViewportView(jTextArea1);



jLabel12.setFont(resourceMap.getFont("jLabel12.font")); // NOI18N


jLabel12.setForeground(resourceMap.getColor("jLabel12.foreground")); // NOI18N


jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N


jLabel12.se
tName("jLabel12"); // NOI18N



jTextField7.setFont(resourceMap.getFont("jTextField7.font")); // NOI18N


jTextField7.setName("jTextField7"); // NOI18N



jLabel13.setFont(resourceMap.getFont("jLabel13.font")); // NOI18N


jLabel13.
setForeground(resourceMap.getColor("jLabel13.foreground")); // NOI18N


jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N


jLabel13.setName("jLabel13"); // NOI18N



jTextField8.setFont(resourceMap.getFont("jTextField8.
font")); // NOI18N


jTextField8.setName("jTextField8"); // NOI18N



jLabel14.setFont(resourceMap.getFont("jLabel14.font")); // NOI18N


jLabel14.setForeground(resourceMap.getColor("jLabel14.foreground")); // NOI18N


jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N


jLabel14.setName("jLabel14"); // NOI18N


Implementación interfaz táctil cocina

2010


26




jTextField9.setFont(resourceMap.getFont("jTextField9.font")); // NOI18N


jTextField9.setName("jTextField9"); // NOI1
8N



jButton6.setIcon(resourceMap.getIcon("jButton6.icon")); // NOI18N


jButton6.setText(resourceMap.getString("jButton6.text")); // NOI18N


jButton6.setBorderPainted(false);


jButton6.setContentAreaFilled(false);


jButton6.setFocusPainted(false);


jButton6.setName("jButton6"); // NOI18N


jButton6.setPressedIcon(resourceMap.getIcon("jButton6.pressedIcon")); //
NOI18N



javax.swing.GroupLayout jPanel7Layout = new
javax.swing.GroupLayout(jP
anel7);


jPanel7.setLayout(jPanel7Layout);


jPanel7Layout.setHorizontalGroup(


jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel7La
yout.createSequentialGroup()


.addContainerGap(46, Short.MAX_VALUE)


.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING, false)


.addGroup(jPanel7Layout.createSequentialGro
up()


.addComponent(jLabel14)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)


.addComponent(jTextField9))


.addGroup(jPanel7Layout.createSequenti
alGroup()


.addComponent(jLabel12)

Implementación interfaz táctil cocina

2010


27




.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)


.addComponent(jTextField7))


.addGroup(jPanel7Layout.createSequentialGroup()


.addComponent(jLabel8)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)


.addComponent(jTextField
5,
javax.swing.GroupLayout.PREFERRED_SIZE, 144,
javax.swing.GroupLayout.PREFERRED_SIZE)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)


.addComponent(jLabel9)


.add
PreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)


.addComponent(jTextField6))


.addGroup(jPanel7Layout.createSequentialGroup()


.addComponent(jLabel3)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)


.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 192,
javax.swing.GroupLayout.PREFERRED_SIZE)


.addGap(6, 6, 6)



.addComponent(jLabel5)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)


.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, 108,
javax.swing.GroupLayout.PREFER
RED_SIZE))


.addGroup(jPanel7Layout.createSequentialGroup()


.addComponent(jLabel6)

Implementación interfaz táctil cocina

2010


28




.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)


.addComponent
(jTextField3,
javax.swing.GroupLayout.PREFERRED_SIZE, 113,
javax.swing.GroupLayout.PREFERRED_SIZE)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)


.addComponent(jLabel7)



.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)


.addComponent(jTextField4))


.addGroup(jPanel7Layout.createSequentialGroup()


.addGroup(jPanel7Layout.createParall
elGroup(javax.swing.GroupLayout.Alignment.LE
ADING)


.addComponent(jLabel10)


.addGroup(jPanel7Layout.createSequentialGroup()


.addGap(27, 27, 27)


.addComponent(jLabel11)))


.addGap(18, 18, 18)


.addComponent(jScrollPane3)))


.addGap(45, 45, 45))


.addGroup(jPanel7Layout.createSequentialGroup()



.addGap(150, 150, 150)


.addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE,
250, javax.swing.GroupLayout.PREFERRED_SIZE)


.addContainerGap(161, Short.MAX_VALUE))


);


jPanel7Layout.setVer
ticalGroup(


jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(jPanel7Layout.createSequentialGroup()

Implementación interfaz táctil cocina

2010


29




.addContainerGap()


.addGroup(jPanel7Layout.createParallelGroup(
javax.swing.GroupLayout.Alignment.BA
SELINE)


.addComponent(jLabel3)


.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)



.addComponent(jLabel5)


.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))


.addGap(18, 18, 18)



.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)


.addComponent(jLabel6)


.addComponent(jTextField3,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,

javax.swing.GroupLayout.PREFERRED_SIZE)


.addComponent(jLabel7)


.addComponent(jTextField4,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))



.addGap(18, 18, 18)


.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)


.addComponent(jLabel8)


.addComponent(jTextField5,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)

Implementación interfaz táctil cocina

2010


30




.addComponent(jLabel9)


.addComponent(jTextField6,
j
avax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))


.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)


.addGroup(jPane
l7Layout.createSequentialGroup()


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)


.addComponent(jScrollPane3,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE
,
javax.swing.GroupLayout.PREFERRED_SIZE))


.addGroup(jPanel7Layout.createSequentialGroup()


.addGap(29, 29, 29)


.addComponent(jLabel10)


.addPreferredGap(javax.swing.
LayoutStyle.ComponentPlacement.RELATED)


.addComponent(jLabel11)))


.addGap(18, 18, 18)


.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)


.addCo
mponent(jLabel12)


.addComponent(jTextField7,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.UNRELATED)


.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)


.addComponent(jLabel14)

Implementación interfaz táctil cocina

2010


31




.addComponent(jTextField9,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))


.addGap(18, 18, 18)


.addComponent(jButton6, javax.swing.Gr
oupLayout.PREFERRED_SIZE, 76,
javax.swing.GroupLayout.PREFERRED_SIZE)


.addContainerGap(20, Short.MAX_VALUE))


);



jLabel2.setIcon(resourceMap.getIcon("jLabel2.icon")); // NOI18N


jLabel2.setText(resourceMap.getString("
jLabel2.text")); // NOI18N


jLabel2.setName("jLabel2"); // NOI18N



javax.swing.GroupLayout jPanel1Layout = new
javax.swing.GroupLayout(jPanel1);


jPanel1.setLayout(jPanel1Layout);


jPanel1Layout.setHorizontalGroup(


jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 1714,
Short.MAX_VALUE)


.addGroup(jPanel1Layout.createSequentialGroup()



.addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, 1714,
Short.MAX_VALUE)


.addGap(0, 0, 0))


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()


.addContainer
Gap(457, Short.MAX_VALUE)


.addComponent(jLabel2)


.addContainerGap(457, Short.MAX_VALUE))


.addGroup(jPanel1Layout.createSequentialGroup()

Implementación interfaz táctil cocina

2010


32




.addGap(64, 64, 64)


.addComponent(jTabbedPa
ne1,
javax.swing.GroupLayout.PREFERRED_SIZE, 550,
javax.swing.GroupLayout.PREFERRED_SIZE)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 58,
Short.MAX_VALUE)


.addComponent(jPanel6, javax.swing.GroupLayo
ut.PREFERRED_SIZE,
356, javax.swing.GroupLayout.PREFERRED_SIZE)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59,
Short.MAX_VALUE)


.addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.s
wing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)


.addGap(66, 66, 66))


);


jPanel1Layout.setVerticalGroup(


jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)



.addGroup(jPanel1Layout.createSequentialGroup()


.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
146, javax.swing.GroupLayout.PREFERRED_SIZE)


.addGap(18, 18, 18)


.addComponent(jLabel2)



.addGap(69, 69, 69)


.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING, false)


.addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)


.addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, 481,
Short.MAX_VALUE)



.addComponent(jTabbedPane1))

Implementación interfaz táctil cocina

2010


33




.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 98,
Short.MAX_VALUE)


.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 46,
javax.swing.GroupLayout.PREFERRED_S
IZE))


);



jTabbedPane1.getAccessibleContext().setAccessibleName(resourceMap.getString("jTa
bbedPane1.AccessibleContext.accessibleName")); // NOI18N



getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);



pack();


}// </editor
-
fold>//GEN
-
END:initComponents



/**


* @param args the command line arguments


*/


public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() {


public void run() {



new MenuCocina().setVisible(true);


}


});


}



// Variables declaration
-

do not modify//GEN
-
BEGIN:variables


private javax.swing.JButton jButton1;


private javax.swing.JButton jButton2;

Implementación interfaz táctil cocina

2010


34




private javax.swing.JButton jButton3;


private javax.swing.JButton jButton4;


private javax.swing.JButton jButton5;


private javax.swing.JButton jButton6;


private javax.swing.JLabel jLabel1;


private javax.swing.JLabel jLabel10;


pri
vate javax.swing.JLabel jLabel11;


private javax.swing.JLabel jLabel12;


private javax.swing.JLabel jLabel13;


private javax.swing.JLabel jLabel14;


private javax.swing.JLabel jLabel2;


private javax.swing.JLabel jLabel3;


private javax.s
wing.JLabel jLabel4;


private javax.swing.JLabel jLabel5;


private javax.swing.JLabel jLabel6;


private javax.swing.JLabel jLabel7;


private javax.swing.JLabel jLabel8;


private javax.swing.JLabel jLabel9;


private javax.swing.JPanel jPan
el1;


private javax.swing.JPanel jPanel2;


private javax.swing.JPanel jPanel3;


private javax.swing.JPanel jPanel4;


private javax.swing.JPanel jPanel5;


private javax.swing.JPanel jPanel6;


private javax.swing.JPanel jPanel7;


private

javax.swing.JScrollPane jScrollPane1;


private javax.swing.JScrollPane jScrollPane2;


private javax.swing.JScrollPane jScrollPane3;

Implementación interfaz táctil cocina

2010


35




private javax.swing.JTabbedPane jTabbedPane1;


private javax.swing.JTable jTable1;


private javax.swing.JTable jTable2;


private javax.swing.JTextArea jTextArea1;


private javax.swing.JTextField jTextField1;


private javax.swing.JTextField jTextField2;


private javax.swing.JTextField jTextField3;


private javax.swing.JTextField jTextField4;


private javax.swing.JTextField jTextField5;


private javax.swing.JTextField jTextField6;


private javax.swing.JTextField jTextField7;


private javax.swing.JTextField jTextField8;


private java
x.swing.JTextField jTextField9;


// End of variables declaration//GEN
-
END:variables


}













Implementación interfaz táctil cocina

2010


36



Código de la ventana de carta


/*


* To change this template, choose Tools | Templates


* and open the template in the editor.


*/


/*


* MenuCocina.java


*


* Created on 25
-
may
-
2010, 22:19:51


*/


package desktopapplication2;


import javax.swing.UIManager;


/**


*


* @author PERSONAL


*/

public class CartaCocina extends javax.swing.JFrame {



/** Creates new form MenuCocina */


public CartaCocina() {


initComponents();


UIManager.put("ScrollBar.width",32);


}

Implementación interfaz táctil cocina

2010


37





/** 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.JP
anel();


jPanel2 = new javax.swing.JPanel();


jButton1 = new javax.swing.JButton();


jLabel1 = new javax.swing.JLabel();


jPanel5 = new javax.swing.JPanel();


jLabel4 = new javax.swing.JLabel();


jLabel2 = new javax.swing.JLabel();


jScrollPane1 = new javax.swing.JScrollPane();


jList1 = new javax.swing.JList();


jScrollPane2 = new javax.swing.JScrollPane();


jList2 = new javax.swing.JList();


jPanel3 = ne
w javax.swing.JPanel();


jLabel3 = new javax.swing.JLabel();


jComboBox1 = new javax.swing.JComboBox();


jButton2 = new javax.swing.JButton();


jButton3 = new javax.swing.JButton();


jButton4 = new javax.swing.JButton();


jButton5 = new javax.swing.JButton();

Implementación interfaz táctil cocina

2010


38




jButton6 = new javax.swing.JButton();



setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE)
;


setFocusable(false);


setMinimumSize(new java.awt.Dimension(1920, 1080));


setName("Form"); // NOI18N



org.jdesktop.application.ResourceMap resourceMap =
org.jdesktop.application.Application.getInstance(desktopapplication2.DesktopApplicatio
n2.class).getCo
ntext().getResourceMap(CartaCocina.class);


jPanel1.setBackground(resourceMap.getColor("jPanel1.background")); // NOI18N


jPanel1.setMinimumSize(new java.awt.Dimension(0, 0));


jPanel1.setName("jPanel1"); // NOI18N


jPanel1.setP
referredSize(new java.awt.Dimension(1920, 1000));



jPanel2.setBackground(resourceMap.getColor("jPanel2.background")); // NOI18N


jPanel2.setMinimumSize(new java.awt.Dimension(0, 0));


jPanel2.setName("jPanel2"); // NOI18N


jPan
el2.setPreferredSize(new java.awt.Dimension(1920, 165));



jButton1.setIcon(resourceMap.getIcon("jButton1.icon")); // NOI18N


jButton1.setBorderPainted(false);


jButton1.setContentAreaFilled(false);


jButton1.setFocusPainted(fal
se);


jButton1.setName("jButton1"); // NOI18N


jButton1.setPressedIcon(resourceMap.getIcon("jButton1.pressedIcon")); //
NOI18N


Implementación interfaz táctil cocina

2010


39




jLabel1.setIcon(resourceMap.getIcon("jLabel1.icon")); // NOI18N


jLabel1.setName("jLabel1"); // NOI
18N



javax.swing.GroupLayout jPanel2Layout = new
javax.swing.GroupLayout(jPanel2);


jPanel2.setLayout(jPanel2Layout);


jPanel2Layout.setHorizontalGroup(


jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.L
EADING)


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel2Layout.createSequentialGroup()


.addContainerGap(317, Short.MAX_VALUE)


.addComponent(jLabel1)


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 328,
Short.MAX_VALUE)


.addComponent(jButton1)


.addContainerGap())


);


jPanel2Layout.setVerticalGroup(


jPanel2Lay
out.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(jPanel2Layout.createSequentialGroup()


.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)


.addGroup(jPanel2Layout.createSequentialGroup()


.addContainerGap()


.addComponent(jButton1))


.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE,
143, Short.MA
X_VALUE))


.addContainerGap())

Implementación interfaz táctil cocina

2010


40




);



jPanel5.setBackground(resourceMap.getColor("jPanel5.background")); // NOI18N


jPanel5.setName("jPanel5"); // NOI18N


jPanel5.setPreferredSize(new java.awt.Dimension(1160, 60));



jLabel4.setFont(resourceMap.getFont("jLabel4.font")); // NOI18N


jLabel4.setForeground(resourceMap.getColor("jLabel4.foreground")); // NOI18N


jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);


jLabel4.setTex
t(resourceMap.getString("jLabel4.text")); // NOI18N


jLabel4.setName("jLabel4"); // NOI18N



javax.swing.GroupLayout jPanel5Layout = new
javax.swing.GroupLayout(jPanel5);


jPanel5.setLayout(jPanel5Layout);


jPanel5Layout.setHorizontalGroup(


jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 1714,
Short.MAX_VALUE)


);


jPanel5Lay
out.setVerticalGroup(


jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel5Layout.createSequentialGroup()


.addContainerGap()



.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 24,
Short.MAX_VALUE)


.addContainerGap())


);

Implementación interfaz táctil cocina

2010


41





jLabel2.setIcon(resourceMap.getIcon("jLabel2.icon")); // NOI18N


jLabel2.setText(resourceMap.getStrin
g("jLabel2.text")); // NOI18N


jLabel2.setName("jLabel2"); // NOI18N



jScrollPane1.setName("jScrollPane1"); // NOI18N



jList1.setFont(resourceMap.getFont("jList1.font")); // NOI18N


jList1.setModel(new javax.swing.AbstractList
Model() {


String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "a", "a", "a",
"a", "aa", "a", "a", "a", "aa", "a", "a", "a", "aa", "a", "a", "a", "aa", "a", "a", "a", "aa", "a",
"a", "a", "aa", "a", "a", "a", "aa", "a", "a", "
a", "aa", "a", "a", "a", "aa", "a", "a", "a", "aa",
"a", "a", "a", "a" };


public int getSize() { return strings.length; }


public Object getElementAt(int i) { return strings[i]; }


});


jList1.setName("jList1"); // NOI1
8N


jScrollPane1.setViewportView(jList1);



jScrollPane2.setName("jScrollPane2"); // NOI18N



jList2.setFont(resourceMap.getFont("jList2.font")); // NOI18N


jList2.setModel(new javax.swing.AbstractListModel() {


String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };


public int getSize() { return strings.length; }


public Object getElementAt(int i) { return strings[i]; }


});


jList2.setName("jList2"); // NOI18N


jScrollPane2.setViewportView(jList2);

Implementación interfaz táctil cocina

2010


42





jPanel3.setBackground(resourceMap.getColor("jPanel3.background")); // NOI18N


jPanel3.setName("jPanel3"); // NOI18N



jLabel3.setFont(resourceM
ap.getFont("jLabel3.font")); // NOI18N


jLabel3.setForeground(resourceMap.getColor("jLabel3.foreground")); // NOI18N


jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N


jLabel3.setName("jLabel3"); // NOI18N



jCo
mboBox1.setFont(resourceMap.getFont("jComboBox1.font")); // NOI18N


jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
"Item 1", "Item 2", "Item 3", "Item 4" }));


jComboBox1.setName("jComboBox1"); // NOI18N



jBut
ton2.setIcon(resourceMap.getIcon("jButton2.icon")); // NOI18N


jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N


jButton2.setBorderPainted(false);


jButton2.setContentAreaFilled(false);


jButton2.setFocusPaint
ed(false);


jButton2.setName("jButton2"); // NOI18N


jButton2.setPressedIcon(resourceMap.getIcon("jButton2.pressedIcon")); //
NOI18N



jButton3.setIcon(resourceMap.getIcon("jButton3.icon")); // NOI18N


jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N


jButton3.setBorderPainted(false);


jButton3.setContentAreaFilled(false);


jButton3.setFocusPainted(false);


jButton3.setName("jButton3"); // NOI18N

Implementación interfaz táctil cocina

2010


43





jButton3.setPressedIcon(resourceMap.getIcon("jButton3.pressedIcon")); //
NOI18N



jButton4.setIcon(resourceMap.getIcon("jButton4.icon")); // NOI18N


jButton4.setText(resourceMap.getString("jButton4.text")); // NOI18N


jButton4.set
BorderPainted(false);


jButton4.setContentAreaFilled(false);


jButton4.setFocusPainted(false);


jButton4.setName("jButton4"); // NOI18N


jButton4.setPressedIcon(resourceMap.getIcon("jButton4.pressedIcon")); //
NOI18N



jB
utton5.setIcon(resourceMap.getIcon("jButton5.icon")); // NOI18N


jButton5.setText(resourceMap.getString("jButton5.text")); // NOI18N


jButton5.setBorderPainted(false);


jButton5.setContentAreaFilled(false);


jButton5.setFocusPai
nted(false);


jButton5.setName("jButton5"); // NOI18N


jButton5.setPressedIcon(resourceMap.getIcon("jButton5.pressedIcon")); //
NOI18N



jButton6.setIcon(resourceMap.getIcon("jButton6.icon")); // NOI18N


jButton6.setText(resourc
eMap.getString("jButton6.text")); // NOI18N


jButton6.setBorderPainted(false);


jButton6.setContentAreaFilled(false);


jButton6.setFocusPainted(false);


jButton6.setName("jButton6"); // NOI18N


jButton6.setPressedIcon(resourceMap.getIcon("jButton6.pressedIcon")); //
NOI18N


Implementación interfaz táctil cocina

2010


44




javax.swing.GroupLayout jPanel3Layout = new
javax.swing.GroupLayout(jPanel3);


jPanel3.setLayout(jPanel3Layout);


jPanel3Layout.setHorizontalGrou
p(


jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(jPanel3Layout.createSequentialGroup()


.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)



.addGroup(jPanel3Layout.createSequentialGroup()


.addGap(39, 39, 39)


.addComponent(jLabel3)


.addGap(33, 33, 33)


.addComponent(jComboBox1,
java
x.swing.GroupLayout.PREFERRED_SIZE, 243,
javax.swing.GroupLayout.PREFERRED_SIZE))


.addGroup(jPanel3Layout.createSequentialGroup()


.addGap(24, 24, 24)


.addComponent(jButton2,
javax.swing.Gr
oupLayout.PREFERRED_SIZE, 123,
javax.swing.GroupLayout.PREFERRED_SIZE)


.addGap(18, 18, 18)


.addComponent(jButton3,
javax.swing.GroupLayout.PREFERRED_SIZE, 123,
javax.swing.GroupLayout.PREFERRED_SIZE)



.addGap(18, 18, 18)


.addComponent(jButton4,
javax.swing.GroupLayout.PREFERRED_SIZE, 123,
javax.swing.GroupLayout.PREFERRED_SIZE)))


.addContainerGap(14, Short.MAX_VALUE))


.addGroup(javax.sw
ing.GroupLayout.Alignment.TRAILING,
jPanel3Layout.createSequentialGroup()

Implementación interfaz táctil cocina

2010


45




.addContainerGap(44, Short.MAX_VALUE)


.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING, false)



.addComponent(jButton6, javax.swing.GroupLayout.Alignment.LEADING,
0, 0, Short.MAX_VALUE)


.addComponent(jButton5, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, 355,
javax.swing.GroupLayout.PREFERR
ED_SIZE))


.addGap(44, 44, 44))


);


jPanel3Layout.setVerticalGroup(


jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addGroup(jPanel3Layout.createSequentialGroup()


.addGap(40, 40, 40)


.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING, false)


.addComponent(jComboBox1,
javax.swing.GroupLayout.Alignment.LEADING)


.addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))


.addGap(18, 18, 18)


.addGroup(jPanel3Layout.createParallelGroup(
javax.swing.GroupLayout.Alignment.BA
SELINE)


.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
98, javax.swing.GroupLayout.PREFERRED_SIZE)


.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE,
98, javax.swing.GroupLayout.PREFERRED_SIZE)


.addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE,
98, javax.swing.GroupLayout.PREFERRED_SIZE))


.addGap(18, 18, 18)

Implementación interfaz táctil cocina

2010


46




.addComponent(jButton5)



.addGap(18, 18, 18)


.addComponent(jButton6)


.addContainerGap(102, Short.MAX_VALUE))


);



javax.swing.GroupLayout jPanel1Layout = new
javax.swing.GroupLayout(jPanel1);


jPanel1.setLayout(jPanel1Layout);


jPanel1Layout.setHorizontalGroup(


jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 1714,
Shor
t.MAX_VALUE)


.addGroup(jPanel1Layout.createSequentialGroup()


.addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, 1714,
Short.MAX_VALUE)


.addGap(0, 0, 0))


.addGroup(javax.swing.GroupLayout.Ali
gnment.TRAILING,
jPanel1Layout.createSequentialGroup()


.addContainerGap(457, Short.MAX_VALUE)


.addComponent(jLabel2)


.addContainerGap(457, Short.MAX_VALUE))


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()


.addGap(91, 91, 91)


.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE,
489, Short.MAX_VALUE)



.addGap(47, 47, 47)


.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)

Implementación interfaz táctil cocina

2010


47




.addGap(53, 53, 53)


.addComponent(jScrollPa
ne2, javax.swing.GroupLayout.DEFAULT_SIZE,
497, Short.MAX_VALUE)


.addGap(94, 94, 94))


);


jPanel1Layout.setVerticalGroup(


jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)


.a
ddGroup(jPanel1Layout.createSequentialGroup()


.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
146, javax.swing.GroupLayout.PREFERRED_SIZE)


.addGap(18, 18, 18)


.addComponent(jLabel2)



.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 57,
Short.MAX_VALUE)


.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING, false)


.addComponent(jPanel3, javax.sw
ing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)


.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE,
539, Short.MAX_VALUE)


.addComponent(jScrollPane2, javax.swing.Gro
upLayout.DEFAULT_SIZE,
539, Short.MAX_VALUE))


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52,
Short.MAX_VALUE)


.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 46,
javax.swing.GroupLayo
ut.PREFERRED_SIZE))


);



getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);

Implementación interfaz táctil cocina

2010


48





pack();


}// </editor
-
fold>//GEN
-
END:initComponents



/**


* @param args the command line arguments


*/


public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() {


public void run() {


new MenuCocina().setVisible(true);


}


});


}



// Variables declaration
-

do not modify//GEN
-
BEGIN:variables


private javax.swing.JButton jButton1;


private javax.swing.JButton jButton2;


private javax.swing.JButton jButton3;


private javax.swing.JButton jButton4;


private javax.swin
g.JButton jButton5;


private javax.swing.JButton jButton6;


private javax.swing.JComboBox jComboBox1;


private javax.swing.JLabel jLabel1;


private javax.swing.JLabel jLabel2;


private javax.swing.JLabel jLabel3;


private javax.swing.JLab
el jLabel4;


private javax.swing.JList jList1;

Implementación interfaz táctil cocina

2010


49




private javax.swing.JList jList2;


private javax.swing.JPanel jPanel1;


private javax.swing.JPanel jPanel2;


private javax.swing.JPanel jPanel3;


private javax.swing.JPanel jPanel5;


private javax.swing.JScrollPane jScrollPane1;


private javax.swing.JScrollPane jScrollPane2;


// End of variables declaration//GEN
-
END:variables


}



















Implementación interfaz táctil cocina

2010


50



Código de la ventana de comandas


/*


* To change this template, choose Tools | Templates


* and open the template in the editor.


*/


/*


* MenuCocina.java


*


* Created on 25
-
may
-
2010, 22:19:51


*/


package desktopapplication2;


/**


*


* @author PERSONAL


*/

public class ComandasCocina ext
ends javax.swing.JFrame {



/** Creates new form MenuCocina */


public ComandasCocina() {


initComponents();


}



/** This method is called from within the constructor to


* initialize the form.

Implementación interfaz táctil cocina

2010


51




* WARNING: Do NOT modify this cod
e. 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();


jPanel2 = new javax.swing.JPanel();


jButton1 = new javax.swing.JButton();


jLabel1 = new javax.swing.JLabel();


jPanel5 = new javax.swing.JPanel();


jLabel4 = new javax.swing.
JLabel();


jLabel2 = new javax.swing.JLabel();


jScrollPane1 = new javax.swing.JScrollPane();


jTable1 = new javax.swing.JTable();


jScrollPane2 = new javax.swing.JScrollPane();


jList1 = new javax.swing.JList();


jPanel3 = new javax.swing.JPanel();


jButton2 = new javax.swing.JButton();


jButton3 = new javax.swing.JButton();


jButton4 = new javax.swing.JButton();



setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE)
;


setFocusable(false);


setMinimumSize(new java.awt.Dimension(1920, 1080));

Implementación interfaz táctil cocina

2010


52




setName("Form"); // NOI18N



org.jdesktop.application.ResourceMap resourceMap =
org.jdesktop.application.Application.getInstance(desktopapplication2.D
esktopApplicatio
n2.class).getContext().getResourceMap(ComandasCocina.class);


jPanel1.setBackground(resourceMap.getColor("jPanel1.background")); // NOI18N


jPanel1.setMinimumSize(new java.awt.Dimension(0, 0));


jPanel1.setName("jPanel1
"); // NOI18N


jPanel1.setPreferredSize(new java.awt.Dimension(1920, 1000));



jPanel2.setBackground(resourceMap.getColor("jPanel2.background")); // NOI18N


jPanel2.setMinimumSize(new java.awt.Dimension(0, 0));


jPanel2.setName("jPanel2"); // NOI18N


jPanel2.setPreferredSize(new java.awt.Dimension(1920, 165));



jButton1.setIcon(resourceMap.getIcon("jButton1.icon")); // NOI18N


jButton1.setBorderPainted(false);


jButton1.setCont
entAreaFilled(false);


jButton1.setFocusPainted(false);


jButton1.setName("jButton1"); // NOI18N


jButton1.setPressedIcon(resourceMap.getIcon("jButton1.pressedIcon")); //
NOI18N



jLabel1.setIcon(resourceMap.getIcon("jLabel1.ico
n")); // NOI18N