forked from External/mage
Another fix for "NoSuchMethodError: mage.components.ImagePanel.<init>(Ljava/awt/image/BufferedImage;I)V"
This commit is contained in:
parent
6e82f194b9
commit
4c8122ebbb
4 changed files with 6 additions and 6 deletions
|
|
@ -17,16 +17,16 @@ public class ImagePanel extends JPanel {
|
|||
public static final int SCALED = 1;
|
||||
public static final int ACTUAL = 2;
|
||||
|
||||
private Image image;
|
||||
private BufferedImage image;
|
||||
private int style;
|
||||
private float alignmentX = 0.5f;
|
||||
private float alignmentY = 0.5f;
|
||||
|
||||
public ImagePanel(Image image) {
|
||||
public ImagePanel(BufferedImage image) {
|
||||
this(image, TILED);
|
||||
}
|
||||
|
||||
public ImagePanel(Image image, int style) {
|
||||
public ImagePanel(BufferedImage image, int style) {
|
||||
this.image = image;
|
||||
this.style = style;
|
||||
setLayout(new BorderLayout());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue