1206 |
* @param tree |
* @param tree |
1207 |
* is the JTree to install defaults for |
* is the JTree to install defaults for |
1208 |
*/ |
*/ |
1209 |
protected void installDefaults(JTree tree) |
protected void installDefaults() |
1210 |
{ |
{ |
1211 |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); |
1212 |
|
|
1326 |
public void installUI(JComponent c) |
public void installUI(JComponent c) |
1327 |
{ |
{ |
1328 |
super.installUI(c); |
super.installUI(c); |
1329 |
installDefaults((JTree) c); |
installDefaults(); |
1330 |
tree = (JTree) c; |
tree = (JTree) c; |
1331 |
|
|
1332 |
currentCellRenderer = createDefaultCellRenderer(); |
currentCellRenderer = createDefaultCellRenderer(); |
1355 |
* @param tree |
* @param tree |
1356 |
* to uninstall defaults for |
* to uninstall defaults for |
1357 |
*/ |
*/ |
1358 |
protected void uninstallDefaults(JTree tree) |
protected void uninstallDefaults() |
1359 |
{ |
{ |
1360 |
tree.setFont(null); |
tree.setFont(null); |
1361 |
tree.setForeground(null); |
tree.setForeground(null); |
1370 |
*/ |
*/ |
1371 |
public void uninstallUI(JComponent c) |
public void uninstallUI(JComponent c) |
1372 |
{ |
{ |
1373 |
uninstallDefaults((JTree) c); |
uninstallDefaults(); |
1374 |
uninstallKeyboardActions(); |
uninstallKeyboardActions(); |
1375 |
uninstallListeners(); |
uninstallListeners(); |
1376 |
tree = null; |
tree = null; |