public AddMaterialParameterDialog(java.awt.Frame parent,boolean modal,Diagram diagram,Point clickPosition){
  super(parent,modal);
  initComponents();
  DefaultComboBoxModel model=new DefaultComboBoxModel();
  model.addElement("Color");
  for (  VarType varType : VarType.values()) {
    model.addElement(varType.name());
  }
  this.diagram=diagram;
  this.clickPosition=clickPosition;
  typeField.setModel(model);
}

public AddMaterialParameterDialog ( java . awt . Frame parent , boolean modal , Diagram diagram , Point clickPosition ) { super ( parent , modal ) ; initComponents ( ) ; DefaultComboBoxModel model = new DefaultComboBoxModel ( ) ; model . addElement ( "Color" ) ; for ( VarType varType : VarType . values ( ) ) { model . addElement ( varType . name ( ) ) ; } this . diagram = diagram ; this . clickPosition = clickPosition ; typeField . setModel ( model ) ; }
creates new form addmaterialparameter
