Package javax.swing

Examples of javax.swing.JDialog.show()


        Element el=getElement(c);
        changeElement(c,el.previousMode);
      }
    });
    jd.pack();
    jd.show();
    return jd;
  }
 
  public void save(UserProperties up, String suffix){
    String propRoot=SplitTabPane.class.getName();
View Full Code Here


        if (action==null) return;
        if (action.equals(NodeResourcesManager.resources.getString("Properties"))) {
            TransformDataUI dui = new TransformDataUI(this,data, true);
            JDialog dialog = dui.createDialog(null, NodeResourcesManager.resources.getString("Properties"));
          
            dialog.show();
          
         
        }
    }
View Full Code Here

          button.setBackground(colorEditor.currentColor);
          colorChooser.setColor(colorEditor.currentColor);
          //Without the following line, the dialog comes up
          //in the middle of the screen.
          dialog.setLocationRelativeTo(button);
          dialog.show();
        }
      });
    }
 
 
View Full Code Here

    public void doAction(Object action) {
        if (action==null) return;
        if (action.equals(NodeResourcesManager.resources.getString("Properties"))) {
          PropertiesTransformDataUI dui = new PropertiesTransformDataUI(this, data, properties, true, colorMapperManager);
            JDialog dialog = dui.createDialog(null, NodeResourcesManager.resources.getString("Properties"));
            dialog.show();
        }
    }
    
    /*
     * Sub classes have to restore the transform data
View Full Code Here

    if (action.equals(resources.getStringValue("information"))){
      // Display plot information
      PlotInformationDialog di = new TimePlotStatisticsDialog(this);
      JDialog jd = di.createDialog(JSynoptic.gui.getOwner());
      if (jd!=null) jd.show();
      return true;
   
    } else {
        return super.doAction(x,y,o,action, undoableEdit);
    }
View Full Code Here

      }
    });
   
    dialog.getContentPane().add(content);
    dialog.pack();
    dialog.show();
    notifyListeners(); // there is no cancel => always consider the mapping changed
  }
 
  /** Copied from Java Tutorial on tables, they had the very good idea to set up a colored cell table :))))
   */
 
View Full Code Here

    JPanel pokb=new JPanel();
    pokb.add(okb);
    pokb.add(cancelb);
    jd.getContentPane().add(pokb,BorderLayout.SOUTH);
    jd.pack();
    jd.show();

    return cbl.getCheckedItems();
   
  }
}
View Full Code Here

        }
        if (action.equals(resources.getStringValue("information"))) {

            PlotInformationDialog di = new PlotInformationDialog(this);
            JDialog jd = di.createDialog(JSynoptic.gui.getOwner());
            if (jd!=null) jd.show();
            return true;
        }
        for(int i=0;i<_curves.size();i++){

            // magnetize a curve action
View Full Code Here

                 * GanttDialogProperties.colorChooser.addChooserPanel(panels[0]);
                 */

                GanttDialogProperties.colorChooser.setColor(colorButton
                        .getBackground());
                dialog.show();
            }
        });

        colorSpace = new JButton(language.getText("defaultColor"));
        colorSpace.setBackground(GanttGraphicArea.taskDefaultColor);
View Full Code Here

          if (oldLogChoice==OLDLOG_THIS_TIME | oldLogChoice==OLDLOG_NOT_THIS_TIME) {
            JOptionPane jop = new JOptionPane("Do you want old log from gateway :\n"+jmxsurl+" ?", JOptionPane.QUESTION_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null, new String[] {OLDLOG_THIS_TIME, OLDLOG_NOT_THIS_TIME, OLDLOG_ALWAYS, OLDLOG_NEVER}, OLDLOG_THIS_TIME);
            JDialog dialog = jop.createDialog(jp, "Old log management");
      //dialog.setModal(true);
      dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
      dialog.show();
      oldLogChoice = (String) jop.getValue();
      if (oldLogChoice==JOptionPane.UNINITIALIZED_VALUE) {
              oldLogChoice=OLDLOG_THIS_TIME; // *1)
      }
    }
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.