예제 #1
0
 private static final void showup(JOptionPane jop) {
   JDialog dialog = jop.createDialog(ResourceCenter.TITLE);
   dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
   dialog.setIconImages(ResourceCenter.icons);
   dialog.setModal(true);
   dialog.setVisible(true);
   dialog.dispose();
 }
 /**
  * Shows a {@link ScatterPlotPane}.
  *
  * @param parent parent component. Can be null
  * @param xAxisName name of the X-Axis
  * @param yAxisName name of the Y-Axis
  * @param chartData data to plot
  */
 public static void showDialog(
     Component parent, String xAxisName, String yAxisName, List<ScatterPlotData> chartData) {
   ScatterPlotPane scatterPlotPane = new ScatterPlotPane(parent, xAxisName, yAxisName, chartData);
   JDialog scatterPlotDialog = new JDialog();
   scatterPlotDialog.setContentPane(scatterPlotPane);
   scatterPlotDialog.setModalityType(ModalityType.APPLICATION_MODAL);
   scatterPlotDialog.setTitle("Scatter Plot");
   scatterPlotDialog.setIconImages(Images.getApplicationImages());
   scatterPlotDialog.setPreferredSize(new Dimension(DEFAULT_WIDTH, DEFAULT_HEIGHT));
   scatterPlotDialog.setMinimumSize(new Dimension(MINIMUM_WIDTH, MINIMUM_HEIGHT));
   scatterPlotDialog.pack();
   scatterPlotDialog.setLocationRelativeTo(parent);
   scatterPlotDialog.setVisible(true);
   scatterPlotDialog.dispose();
 }
 private void setupIcons(JDialog dialog) {
   java.util.List list = new ArrayList();
   list.add(imageIcon.getImage());
   list.add(imageIconBig.getImage());
   dialog.setIconImages(list);
 }