Package org.indrasoftwarelabs.dialogs

Examples of org.indrasoftwarelabs.dialogs.SeleccionarDialog


               * - METODO
               * - SENTENCIA
               *
               */
             
              SeleccionarDialog customDialog = new SeleccionarDialog(SeleccionarDialog.NEW_PARAMETER, null, frame, prop, main.getMyContainer());
         
              customDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
         
          customDialog.setLocationRelativeTo(frame);
          customDialog.setResizable(false);
          customDialog.setVisible(true);
           
          }
        });
   
    //file.add(eMenuItem);
   
    eMenuItem = new JMenuItem("EDIT", iconEdit);
    eMenuItem.setEnabled(true);
   
    eMenuItem.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent event) {
           
            // Si no hay una query seleccionada, sacar un mensaje de dialogo advirtiendo del uso correcto
            String valor = (String)main.listSen.getSelectedValue();
           
            if(valor == null){
              String msg = "Por favor, selecciona una sentencia de la lista inferior";
                JOptionPane.showConfirmDialog(frame,msg,"Atencion",JOptionPane.CLOSED_OPTION, JOptionPane.WARNING_MESSAGE);
                 
            }else{
             
//              EditDialog customDialog = new EditDialog(valor, frame, con);
//              customDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
//             
//              customDialog.setLocationRelativeTo(frame);
//              customDialog.setVisible(true);
//              customDialog.setResizable(false);
             
              /**
                   * TODO
                   * Un cuadro de dialogo con la opcion del objeto que se desee editar:
                   *
                   * - MODULO
                   * - METODO
                   * - SENTENCIA
                   *
                   */
                 
                  SeleccionarDialog customDialog = new SeleccionarDialog(SeleccionarDialog.EDIT_PARAMETER, valor, frame, prop, main.getMyContainer());
              customDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
             
              customDialog.setLocationRelativeTo(frame);
              customDialog.setResizable(false);
              customDialog.setVisible(true);
             
            }
           
          }
        });
View Full Code Here

TOP

Related Classes of org.indrasoftwarelabs.dialogs.SeleccionarDialog

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.