Package javax.swing

Examples of javax.swing.JDialog.show()


    public static void main(String[] args) {
        DemoDictionary dict = new DemoDictionary();
        DictionaryPanel panel = new DictionaryPanel(dict);
        JOptionPane pane = new JOptionPane(panel);
        JDialog dia = pane.createDialog((JFrame)null, "Title");
        dia.show();
        System.exit(0);
    }
   
}
View Full Code Here


            YKDocumentFactory.createYKDocument(new File("/Users/will/bosnia.csv"),
                    "bosnia.csv", "UTF-8", Locale.getDefault());
        DocumentPropertiesPanel panel = new DocumentPropertiesPanel(doc);
        dia.getContentPane().add(panel);
        dia.pack();
        dia.show();
    }

}
View Full Code Here

        AffineTransformTracker tracker = new AffineTransformTracker(pane);
        JDialog dialog = new Dialog(cmp, title, true, pane, tracker, null);
        dialog.addWindowListener(new Closer());
        dialog.addComponentListener(new DisposeOnClose());

        dialog.show(); // blocks until user brings dialog down...

        return tracker.getAffineTransform();
    }
   
    /**
 
View Full Code Here

              pane.setMessage("Seguro desea insertar el elemento?. ");
            pane.setMessageType(JOptionPane.QUESTION_MESSAGE);
            JDialog dialog = pane.createDialog(componenteRef.getParentFrame(), "Confirmaci�n");

            dialog.setModal(true);
            dialog.show();

            selectedValue = pane.getValue();   // no

            for (int counter = 0, maxCounter = options.length;
                counter < maxCounter; counter++)
View Full Code Here

    pane.setOptionType(0);
    pane.setMessageType(JOptionPane.ERROR_MESSAGE);
    pane.setMessage(mensage);
    pane.setSize(260, 260);
    JDialog dialog = pane.createDialog(null, "Error");
    dialog.show();

  }

  private boolean cumpleCondicion(Object[] datos,
          int[][] condicionCodificada,
View Full Code Here

            pane.setMessageType(JOptionPane.INFORMATION_MESSAGE);
            JDialog dialog = pane.createDialog(componenteRef.getParentFrame(), "Eliminar Elemento");

            result = -2;
            dialog.setModal(true);
            dialog.show();
        }
        else
        {/***  ventana de confirmacion   *****/

            if (confirmacion && isConfirmarEliminacion())
View Full Code Here

                pane.setMessage("Confirma que desea Eliminar el elemento seleccionado? ");
                pane.setMessageType(JOptionPane.QUESTION_MESSAGE);
                JDialog dialog = pane.createDialog(componenteRef.getParentFrame(), "Eliminar Elemento");

                dialog.setModal(true);
                dialog.show();
                Object selectedValue = pane.getValue();   // no

                if (selectedValue.equals(null) || options[1].equals(selectedValue))
                    result = 1;
            }
View Full Code Here

            pane.setMessage("Debe seleccionar una fila para modificar");
            pane.setMessageType(JOptionPane.INFORMATION_MESSAGE);
            JDialog dialog = pane.createDialog(componenteRef.getParentFrame(), "Modificar Elemento");

            dialog.setModal(true);
            dialog.show();
        }
        else
            model.setEdicion("Modificar");
        return filaamodificar;
    }
View Full Code Here

                        GetSelectionStart(),
                        GetSelectionEnd() );
                }
            };
        if (aDialog != null)
            aDialog.show();
        return aDialog;
    }

    static public JDialog CreateCopyDialog (XAccessibleContext xContext)
    {
View Full Code Here

                        GetSelectionStart(),
                        GetSelectionEnd());
                }
            };
        if (aDialog != null)
            aDialog.show();
        return aDialog;
    }
    static public JDialog CreateCutDialog (XAccessibleContext xContext)
    {
        JDialog aDialog = new TextActionDialog(
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.