| 120 | |
| 121 | |
| 122 | protected void paint(Graphics graphics) { |
| 123 | VirtualList.width = getWidth(); |
| 124 | VirtualList.height = getHeight(); |
| 125 | graphics.setColor(ColorTheme.getColor(ColorTheme.LIST_BGND)); |
| 126 | graphics.fillRect(0, 0, VirtualList.width, VirtualList.height); |
| 127 | |
| 128 | try { |
| 129 | list.paint(graphics); |
| 130 | } catch(Exception e) { |
| 131 | if (sd.roster != null) |
| 132 | sd.roster.errorLog("list.paint exception: " + e.getClass() + " in " + list.getClass()); |
| 133 | if (StaticData.Debug) |
| 134 | e.printStackTrace(); |
| 135 | } |
| 136 | if (rw != null) |
| 137 | rw.draw(graphics, VirtualList.width, VirtualList.height); |
| 138 | } |
| 139 | |
| 140 | protected final void keyPressed(int rawKeyCode) { |
| 141 | int keyCode = getKeyCode(rawKeyCode); |