static void buildTabPane(ItemPalette palette,Editor editor){
  _tabPane=new JTabbedPane();
  _tabIndex=new HashMap<String,ItemPanel>();
  ItemPanel itemPanel=new TableItemPanel(palette,"Turnout",null,PickListModel.turnoutPickModelInstance(),editor);
  itemPanel.init();
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("BeanNameTurnout"));
  _tabIndex.put("Turnout",itemPanel);
  itemPanel=new TableItemPanel(palette,"Sensor",null,PickListModel.sensorPickModelInstance(),editor);
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("BeanNameSensor"));
  _tabIndex.put("Sensor",itemPanel);
  itemPanel=new SignalHeadItemPanel(palette,"SignalHead",null,PickListModel.signalHeadPickModelInstance(),editor);
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("BeanNameSignalHead"));
  _tabIndex.put("SignalHead",itemPanel);
  itemPanel=new SignalMastItemPanel(palette,"SignalMast",null,PickListModel.signalMastPickModelInstance(),editor);
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("BeanNameSignalMast"));
  _tabIndex.put("SignalMast",itemPanel);
  itemPanel=new MemoryItemPanel(palette,"Memory",null,PickListModel.memoryPickModelInstance(),editor);
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("BeanNameMemory"));
  _tabIndex.put("Memory",itemPanel);
  itemPanel=new ReporterItemPanel(palette,"Reporter",null,PickListModel.reporterPickModelInstance(),editor);
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("BeanNameReporter"));
  _tabIndex.put("Reporter",itemPanel);
  itemPanel=new TableItemPanel(palette,"Light",null,PickListModel.lightPickModelInstance(),editor);
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("BeanNameLight"));
  _tabIndex.put("Light",itemPanel);
  itemPanel=new MultiSensorItemPanel(palette,"MultiSensor",null,PickListModel.multiSensorPickModelInstance(),editor);
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("MultiSensor"));
  _tabIndex.put("MultiSensor",itemPanel);
  ItemPanel iconPanel=new IconItemPanel(palette,"Icon",editor);
  _tabPane.add(new JScrollPane(iconPanel),Bundle.getMessage("Icon"));
  _tabIndex.put("Icon",iconPanel);
  iconPanel=new BackgroundItemPanel(palette,"Background",editor);
  _tabPane.add(new JScrollPane(iconPanel),Bundle.getMessage("Background"));
  _tabIndex.put("Background",iconPanel);
  iconPanel=new TextItemPanel(palette,"Text",editor);
  _tabPane.add(new JScrollPane(iconPanel),Bundle.getMessage("Text"));
  _tabIndex.put("Text",iconPanel);
  iconPanel=new RPSItemPanel(palette,"RPSReporter",null,editor);
  _tabPane.add(new JScrollPane(iconPanel),Bundle.getMessage("RPSReporter"));
  _tabIndex.put("RPSReporter",iconPanel);
  iconPanel=new ClockItemPanel(palette,"FastClock",editor);
  _tabPane.add(new JScrollPane(iconPanel),Bundle.getMessage("FastClock"));
  _tabIndex.put("FastClock",iconPanel);
  itemPanel=new IndicatorItemPanel(palette,"IndicatorTrack",null,editor);
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("IndicatorTrack"));
  _tabIndex.put("IndicatorTrack",itemPanel);
  itemPanel=new IndicatorTOItemPanel(palette,"IndicatorTO",null,PickListModel.turnoutPickModelInstance(),editor);
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("IndicatorTO"));
  _tabIndex.put("IndicatorTO",itemPanel);
  itemPanel=new PortalItemPanel(palette,"Portal",null,editor);
  _tabPane.add(new JScrollPane(itemPanel),Bundle.getMessage("BeanNamePortal"));
  _tabIndex.put("Portal",itemPanel);
  _tabPane.addChangeListener(palette);
}

