two useful methods

This commit is contained in:
Dmitry Avdeev
2011-03-29 10:43:17 +04:00
parent c3edbcdf47
commit 5eecc462d5
@@ -435,10 +435,18 @@ public class UIUtil {
return isUnderGTKLookAndFeel() ? getTreeTextBackground() : UIManager.getColor("List.background");
}
public static Color getListBackground(boolean isSelected) {
return isSelected ? getListSelectionBackground() : getListBackground();
}
public static Color getListForeground() {
return UIManager.getColor("List.foreground");
}
public static Color getListForeground(boolean isSelected) {
return isSelected ? getListSelectionForeground() : getListForeground();
}
public static Color getPanelBackground() {
return UIManager.getColor("Panel.background");
}