209 |
} |
} |
210 |
else |
else |
211 |
{ |
{ |
212 |
String text = comboBox.getModel().getSelectedItem().toString(); |
String text = ""; |
213 |
|
Object selected = comboBox.getModel().getSelectedItem(); |
214 |
|
if (selected != null) |
215 |
|
text = selected.toString(); |
216 |
Rectangle bounds = comboBox.getBounds(); |
Rectangle bounds = comboBox.getBounds(); |
217 |
Rectangle innerArea = SwingUtilities.calculateInnerArea(this, null); |
Rectangle innerArea = SwingUtilities.calculateInnerArea(this, null); |
218 |
if (comboBox.hasFocus()) |
if (comboBox.hasFocus()) |