if (c instanceof JComboBox) {
JComboBox cb = (JComboBox) c;
// note. in the future this should be replaced with a call
// to BasicLookAndFeel.getUIOfType()
if (cb.getUI() instanceof WindowsComboBoxUI) {
WindowsComboBoxUI wcb = (WindowsComboBoxUI) cb.getUI();
// state = wcb.getXPComboBoxState(cb);
}
}
lineColor = getColor(c, part, state, prop, Color.black);
super.paintBorder(c, g, x, y, width, height);