void (Component c, Graphics g, int x, int y, int width, int height) { Color oldColor = g.getColor(); g.setColor(getLineColor()); if (myMode == FeedbackTreeLayer.INSERT_BEFORE) { g.fillRect(x, y, width, thickness); g.fillRect(x, y, thickness, 2 * thickness); g.fillRect(x + width - thickness, y, thickness, 2 * thickness); } else { g.fillRect(x, y + height - thickness, width, thickness); g.fillRect(x, y + height - 2 * thickness, thickness, 2 * thickness); g.fillRect(x + width - thickness, y + height - 2 * thickness, thickness, 2 * thickness); } g.setColor(oldColor); }