Program: 11173
Project: 11173
Buggy source:
private Application(){
  frame=new JFrame("String_Node_Str");
  final SplashScreen splashScreen=new SplashScreen(frame);
  try {
    frame.setIconImage(new ImageIcon(Application.class.getResource("String_Node_Str")).getImage());
  }
 catch (  Exception e) {
  }
  if (Settings.get().isHardwareStereoEnabled())   wwd=new WorldWindowStereoGLCanvas(WorldWindowStereoGLCanvas.stereoCaps);
 else   wwd=new WorldWindowStereoGLCanvas(WorldWindowStereoGLCanvas.defaultCaps);
  Model model=new BasicModel();
  wwd.setModel(model);
  wwd.addSelectListener(new ClickAndGoSelectListener(wwd,WorldMapLayer.class));
  create3DMouse();
  createDoubleClickListener();
  CameraSmoothHack.hackCameraSmoothing(wwd.getInputHandler());
  wwd.addRenderingListener(new RenderingListener(){
    public void stageChanged(    RenderingEvent event){
      if (event.getStage() == RenderingEvent.BEFORE_BUFFER_SWAP) {
        splashScreen.dispose();
        wwd.removeRenderingListener(this);
      }
    }
  }
);
  RetrievalService rs=WorldWind.getRetrievalService();
  if (rs instanceof ExtendedRetrievalService) {
    model.getLayers().add(((ExtendedRetrievalService)rs).getLayer());
  }
  map=new WorldMapLayer();
  scalebar=new ScalebarLayer();
  compass=new CompassLayer();
  logo=GALayer.getLogoLayer();
  model.getLayers().add(map);
  model.getLayers().add(scalebar);
  model.getLayers().add(compass);
  model.getLayers().add(logo);
  ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
  JPopupMenu.setDefaultLightWeightPopupEnabled(false);
  frame.setLayout(new BorderLayout());
  frame.setBounds(Settings.get().getWindowBounds());
  if (Settings.get().isWindowMaximized()) {
    frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
  }
  JPanel panel=new JPanel(new BorderLayout());
  frame.setContentPane(panel);
  splitPane=new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,true);
  panel.add(splitPane,BorderLayout.CENTER);
  splitPane.setRightComponent(wwd);
  splitPane.setOneTouchExpandable(true);
  wwd.setMinimumSize(new Dimension(1,1));
  statusBar=new StatusBar();
  panel.add(statusBar,BorderLayout.PAGE_END);
  statusBar.setEventSource(wwd);
  statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
  layersPanel=new LayersPanel(wwd,frame);
  splitPane.setLeftComponent(layersPanel);
  loadSplitLocations();
  afterSettingsChange();
  createDialogs();
  if (LOCAL_LAYERS_ENABLED) {
    LocalLayers.init(wwd);
    layersPanel.updateLocalLayers();
    LocalLayers.get().addChangeListener(new ChangeListener(){
      public void stateChanged(      ChangeEvent e){
        layersPanel.updateLocalLayers();
      }
    }
);
  }
  frame.setJMenuBar(createMenuBar());
  addWindowListeners();
  try {
    java.awt.EventQueue.invokeAndWait(new Runnable(){
      public void run(){
        frame.setVisible(true);
      }
    }
);
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
private Application(){
  frame=new JFrame("String_Node_Str");
  final SplashScreen splashScreen=new SplashScreen(frame);
  try {
    frame.setIconImage(new ImageIcon(Application.class.getResource("String_Node_Str")).getImage());
  }
 catch (  Exception e) {
  }
  if (Settings.get().isHardwareStereoEnabled())   wwd=new WorldWindowStereoGLCanvas(WorldWindowStereoGLCanvas.stereoCaps);
 else   wwd=new WorldWindowStereoGLCanvas(WorldWindowStereoGLCanvas.defaultCaps);
  Model model=new BasicModel();
  wwd.setModel(model);
  wwd.addSelectListener(new ClickAndGoSelectListener(wwd,WorldMapLayer.class));
  create3DMouse();
  createDoubleClickListener();
  wwd.addRenderingListener(new RenderingListener(){
    public void stageChanged(    RenderingEvent event){
      if (event.getStage() == RenderingEvent.BEFORE_BUFFER_SWAP) {
        splashScreen.dispose();
        wwd.removeRenderingListener(this);
      }
    }
  }
);
  RetrievalService rs=WorldWind.getRetrievalService();
  if (rs instanceof ExtendedRetrievalService) {
    model.getLayers().add(((ExtendedRetrievalService)rs).getLayer());
  }
  map=new WorldMapLayer();
  scalebar=new ScalebarLayer();
  compass=new CompassLayer();
  logo=GALayer.getLogoLayer();
  model.getLayers().add(map);
  model.getLayers().add(scalebar);
  model.getLayers().add(compass);
  model.getLayers().add(logo);
  ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
  JPopupMenu.setDefaultLightWeightPopupEnabled(false);
  frame.setLayout(new BorderLayout());
  frame.setBounds(Settings.get().getWindowBounds());
  if (Settings.get().isWindowMaximized()) {
    frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
  }
  JPanel panel=new JPanel(new BorderLayout());
  frame.setContentPane(panel);
  splitPane=new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,true);
  panel.add(splitPane,BorderLayout.CENTER);
  splitPane.setRightComponent(wwd);
  splitPane.setOneTouchExpandable(true);
  wwd.setMinimumSize(new Dimension(1,1));
  statusBar=new StatusBar();
  panel.add(statusBar,BorderLayout.PAGE_END);
  statusBar.setEventSource(wwd);
  statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
  layersPanel=new LayersPanel(wwd,frame);
  splitPane.setLeftComponent(layersPanel);
  loadSplitLocations();
  afterSettingsChange();
  createDialogs();
  if (LOCAL_LAYERS_ENABLED) {
    LocalLayers.init(wwd);
    layersPanel.updateLocalLayers();
    LocalLayers.get().addChangeListener(new ChangeListener(){
      public void stateChanged(      ChangeEvent e){
        layersPanel.updateLocalLayers();
      }
    }
);
  }
  frame.setJMenuBar(createMenuBar());
  addWindowListeners();
  try {
    java.awt.EventQueue.invokeAndWait(new Runnable(){
      public void run(){
        frame.setVisible(true);
      }
    }
);
  }
 catch (  Exception e) {
  }
}