This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
if (icon != null && System.getProperty("no.set.rowheight") != null) {
// mkleint just in special mode when we might get bigger sized icons.
if (icon.getHeight(null) > 16) {
icon = icon.getScaledInstance(-1, 16, Image.SCALE_DEFAULT);
}
if (icon.getIconWidth() > 0) {
--
if (icon.getIconWidth() > 24 && System.getProperty("no.set.rowheight") != null) {
ren.setIconTextGap(4);
} else if (icon.getIconWidth() > 0) {
if (firstPaint) {
// mkleint just in special mode when we might get bigger sized icons we want to disable this..
calcRowHeight(g);
if (System.getProperty("no.set.rowheight") == null) {
//This will generate a repaint, so don't bother continuing with super.paint()
//but do paint the background color so it doesn't paint gray the first time
g.setColor(getBackground());
g.fillRect(0, 0, getWidth(), getHeight());
return;
boolean activeMode = System.getProperty("no.set.rowheight") != null;
int newx = activeMode && x + image2.getWidth(null) < w ? w - image2.getWidth(null) : x;
g.drawImage(image2, x, y, null);
g.drawImage(image2, newx, y, null);