(ComponentEvent event)
| 64 | |
| 65 | addComponentListener(new ComponentAdapter() { |
| 66 | public void componentResized(ComponentEvent event) { |
| 67 | // The Canvas is being resized, get the new size |
| 68 | int width = getWidth(); |
| 69 | int height = getHeight(); |
| 70 | setSize(width, height); |
| 71 | } |
| 72 | }); |
| 73 | |
| 74 | ren.SetBackground(0.0, 0.0, 0.0); |