/** Paint the table. After the super.paint() call, calls paintMargin() to fill * in the left edge with the appropriate color, and then calls paintExpandableSets() * to paint the property sets, which are not painted by the default painting * methods because they need to be painted across two rows. */ @Override public void paintComponent(Graphics g) { boolean includeMargin = PropUtils.shouldDrawMargin(getPropertySetModel()); getRenderer().setIncludeMargin(includeMargin); super.paintComponent(g); if (!PropUtils.noAltBg()) { paintCenterLine(g); } if (includeMargin) { paintMargin(g); } paintExpandableSets(g); lastIncludeMargin = includeMargin; }
/** Paint the table. After the super.paint() call, calls paintMargin() to fill * in the left edge with the appropriate color, and then calls paintExpandableSets() * to paint the property sets, which are not painted by the default painting * methods because they need to be painted across two rows. */ public void paintComponent (Graphics g) { boolean includeMargin = PropUtils.shouldDrawMargin (getPropertySetModel()); getRenderer().setIncludeMargin (includeMargin); super.paintComponent(g); if (!PropUtils.noAltBg()) { paintCenterLine (g); } if (includeMargin) { paintMargin (g); } paintExpandableSets (g); lastIncludeMargin = includeMargin; }
/** Paint the table. After the super.paint() call, calls paintMargin() to fill * in the left edge with the appropriate color, and then calls paintExpandableSets() * to paint the property sets, which are not painted by the default painting * methods because they need to be painted across two rows. */ public void paintComponent (Graphics g) { boolean includeMargin = PropUtils.shouldDrawMargin (getPropertySetModel()); getRenderer().setIncludeMargin (includeMargin); super.paintComponent(g); if (!PropUtils.noAltBg()) { paintCenterLine (g); } if (includeMargin) { paintMargin (g); } paintExpandableSets (g); lastIncludeMargin = includeMargin; }