Changeset 3870


Ignore:
Timestamp:
04/02/08 13:50:28 (12 years ago)
Author:
curtis
Message:

Fix Java 1.4 compile errors.

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

Legend:

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

    r3821 r3870  
    192192 
    193193    // retrieve defined GUI parameters 
    194     setPreferredSize(new Dimension(currentTemplate.getDefaultWidth(), 
     194    setSize(new Dimension(currentTemplate.getDefaultWidth(), 
    195195      currentTemplate.getDefaultHeight())); 
    196196 
  • trunk/loci/ome/notes/editor/PictureTransferHandler.java

    r3015 r3870  
    5252        for (int i=0; i<cs.length; i++) { 
    5353          Component cc = (Component) cs[i].getClass().newInstance(); 
    54           if (!(cc instanceof JLabel)) { 
    55             cc.setPreferredSize(new Dimension(64, 25)); 
     54          if (cc instanceof JComponent && !(cc instanceof JLabel)) { 
     55            ((JComponent) cc).setPreferredSize(new Dimension(64, 25)); 
    5656          } 
    5757          newPanel.add(cc); 
  • trunk/loci/ome/notes/editor/TemplateEditor.java

    r3015 r3870  
    198198 
    199199    setContentPane(contentPane); 
    200     setPreferredSize(new Dimension(768, 768)); 
    201     pack(); 
     200    setSize(new Dimension(768, 768)); 
    202201    setDefaultCloseOperation(DISPOSE_ON_CLOSE); 
    203202    setVisible(true); 
Note: See TracChangeset for help on using the changeset viewer.