public JToolBar getControlPanel() {
     JToolBar toolbar = super.getControlPanel();
     toolbar.add(getRunButton());
     final JComboBox combobox = new JComboBox();
     final BasicComboBoxRenderer renderer = new BasicComboBoxRenderer();
     TWaverUtil.setHorizontalAlignment(renderer, TUIManager.getString("table.alignment.enumtype"));
     combobox.setRenderer(new ListCellRenderer()
     {
       public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
         String text = null;
         Icon icon = null;
         Color background = null;
         Color foreground = null;
         if ((value instanceof EnumType)) {
           EnumType enumType = (EnumType)value;
           text = enumType.toString();
           icon = enumType.getIcon();
           background = enumType.getBackground();
           foreground = enumType.getForeground();
           if ((background != null) && (isSelected)) {
             background = background.darker();
           }
         }
         renderer.getListCellRendererComponent(list, text, index, isSelected, cellHasFocus);
         renderer.setIcon(icon);
         renderer.setToolTipText(text);
         if (foreground != null) {
           renderer.setForeground(foreground);
         }
         if (background != null) {
           renderer.setBackground(background);
         }
         return renderer;
       }
     });
     combobox.setPreferredSize(new Dimension(combobox.getPreferredSize().width, 20));
     final Object[] gradientTypes = EnumTypeManager.getInstance().getEnumTypes("twaver.gradient");
     final int length = gradientTypes.length;
     for (int i = 0; i < length; i++) {
       EnumType enumeration = (EnumType)gradientTypes[i];
       combobox.addItem(enumeration);
       if (10 == ((Integer)enumeration.getValue()).intValue()) {
         combobox.setSelectedIndex(i);
       }
     }
     combobox.addItemListener(new ItemListener()
     {
       public void itemStateChanged(ItemEvent e) {
         Object object = combobox.getSelectedItem();
         for (int i = 0; i < length; i++) {
           EnumType enumeration = (EnumType)gradientTypes[i];
           if (enumeration == object)
             ClockChart.this.chart.setRingGradientFactory(((Integer)enumeration.getValue()).intValue());
         }
       }
     });
     toolbar.add(combobox);
     return toolbar;
   }