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 static final String TITLE = "Tengwar Typewriter";
|
||||
public static final String ICON_PATH = "resources/icon.png";
|
||||
|
||||
public static void main(String[] args){
|
||||
JFrame f = new JFrame(TITLE);
|
||||
f.setIconImage(Toolkit.getDefaultToolkit().createImage(ClassLoader.getSystemResource(ICON_PATH)));
|
||||
f.setContentPane(new Window().getMainPanel());
|
||||
f.pack();
|
||||
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">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
||||
<xy x="20" y="20" width="786" height="400"/>
|
||||
<xy x="20" y="20" width="786" height="461"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<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"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<label value="<-"/>
|
||||
<text value="<-"/>
|
||||
<icon value="resources/toTengwar.png"/>
|
||||
<label value=""/>
|
||||
<text value=""/>
|
||||
<toolTipText value="Translate to tengwar"/>
|
||||
</properties>
|
||||
</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"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<label value="->"/>
|
||||
<text value="->"/>
|
||||
<icon value="resources/toEnglish.png"/>
|
||||
<label value=""/>
|
||||
<text value=""/>
|
||||
<toolTipText value="Translate to english"/>
|
||||
</properties>
|
||||
</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"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<label value="Clear"/>
|
||||
<text value="Clear"/>
|
||||
<icon value="resources/clear.png"/>
|
||||
<label value=""/>
|
||||
<text value=""/>
|
||||
</properties>
|
||||
</component>
|
||||
</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