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 |
|
|
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 |
|
|
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); |
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(); |
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) |