mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
mavenization
This commit is contained in:
@@ -285,7 +285,7 @@ public class Freeway3x3_03 extends AbstractTransparentComponent<Void> implements
|
||||
if (svgDiagram == null) {
|
||||
try {
|
||||
byte[] data =
|
||||
IOUtils.toByteArray(Freeway3x3_03.class.getResourceAsStream("freeway_3x3-03.svg"));
|
||||
IOUtils.toByteArray(Freeway3x3_03.class.getResourceAsStream("/freeway_3x3-03.svg"));
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(data);
|
||||
SVGUniverse universe = new SVGUniverse();
|
||||
URI url = universe.loadSVG(bis,
|
||||
|
||||
@@ -66,7 +66,7 @@ public class Image extends AbstractTransparentComponent<Void> {
|
||||
private Orientation orientation;
|
||||
|
||||
static {
|
||||
String name = "image.png";
|
||||
String name = "/image.png";
|
||||
java.net.URL imgURL = Image.class.getResource(name);
|
||||
if (imgURL != null) {
|
||||
ICON = new ImageIcon(imgURL, name);
|
||||
@@ -88,7 +88,7 @@ public class Image extends AbstractTransparentComponent<Void> {
|
||||
|
||||
public Image() {
|
||||
try {
|
||||
data = IOUtils.toByteArray(Image.class.getResourceAsStream("image.png"));
|
||||
data = IOUtils.toByteArray(Image.class.getResourceAsStream("/image.png"));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ public class SVGImage extends AbstractTransparentComponent<Void> {
|
||||
|
||||
public SVGImage() {
|
||||
try {
|
||||
data = IOUtils.toByteArray(SVGImage.class.getResourceAsStream("diylc.svg"));
|
||||
data = IOUtils.toByteArray(SVGImage.class.getResourceAsStream("/diylc.svg"));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Reference in New Issue
Block a user