Skip to content

Commit 3c391cf

Browse files
committed
UI enhancements
1 parent ab47f1c commit 3c391cf

File tree

5 files changed

+99
-82
lines changed

5 files changed

+99
-82
lines changed

src/main/java/tihwin/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void main(String[] args) {
3434
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
3535
Image img = new ImageIcon(Objects.requireNonNull(MainAppUi.class.getClassLoader().getResource("tray_icon.gif"))).getImage();
3636
frame.setIconImage(img);
37-
frame.setMinimumSize(new Dimension(700, 300));
37+
frame.setMinimumSize(new Dimension(700, 350));
3838
//frame.setResizable(false);
3939
frame.setVisible(true);
4040
}

src/main/java/tihwin/MainAppUi.form

Lines changed: 47 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="tihwin.MainAppUi">
33
<grid id="27dc6" binding="mainPanel" layout-manager="FormLayout">
44
<rowspec value="center:max(d;4px):noGrow"/>
5+
<rowspec value="top:m:grow"/>
56
<rowspec value="top:4dlu:noGrow"/>
67
<rowspec value="center:max(d;4px):noGrow"/>
78
<rowspec value="top:4dlu:noGrow"/>
@@ -10,9 +11,10 @@
1011
<rowspec value="center:max(d;4px):noGrow"/>
1112
<rowspec value="top:4dlu:noGrow"/>
1213
<rowspec value="center:max(d;4px):noGrow"/>
13-
<rowspec value="top:p:grow"/>
1414
<rowspec value="top:4dlu:noGrow"/>
1515
<rowspec value="center:max(d;4px):noGrow"/>
16+
<rowspec value="top:4dlu:noGrow"/>
17+
<rowspec value="center:max(d;1dlu):noGrow"/>
1618
<colspec value="fill:p:noGrow"/>
1719
<colspec value="left:4dlu:noGrow"/>
1820
<colspec value="fill:p:noGrow"/>
@@ -23,14 +25,14 @@
2325
<colspec value="left:4dlu:noGrow"/>
2426
<colspec value="fill:p:noGrow"/>
2527
<constraints>
26-
<xy x="0" y="0" width="729" height="288"/>
28+
<xy x="0" y="0" width="763" height="488"/>
2729
</constraints>
2830
<properties/>
2931
<border type="none"/>
3032
<children>
3133
<component id="3f7d8" class="javax.swing.JButton" binding="diskImageSelectBtn">
3234
<constraints>
33-
<grid row="2" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
35+
<grid row="3" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
3436
<forms top="0" left="5" bottom="0" right="0" defaultalign-vert="false"/>
3537
</constraints>
3638
<properties>
@@ -40,7 +42,7 @@
4042
</component>
4143
<component id="8e185" class="javax.swing.JTextField" binding="titleField">
4244
<constraints>
43-
<grid row="4" column="6" row-span="1" col-span="3" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="1" use-parent-layout="false">
45+
<grid row="5" column="6" row-span="1" col-span="3" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="1" use-parent-layout="false">
4446
<preferred-size width="150" height="-1"/>
4547
</grid>
4648
<forms top="0" left="0" bottom="0" right="5"/>
@@ -49,7 +51,7 @@
4951
</component>
5052
<component id="b32ec" class="javax.swing.JLabel" binding="destinationDirectoryLbl">
5153
<constraints>
52-
<grid row="6" column="6" row-span="1" col-span="3" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
54+
<grid row="7" column="6" row-span="1" col-span="3" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
5355
<forms/>
5456
</constraints>
5557
<properties>
@@ -58,7 +60,7 @@
5860
</component>
5961
<component id="43fa" class="javax.swing.JLabel" binding="diskImageNameLbl">
6062
<constraints>
61-
<grid row="2" column="6" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
63+
<grid row="3" column="6" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
6264
<forms/>
6365
</constraints>
6466
<properties>
@@ -67,7 +69,7 @@
6769
</component>
6870
<component id="fbb6" class="javax.swing.JButton" binding="destinationSelectBtn">
6971
<constraints>
70-
<grid row="6" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
72+
<grid row="7" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
7173
<forms top="0" left="5" bottom="0" right="0"/>
7274
</constraints>
7375
<properties>
@@ -77,7 +79,7 @@
7779
</component>
7880
<component id="ed01c" class="javax.swing.JLabel" binding="ulDestinationRoLbl">
7981
<constraints>
80-
<grid row="6" column="4" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
82+
<grid row="7" column="4" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
8183
<forms/>
8284
</constraints>
8385
<properties>
@@ -86,7 +88,7 @@
8688
</component>
8789
<component id="778d6" class="javax.swing.JLabel" binding="diskImageRoLbl">
8890
<constraints>
89-
<grid row="2" column="4" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
91+
<grid row="3" column="4" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
9092
<forms/>
9193
</constraints>
9294
<properties>
@@ -95,7 +97,7 @@
9597
</component>
9698
<component id="cbd88" class="javax.swing.JLabel" binding="titleRoLbl">
9799
<constraints>
98-
<grid row="4" column="4" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
100+
<grid row="5" column="4" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
99101
<forms/>
100102
</constraints>
101103
<properties>
@@ -104,7 +106,7 @@
104106
</component>
105107
<component id="a214f" class="javax.swing.JRadioButton" binding="CDRadioButton" default-binding="true">
106108
<constraints>
107-
<grid row="4" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
109+
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
108110
<forms/>
109111
</constraints>
110112
<properties>
@@ -113,7 +115,7 @@
113115
</component>
114116
<component id="1dd66" class="javax.swing.JRadioButton" binding="DVDRadioButton" default-binding="true">
115117
<constraints>
116-
<grid row="4" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
118+
<grid row="5" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
117119
<forms/>
118120
</constraints>
119121
<properties>
@@ -123,7 +125,7 @@
123125
</component>
124126
<component id="308a4" class="javax.swing.JButton" binding="convertBtn">
125127
<constraints>
126-
<grid row="8" column="0" row-span="1" col-span="9" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
128+
<grid row="9" column="0" row-span="1" col-span="9" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false">
127129
<minimum-size width="-1" height="50"/>
128130
</grid>
129131
<forms top="0" left="5" bottom="0" right="5"/>
@@ -133,37 +135,14 @@
133135
<text resource-bundle="locale" key="ConvertBtn"/>
134136
</properties>
135137
</component>
136-
<grid id="8b0eb" binding="statusJPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
137-
<margin top="5" left="5" bottom="5" right="5"/>
138-
<constraints>
139-
<grid row="11" column="0" row-span="1" col-span="9" vsize-policy="0" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
140-
<forms/>
141-
</constraints>
142-
<properties>
143-
<background color="-1"/>
144-
</properties>
145-
<border type="none">
146-
<color color="-4473925"/>
147-
</border>
148-
<children>
149-
<component id="2cf16" class="javax.swing.JLabel" binding="statusLbl">
150-
<constraints>
151-
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
152-
</constraints>
153-
<properties>
154-
<text resource-bundle="locale" key="WelcomeText"/>
155-
</properties>
156-
</component>
157-
</children>
158-
</grid>
159138
<component id="be17f" class="javax.swing.JProgressBar" binding="progressBar" default-binding="true">
160139
<constraints>
161-
<grid row="10" column="0" row-span="1" col-span="7" vsize-policy="0" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
162-
<forms defaultalign-horz="false"/>
140+
<grid row="11" column="0" row-span="1" col-span="9" vsize-policy="0" hsize-policy="6" anchor="1" fill="1" indent="0" use-parent-layout="false"/>
141+
<forms defaultalign-horz="false" defaultalign-vert="false"/>
163142
</constraints>
164143
<properties>
165144
<borderPainted value="false"/>
166-
<foreground color="-9251843"/>
145+
<foreground color="-26368"/>
167146
<indeterminate value="false"/>
168147
</properties>
169148
</component>
@@ -189,9 +168,12 @@
189168
</component>
190169
<component id="92f10" class="javax.swing.JComboBox" binding="ulLangComboBox" custom-create="true">
191170
<constraints>
192-
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="9" fill="1" indent="0" use-parent-layout="false"/>
171+
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="9" fill="1" indent="1" use-parent-layout="false"/>
193172
</constraints>
194-
<properties/>
173+
<properties>
174+
<background color="-9251843"/>
175+
<foreground color="-1"/>
176+
</properties>
195177
<clientProperties>
196178
<html.disable class="java.lang.Boolean" value="false"/>
197179
</clientProperties>
@@ -200,7 +182,7 @@
200182
</grid>
201183
<component id="824ea" class="javax.swing.JButton" binding="ulCfgBtn">
202184
<constraints>
203-
<grid row="2" column="8" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
185+
<grid row="3" column="8" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
204186
<forms top="0" left="0" bottom="0" right="5"/>
205187
</constraints>
206188
<properties>
@@ -211,6 +193,29 @@
211193
<text resource-bundle="locale" key="editUlCfgBtn"/>
212194
</properties>
213195
</component>
196+
<grid id="8b0eb" binding="statusJPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
197+
<margin top="5" left="5" bottom="5" right="5"/>
198+
<constraints>
199+
<grid row="13" column="0" row-span="1" col-span="9" vsize-policy="0" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
200+
<forms/>
201+
</constraints>
202+
<properties>
203+
<background color="-1"/>
204+
</properties>
205+
<border type="none">
206+
<color color="-4473925"/>
207+
</border>
208+
<children>
209+
<component id="2cf16" class="javax.swing.JLabel" binding="statusLbl">
210+
<constraints>
211+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
212+
</constraints>
213+
<properties>
214+
<text resource-bundle="locale" key="WelcomeText"/>
215+
</properties>
216+
</component>
217+
</children>
218+
</grid>
214219
</children>
215220
</grid>
216221
<buttonGroups>

0 commit comments

Comments
 (0)