| Modifier and Type | Field and Description |
|---|---|
| private BufferedImage |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Dimension | getPreferredSize()
Overrides javax. If the |
| protected void | paintComponent(Graphics g)
Overrides javax. Calls the UI delegate's paint method, if the UI delegate
is non- |
| public void | |
| public void |
| image | back to summary |
|---|---|
| private BufferedImage image | |
| ImagePanel | back to summary |
|---|---|
| public ImagePanel() | |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize() Overrides javax. Doc from javax. If the
| |
| paintComponent | back to summary |
|---|---|
| protected void paintComponent(Graphics g) Overrides javax. Doc from javax. Calls the UI delegate's paint method, if the UI delegate
is non-
If you override this in a subclass you should not make permanent
changes to the passed in
The passed in
| |
| setImage | back to summary |
|---|---|
| public void setImage(BufferedImage image) | |
| setImage | back to summary |
|---|---|
| public void setImage(String file) | |