[chore] Formatting
This commit is contained in:
parent
115caa0218
commit
8bcee58b98
3 changed files with 131 additions and 128 deletions
6
pom.xml
6
pom.xml
|
@ -1,6 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -39,7 +40,8 @@
|
||||||
</archive>
|
</archive>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins> <resources>
|
</plugins>
|
||||||
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<directory>src/main/resources-filtered</directory>
|
<directory>src/main/resources-filtered</directory>
|
||||||
<filtering>true</filtering>
|
<filtering>true</filtering>
|
||||||
|
|
|
@ -97,7 +97,8 @@ public class App {
|
||||||
} else {
|
} else {
|
||||||
BufferedImage img = ImageIO.read(is);
|
BufferedImage img = ImageIO.read(is);
|
||||||
ImageIcon icon = new ImageIcon(img);
|
ImageIcon icon = new ImageIcon(img);
|
||||||
ImageIcon resized = new ImageIcon(getScaledImage(icon.getImage(), WIDTH, HEIGHT));
|
ImageIcon resized = new ImageIcon(
|
||||||
|
getScaledImage(icon.getImage(), WIDTH, HEIGHT));
|
||||||
|
|
||||||
container.setIcon(resized);
|
container.setIcon(resized);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue