(Graphics g, int ofs, boolean sel)
| 47 | } |
| 48 | |
| 49 | public void drawItem(Graphics g, int ofs, boolean sel) { |
| 50 | int fontHeight = getFont().getHeight(); |
| 51 | |
| 52 | int oldColor = g.getColor(); |
| 53 | |
| 54 | int stringWidth = getFont().stringWidth(toString()); |
| 55 | |
| 56 | g.setColor(getColor()); |
| 57 | g.drawLine(4, fontYOfs + fontHeight + 1, stringWidth + 4, fontYOfs + fontHeight + 1); |
| 58 | |
| 59 | g.setColor(oldColor); |
| 60 | |
| 61 | super.drawItem(g, ofs, sel); |
| 62 | } |
| 63 | |
| 64 | public int getVHeight() { |
| 65 | return Math.max(super.getVHeight(), getFont().getHeight() + 3); |