public void edit(InitVariableAction var) {
   variable = var;
   if (editor != null) varEditPane.remove((EditorPanel) editor);
   var.addVariableListener(variableListener);
   editor = var.getVariableEditor();
   varName.setText(var.getName());
   varName.repaint();
   if (editor != null) {
     editor.edit(var.getNewInitialization());
     varEditPane.add((EditorPanel) editor, BorderLayout.CENTER);
     varEditPane.revalidate();
     varEditPane.repaint();
   }
 }
 private JPanel getNumericLevels(EnumLevelList ll) {
   JPanel levelPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
   levelPanel.setBackground(Color.white);
   String labelString =
       "[ "
           + ll.getMinAsString()
           + " to "
           + ll.getMaxAsString()
           + " ] Increment by "
           + ll.getIncrementAsString();
   JLabel levelLabel = new JLabel(labelString);
   levelLabel.setForeground(ARMY_GREEN);
   add(levelLabel);
   return levelPanel;
 }
 private JPanel getStringLevels(EnumLevelList ll) {
   JPanel levelPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
   levelPanel.setBackground(Color.white);
   levelPanel.setForeground(Color.black);
   Iterator i = ll.getLevelIterator();
   JLabel levelLabel = null;
   EnumLevel level = null;
   while (i != null && i.hasNext()) {
     level = (EnumLevel) i.next();
     levelLabel = new JLabel(level.toString() + "  | ");
     levelLabel.setForeground(ARMY_GREEN);
     levelPanel.add(levelLabel);
     // levelPanel.add(new JSeparator(SwingConstants.HORIZONTAL));
   }
   return levelPanel;
 }