Changeset 3186


Ignore:
Timestamp:
09/19/07 14:54:25 (12 years ago)
Author:
curtis
Message:

Use AWT menu bar instead of Swing menu bar to avoid Java3D heavyweight issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/apps/slim/SlimPlotter.java

    r3181 r3186  
    126126 
    127127  // menu items 
    128   private JMenuItem menuFileExit; 
    129   private JMenuItem menuViewSaveProj; 
    130   private JMenuItem menuViewLoadProj; 
     128  private MenuItem menuFileExit; 
     129  private MenuItem menuViewSaveProj; 
     130  private MenuItem menuViewLoadProj; 
    131131 
    132132  // GUI components for parameter dialog box 
     
    666666      intensityPane.add(iPlotPane); 
    667667 
    668       JMenuBar menubar = new JMenuBar(); 
    669       masterWindow.setJMenuBar(menubar); 
    670       JMenu menuFile = new JMenu("File"); 
     668      MenuBar menubar = new MenuBar(); 
     669      masterWindow.setMenuBar(menubar); 
     670      Menu menuFile = new Menu("File"); 
    671671      menubar.add(menuFile); 
    672       menuFileExit = new JMenuItem("Exit"); 
     672      menuFileExit = new MenuItem("Exit"); 
    673673      menuFileExit.addActionListener(this); 
    674674      menuFile.add(menuFileExit); 
    675675 
    676       JMenu menuView = new JMenu("View"); 
     676      Menu menuView = new Menu("View"); 
    677677      menubar.add(menuView); 
    678       menuViewSaveProj = new JMenuItem("Save projection to clipboard"); 
     678      menuViewSaveProj = new MenuItem("Save projection to clipboard"); 
    679679      menuViewSaveProj.addActionListener(this); 
    680680      menuView.add(menuViewSaveProj); 
    681681 
    682       menuViewLoadProj = new JMenuItem("Restore projection from clipboard"); 
     682      menuViewLoadProj = new MenuItem("Restore projection from clipboard"); 
    683683      menuViewLoadProj.addActionListener(this); 
    684684      menuView.add(menuViewLoadProj); 
     
    10981098          decayPlot.getProjectionControl().setSaveString(save); 
    10991099        } 
    1100         catch (VisADException exc) { exc.printStackTrace(); } 
    1101         catch (RemoteException exc) { exc.printStackTrace(); } 
     1100        catch (VisADException exc) { } 
     1101        catch (RemoteException exc) { } 
    11021102      } 
    11031103    } 
Note: See TracChangeset for help on using the changeset viewer.