/[classpath]/classpath/javax/swing/plaf/basic/BasicFileChooserUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicFileChooserUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2.2.4 by gnu_andrew, Sat Sep 10 15:31:51 2005 UTC revision 1.2.2.5 by gnu_andrew, Tue Sep 20 18:46:33 2005 UTC
# Line 277  public class BasicFileChooserUI extends Line 277  public class BasicFileChooserUI extends
277       */       */
278      public Boolean isHidden(File f)      public Boolean isHidden(File f)
279      {      {
280        return new Boolean(filechooser.getFileSystemView().isHiddenFile(f));        return Boolean.valueOf(filechooser.getFileSystemView().isHiddenFile(f));
281      }      }
282    }    }
283    
# Line 945  public class BasicFileChooserUI extends Line 945  public class BasicFileChooserUI extends
945    File currDir = null;    File currDir = null;
946    
947    JPanel bottomPanel;    JPanel bottomPanel;
948      
949    /** DOCUMENT ME! */    /** DOCUMENT ME! */
950    JPanel closePanel;    JPanel closePanel;
951    
# Line 997  public class BasicFileChooserUI extends Line 997  public class BasicFileChooserUI extends
997      }      }
998    }    }
999    
   /**  
    * DOCUMENT ME!  
    */  
   public class CBLabelRenderer extends JLabel implements ListCellRenderer  
   {  
     /**  
      * Creates a new CBLabelRenderer object.  
      */  
     public CBLabelRenderer()  
     {  
       super();  
       setOpaque(true);  
     }  
   
     /**  
      * DOCUMENT ME!  
      *  
      * @param list DOCUMENT ME!  
      * @param value DOCUMENT ME!  
      * @param index DOCUMENT ME!  
      * @param isSelected DOCUMENT ME!  
      * @param cellHasFocus DOCUMENT ME!  
      *  
      * @return DOCUMENT ME!  
      */  
     public Component getListCellRendererComponent(JList list, Object value,  
                                                   int index,  
                                                   boolean isSelected,  
                                                   boolean cellHasFocus)  
     {  
       setHorizontalAlignment(SwingConstants.LEFT);  
       setIcon(directoryIcon);  
       setText(value.toString());  
       setForeground(Color.BLACK);  
       setBackground(Color.WHITE);  
   
       return this;  
     }  
   }  
   
1000    void closeDialog()    void closeDialog()
1001    {    {
1002      Window owner = SwingUtilities.windowForComponent(filechooser);      Window owner = SwingUtilities.windowForComponent(filechooser);
# Line 1210  public class BasicFileChooserUI extends Line 1170  public class BasicFileChooserUI extends
1170      JLabel look = new JLabel("Look In:");      JLabel look = new JLabel("Look In:");
1171    
1172      parents = new JComboBox();      parents = new JComboBox();
1173      parents.setRenderer(new CBLabelRenderer());      parents.setRenderer(new BasicComboBoxRenderer());
1174      boxEntries();      boxEntries();
1175      look.setLabelFor(parents);      look.setLabelFor(parents);
1176      JPanel parentsPanel = new JPanel();      JPanel parentsPanel = new JPanel();
# Line 1242  public class BasicFileChooserUI extends Line 1202  public class BasicFileChooserUI extends
1202      buttonPanel.add(detailsViewButton);      buttonPanel.add(detailsViewButton);
1203    
1204      JPanel topPanel = new JPanel();      JPanel topPanel = new JPanel();
1205      topPanel.setLayout(new java.awt.FlowLayout());      parentsPanel.add(buttonPanel);
1206        topPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 0, 0));
1207      topPanel.add(parentsPanel);      topPanel.add(parentsPanel);
     topPanel.add(buttonPanel);  
1208    
1209      accessoryPanel = new JPanel();      accessoryPanel = new JPanel();
1210      if (filechooser.getAccessory() != null)      if (filechooser.getAccessory() != null)

Legend:
Removed from v.1.2.2.4  
changed lines
  Added in v.1.2.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26