Example usage for javax.swing JDialog validate

List of usage examples for javax.swing JDialog validate

Introduction

In this page you can find the example usage for javax.swing JDialog validate.

Prototype

public void validate() 

Source Link

Document

Validates this container and all of its subcomponents.

Usage

From source file:org.nekorp.workflow.desktop.view.resource.imp.DamageCaptureDetailDialogFactory.java

@Override
public JDialog createDialog(Frame frame, boolean modal) {
    JDialog dialog = new JDialog(mainFrame, true);
    dialog.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    dialog.setTitle("Descripcin del Dao");
    view.setParentWindow(dialog);/*from  w  w  w.ja  va 2s  .  co m*/
    view.iniciaVista();
    dialog.add(view);
    dialog.validate();
    dialog.pack();
    dialog.setLocationRelativeTo(mainFrame);
    return dialog;
}

From source file:org.nekorp.workflow.desktop.view.resource.imp.WizardDialogFactory.java

@Override
public JDialog createDialog(Frame frame, boolean modal) {
    JDialog dialog = new JDialog(mainFrame, true);
    dialog.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    dialog.setTitle("Nuevo Servicio");
    wizard.setParentWindow(dialog);/*from w w  w.j  a  v  a2s .  c o m*/
    wizard.iniciaVista();
    dialog.add(wizard);
    dialog.validate();
    dialog.pack();
    dialog.setLocationRelativeTo(mainFrame);
    return dialog;
}

From source file:org.nekorp.workflow.desktop.view.resource.imp.ParametrosReporteGlobalDialogFactory.java

@Override
public JDialog createDialog(Frame frame, boolean modal) {
    JDialog dialog = new JDialog(mainFrame, true);
    dialog.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    dialog.setTitle("Reporte Global");
    datePickView.setParent(dialog);/* w  w w .  ja v a 2 s .c o m*/
    datePickView.iniciaVista();
    dialog.add(datePickView);
    dialog.validate();
    dialog.pack();
    dialog.setLocationRelativeTo(mainFrame);
    return dialog;
}

From source file:org.nekorp.workflow.desktop.view.resource.imp.EvidenciaViewDialogFactory.java

@Override
public JDialog createDialog(Frame frame, boolean modal) {
    JDialog dialog = new JDialog(mainFrame, true);
    dialog.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    dialog.setTitle("Evidencia");
    evidenciaView.iniciaVista();//w ww . ja  v a2s . co m
    dialog.add(evidenciaView);
    dialog.setSize(980, 640);//hardcode para que no cresca en medida de imagenes en el preview
    dialog.validate();
    //dialog.pack();
    dialog.setLocationRelativeTo(mainFrame);
    return dialog;
}

From source file:org.nekorp.workflow.desktop.view.resource.imp.HistorialServicioDialogFactory.java

@Override
public JDialog createDialog(Frame frame, boolean modal) {
    HistorialServiciosJTableModel model = new HistorialServiciosJTableModel();
    model.setDatos(historialController.getHistorial());
    JDialog dialog = new JDialog(mainFrame, true);
    dialog.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    dialog.setTitle("Historial Servicio");
    historialView.setParent(dialog);/*  ww  w.j ava2s .c  om*/
    historialView.iniciaVista();
    historialView.setHistoricoModel(model);
    dialog.add(historialView);
    dialog.validate();
    dialog.pack();
    dialog.setLocationRelativeTo(mainFrame);
    return dialog;
}

From source file:org.nekorp.workflow.desktop.view.resource.imp.ServicioPreviewDialogFactory.java

@Override
public JDialog createDialog(Frame frame, boolean modal) {
    JDialog dialog = new JDialog(mainFrame, true);
    dialog.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    dialog.setTitle("Consulta Servicio " + " Nmero: " + viewServicioModel.getId());
    servicioPreview.setParent(dialog);//w  w w .  j  a  v  a 2  s .  c o  m
    servicioPreview.iniciaVista();
    servicioPreview.setEditableStatus(false);
    dialog.add(servicioPreview);
    dialog.validate();
    dialog.pack();
    dialog.setLocationRelativeTo(mainFrame);
    return dialog;
}

From source file:com.att.aro.ui.view.diagnostictab.GraphPanel.java

public void launchSliderDialog(int indexKey) {
    GoogleAnalyticsUtil.getGoogleAnalyticsInstance().sendViews("StartupDelayDialog");
    IVideoPlayer player = parent.getVideoPlayer();
    double maxDuration = player.getDuration();
    if (maxDuration != -1) {
        JDialog dialog = new SliderDialogBox(this, maxDuration, chunkInfo, indexKey, vcPlot.getAllChunks());
        dialog.pack();// w  ww  . j av a2s. c om
        dialog.setSize(dialog.getPreferredSize());
        dialog.validate();
        dialog.setModalityType(ModalityType.APPLICATION_MODAL);
        dialog.setVisible(true);
    }
}