Changeset 3821


Ignore:
Timestamp:
03/14/08 13:28:25 (12 years ago)
Author:
curtis
Message:

Fix up Notes a little.

Location:
trunk/loci/ome/notes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/ome/notes/Notes.java

    r3624 r3821  
    6565  private JMenuBar menubar; 
    6666 
     67  /** Menu item for saving data. */ 
     68  private JMenuItem saveFile; 
     69 
    6770  /** Main viewing area. */ 
    6871  private JTabbedPane tabPane; 
     
    186189    currentTemplate = t; 
    187190 
    188     if (tabPane != null) getContentPane().remove(tabPane); 
    189     tabPane = new JTabbedPane(); 
    190     getContentPane().add(tabPane); 
     191    tabPane.removeAll(); 
    191192 
    192193    // retrieve defined GUI parameters 
     
    324325      } 
    325326    } 
     327    saveFile.setEnabled(enable); 
    326328  } 
    327329 
     
    508510 
    509511    JPanel contentPane = new JPanel(); 
     512    contentPane.setLayout(new BorderLayout()); 
     513    setContentPane(contentPane); 
    510514 
    511515    // set up the menu bar 
     
    525529    file.add(openFile); 
    526530 
    527     JMenuItem saveFile = new JMenuItem("Save"); 
     531    saveFile = new JMenuItem("Save"); 
    528532    saveFile.setActionCommand("save"); 
    529533    saveFile.addActionListener(this); 
     
    546550    menubar.add(view); 
    547551 
     552    setJMenuBar(menubar); 
     553 
    548554    // add the status bar 
    549555    progress = new JProgressBar(0, 1); 
    550556    progress.setStringPainted(true); 
    551     menubar.add(progress); 
    552  
    553     setJMenuBar(menubar); 
     557    contentPane.add(progress, BorderLayout.SOUTH); 
    554558 
    555559    // provide a place to show metadata 
    556  
    557560    tabPane = new JTabbedPane(); 
    558     contentPane.add(tabPane); 
     561    contentPane.add(tabPane, BorderLayout.CENTER); 
    559562  } 
    560563 
  • trunk/loci/ome/notes/Template.java

    r3624 r3821  
    6060  /** Default background color (white). */ 
    6161  private static final int[] DEFAULT_BACKGROUND_COLOR = new int[] { 
    62     80, 80, 80}; 
     62    255, 255, 255}; 
    6363 
    6464  // -- Fields -- 
Note: See TracChangeset for help on using the changeset viewer.