Examples of ArgumentDialog


Examples of org.indrasoftwarelabs.dialogs.ArgumentDialog

      botonAddParam.setToolTipText("New Param.");
      botonAddParam.addActionListener(new ActionListener() {

          public void actionPerformed(ActionEvent event){
            // Se abre un cuadro de dialogo y se pide el nombre y el tipo de parametro
            ArgumentDialog customDialog = new ArgumentDialog(model, vectorParamsIDs, null, null, 0, ArgumentDialog.NEW_PARAMETER, botonGuardar);
           
            customDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
            customDialog.setLocationRelativeTo(frame);
          customDialog.setVisible(true);
          customDialog.setResizable(false);
           
          //botonGuardar.setEnabled(false);
          }
         
      });
     
      //panel.add(botonAddParam);
      miContenedor.add(botonAddParam);
     
      icono = new ImageIcon("res/icons/Edit-icon.png");
      botonEditParam = new JButton();
      botonEditParam.setIcon(icono);
      botonEditParam.setBounds(640, 370, 30, 30); // x, y, ancho, alto
      botonEditParam.setToolTipText("Edit Param.");
      botonEditParam.addActionListener(new ActionListener() {

          public void actionPerformed(ActionEvent event){
           
            int fila = table.getSelectedRow();
           
            if(fila > -1){
             
              String nombreParam  = (String)table.getValueAt(fila, 1);
              String tipoParam  = (String)table.getValueAt(fila, 2);
             
              // Se abre un cuadro de dialogo y se rellena el nombre y el tipo de parametro
                ArgumentDialog customDialog = new ArgumentDialog(model, vectorParamsIDs, nombreParam, tipoParam, fila, ArgumentDialog.EDIT_PARAMETER, botonGuardar);
               
                customDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
                customDialog.setLocationRelativeTo(frame);
              customDialog.setVisible(true);
              customDialog.setResizable(false);
             
              //botonGuardar.setEnabled(false);
             
            }else{
              String msg = "Selecciona una fila para editar un parametro";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.