Move images to res/.
这个提交包含在:
父节点
701a94784e
当前提交
eb174d379d
共有 3 个文件被更改,包括 2 次插入 和 2 次删除
|
之前 宽度: | 高度: | 大小: 3.5 KiB 之后 宽度: | 高度: | 大小: 3.5 KiB |
|
之前 宽度: | 高度: | 大小: 3.2 KiB 之后 宽度: | 高度: | 大小: 3.2 KiB |
|
|
@ -62,9 +62,9 @@ public class MapZoomControls {
|
||||||
public MapZoomControls(Component component, final int defaultZoom, final int minZoom, final int maxZoom)
|
public MapZoomControls(Component component, final int defaultZoom, final int minZoom, final int maxZoom)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|
||||||
zoomIn = ImageIO.read(new File("zoomIn.png")).getScaledInstance(DEFAULT_HEIGHT, DEFAULT_HEIGHT,
|
zoomIn = ImageIO.read(new File("res/zoomIn.png")).getScaledInstance(DEFAULT_HEIGHT, DEFAULT_HEIGHT,
|
||||||
Image.SCALE_SMOOTH);
|
Image.SCALE_SMOOTH);
|
||||||
zoomOut = ImageIO.read(new File("zoomOut.png")).getScaledInstance(DEFAULT_HEIGHT, DEFAULT_HEIGHT,
|
zoomOut = ImageIO.read(new File("res/zoomOut.png")).getScaledInstance(DEFAULT_HEIGHT, DEFAULT_HEIGHT,
|
||||||
Image.SCALE_SMOOTH);
|
Image.SCALE_SMOOTH);
|
||||||
|
|
||||||
this.currentLevel = defaultZoom;
|
this.currentLevel = defaultZoom;
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用