Added icons to the main window and buttons.
This commit is contained in:
parent
8200aeb7b0
commit
5e2d7f5800
|
@ -13,9 +13,11 @@ import java.awt.*;
|
||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
public static final String TITLE = "Tengwar Typewriter";
|
public static final String TITLE = "Tengwar Typewriter";
|
||||||
|
public static final String ICON_PATH = "resources/icon.png";
|
||||||
|
|
||||||
public static void main(String[] args){
|
public static void main(String[] args){
|
||||||
JFrame f = new JFrame(TITLE);
|
JFrame f = new JFrame(TITLE);
|
||||||
|
f.setIconImage(Toolkit.getDefaultToolkit().createImage(ClassLoader.getSystemResource(ICON_PATH)));
|
||||||
f.setContentPane(new Window().getMainPanel());
|
f.setContentPane(new Window().getMainPanel());
|
||||||
f.pack();
|
f.pack();
|
||||||
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<grid id="27dc6" binding="mainPanel" custom-create="true" layout-manager="GridLayoutManager" row-count="1" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
<grid id="27dc6" binding="mainPanel" custom-create="true" layout-manager="GridLayoutManager" row-count="1" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
<margin top="0" left="0" bottom="0" right="0"/>
|
<margin top="0" left="0" bottom="0" right="0"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<xy x="20" y="20" width="786" height="400"/>
|
<xy x="20" y="20" width="786" height="461"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
<preferredSize width="640" height="480"/>
|
<preferredSize width="640" height="480"/>
|
||||||
|
@ -140,8 +140,9 @@
|
||||||
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="1" anchor="2" fill="1" indent="0" use-parent-layout="false"/>
|
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="1" anchor="2" fill="1" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
<label value="<-"/>
|
<icon value="resources/toTengwar.png"/>
|
||||||
<text value="<-"/>
|
<label value=""/>
|
||||||
|
<text value=""/>
|
||||||
<toolTipText value="Translate to tengwar"/>
|
<toolTipText value="Translate to tengwar"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
|
@ -150,8 +151,9 @@
|
||||||
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="1" anchor="1" fill="1" indent="0" use-parent-layout="false"/>
|
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="1" anchor="1" fill="1" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
<label value="->"/>
|
<icon value="resources/toEnglish.png"/>
|
||||||
<text value="->"/>
|
<label value=""/>
|
||||||
|
<text value=""/>
|
||||||
<toolTipText value="Translate to english"/>
|
<toolTipText value="Translate to english"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
|
@ -169,8 +171,9 @@
|
||||||
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="1" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="1" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
<label value="Clear"/>
|
<icon value="resources/clear.png"/>
|
||||||
<text value="Clear"/>
|
<label value=""/>
|
||||||
|
<text value=""/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
</children>
|
</children>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 396 B |
Binary file not shown.
After Width: | Height: | Size: 354 B |
Binary file not shown.
After Width: | Height: | Size: 353 B |
Loading…
Reference in New Issue