Package Pedidos

Examples of Pedidos.Mesa


                int nombremesa = resultados.getInt(1);
                int estadomesa = resultados.getInt(2);
                System.out.println("Mesa:" + nombremesa);
                System.out.println("edo:" + estadomesa);
                Mesa m = new Mesa();
                m.setNumeroDeMesa(nombremesa);
                m.setEstadoMesa(estadomesa);
                mesas.add(m);
            }
            return mesas;
        } catch (SQLException ex) {
            Logger.getLogger(ServicioDeAccesoABaseDeDatos.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here


    public VentanaMesero(JFrame login, ServicioDeAccesoABaseDeDatos baseDeDatos) {
        this.login = login;
        this.baseDeDatos = baseDeDatos;
        Vector<Mesa> mesas = baseDeDatos.obtenerMesas();
        for (int i = 0; i < mesas.size(); i++) {
            Mesa mesa = mesas.elementAt(i);
            JLabel mesa1 = new JLabel();
            mesa1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            mesa1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/GUI/res/mesas beta de 60x80 cms mesas en restaurante.jpg"))); // NOI18N
            mesa1.setText(mesa.getNumeroDeMesa() + "");
            mesa1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
            mesa1.addMouseListener(new miAdaptador(mesa, this));
            panelMesas.add(mesa1);
            //mesa1.setVisible(true);
            //pack();
View Full Code Here

        SubstanceSkin skin = new BusinessBlueSteelSkin()//CremeCoffeeSkin()
                .withWatermark(watermark); // 初始化有水印的皮肤
        SubstanceLookAndFeel.setSkin(skin);
        Vector<Mesa> mesas = baseDeDatos.obtenerMesas();
        for (int i = 0; i < mesas.size(); i++) {
            Mesa mesa = mesas.elementAt(i);
            JLabel mesa1 = new JLabel();
            mesa1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            mesa1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/GUI/res/mesas beta de 60x80 cms mesas en restaurante.jpg"))); // NOI18N
            mesa1.setText(mesa.getNumeroDeMesa() + "");
            mesa1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
            mesa1.addMouseListener(new miAdaptador(mesa, this));
            panelMesas.add(mesa1);
            //mesa1.setVisible(true);
            //pack();
View Full Code Here

TOP

Related Classes of Pedidos.Mesa

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.