static void buildTabPane ( ItemPalette palette , Editor editor ) { _tabPane = new JTabbedPane ( ) ; _tabIndex = new HashMap < String , ItemPanel > ( ) ; ItemPanel itemPanel = new TableItemPanel ( palette , "Turnout" , null , PickListModel . turnoutPickModelInstance ( ) , editor ) ; itemPanel . init ( ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "BeanNameTurnout" ) ) ; _tabIndex . put ( "Turnout" , itemPanel ) ; itemPanel = new TableItemPanel ( palette , "Sensor" , null , PickListModel . sensorPickModelInstance ( ) , editor ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "BeanNameSensor" ) ) ; _tabIndex . put ( "Sensor" , itemPanel ) ; itemPanel = new SignalHeadItemPanel ( palette , "SignalHead" , null , PickListModel . signalHeadPickModelInstance ( ) , editor ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "BeanNameSignalHead" ) ) ; _tabIndex . put ( "SignalHead" , itemPanel ) ; itemPanel = new SignalMastItemPanel ( palette , "SignalMast" , null , PickListModel . signalMastPickModelInstance ( ) , editor ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "BeanNameSignalMast" ) ) ; _tabIndex . put ( "SignalMast" , itemPanel ) ; itemPanel = new MemoryItemPanel ( palette , "Memory" , null , PickListModel . memoryPickModelInstance ( ) , editor ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "BeanNameMemory" ) ) ; _tabIndex . put ( "Memory" , itemPanel ) ; itemPanel = new ReporterItemPanel ( palette , "Reporter" , null , PickListModel . reporterPickModelInstance ( ) , editor ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "BeanNameReporter" ) ) ; _tabIndex . put ( "Reporter" , itemPanel ) ; itemPanel = new TableItemPanel ( palette , "Light" , null , PickListModel . lightPickModelInstance ( ) , editor ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "BeanNameLight" ) ) ; _tabIndex . put ( "Light" , itemPanel ) ; itemPanel = new MultiSensorItemPanel ( palette , "MultiSensor" , null , PickListModel . multiSensorPickModelInstance ( ) , editor ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "MultiSensor" ) ) ; _tabIndex . put ( "MultiSensor" , itemPanel ) ; ItemPanel iconPanel = new IconItemPanel ( palette , "Icon" , editor ) ; _tabPane . add ( new JScrollPane ( iconPanel ) , Bundle . getMessage ( "Icon" ) ) ; _tabIndex . put ( "Icon" , iconPanel ) ; iconPanel = new BackgroundItemPanel ( palette , "Background" , editor ) ; _tabPane . add ( new JScrollPane ( iconPanel ) , Bundle . getMessage ( "Background" ) ) ; _tabIndex . put ( "Background" , iconPanel ) ; iconPanel = new TextItemPanel ( palette , "Text" , editor ) ; _tabPane . add ( new JScrollPane ( iconPanel ) , Bundle . getMessage ( "Text" ) ) ; _tabIndex . put ( "Text" , iconPanel ) ; iconPanel = new RPSItemPanel ( palette , "RPSReporter" , null , editor ) ; _tabPane . add ( new JScrollPane ( iconPanel ) , Bundle . getMessage ( "RPSReporter" ) ) ; _tabIndex . put ( "RPSReporter" , iconPanel ) ; iconPanel = new ClockItemPanel ( palette , "FastClock" , editor ) ; _tabPane . add ( new JScrollPane ( iconPanel ) , Bundle . getMessage ( "FastClock" ) ) ; _tabIndex . put ( "FastClock" , iconPanel ) ; itemPanel = new IndicatorItemPanel ( palette , "IndicatorTrack" , null , editor ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "IndicatorTrack" ) ) ; _tabIndex . put ( "IndicatorTrack" , itemPanel ) ; itemPanel = new IndicatorTOItemPanel ( palette , "IndicatorTO" , null , PickListModel . turnoutPickModelInstance ( ) , editor ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "IndicatorTO" ) ) ; _tabIndex . put ( "IndicatorTO" , itemPanel ) ; itemPanel = new PortalItemPanel ( palette , "Portal" , null , editor ) ; _tabPane . add ( new JScrollPane ( itemPanel ) , Bundle . getMessage ( "BeanNamePortal" ) ) ; _tabIndex . put ( "Portal" , itemPanel ) ; _tabPane . addChangeListener ( palette ) ; }
add the tabs on the the control panel editor
