void (float xStart, float xEnd, float y, boolean rounded) { Shape border = getBorderShape(xStart, y, xEnd - xStart, myLineHeight, 1, rounded); if (border != null) { Object old = myGraphics.getRenderingHint(RenderingHints.KEY_ANTIALIASING); myGraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); myGraphics.fill(border); myGraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, old); } }