Skip to content

Commit 53b6618

Browse files
authored
feat: ui enhancements (#34)
Enlarged text fields --------- Signed-off-by: Rajdeep Roy Chowdhury <rrajdeeproychowdhury@gmail.com>
1 parent 77d17a3 commit 53b6618

2 files changed

Lines changed: 345 additions & 346 deletions

File tree

Lines changed: 174 additions & 204 deletions
Original file line numberDiff line numberDiff line change
@@ -1,204 +1,174 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<?import javafx.scene.control.Button?>
4-
<?import javafx.scene.control.ComboBox?>
5-
<?import javafx.scene.control.DatePicker?>
6-
<?import javafx.scene.control.Label?>
7-
<?import javafx.scene.control.TableColumn?>
8-
<?import javafx.scene.control.TableView?>
9-
<?import javafx.scene.control.TextField?>
10-
<?import javafx.scene.image.Image?>
11-
<?import javafx.scene.image.ImageView?>
12-
<?import javafx.scene.layout.AnchorPane?>
13-
<?import javafx.scene.text.Font?>
14-
<?import javafx.scene.text.Text?>
15-
16-
<AnchorPane prefHeight="554.0" prefWidth="972.0" style="-fx-background-color: #f1ff59;"
17-
xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1"
18-
fx:controller="openconsignment.controller.entry.collection.AddCollectionController">
19-
<Text layoutX="58.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Buyer"
20-
wrappingWidth="99.90430307388306">
21-
<font>
22-
<Font size="16.0"/>
23-
</font>
24-
</Text>
25-
<Text layoutX="41.0" layoutY="151.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Supplier"
26-
wrappingWidth="108.00000536441803">
27-
<font>
28-
<Font size="16.0"/>
29-
</font>
30-
</Text>
31-
<Text layoutX="696.0" layoutY="87.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Bill No."
32-
wrappingWidth="62.90429401397705">
33-
<font>
34-
<Font size="16.0"/>
35-
</font>
36-
</Text>
37-
<Text layoutX="663.0" layoutY="177.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Bill Amount"
38-
wrappingWidth="96.90429401397705">
39-
<font>
40-
<Font size="16.0"/>
41-
</font>
42-
</Text>
43-
<Text layoutX="688.0" layoutY="135.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Bill Date"
44-
wrappingWidth="79.90429401397705">
45-
<font>
46-
<Font size="16.0"/>
47-
</font>
48-
</Text>
49-
<TextField fx:id="voucher_no_field" layoutX="119.0" layoutY="22.0" prefHeight="37.0" prefWidth="115.0">
50-
<font>
51-
<Font size="16.0"/>
52-
</font>
53-
</TextField>
54-
<DatePicker fx:id="voucher_date_field" editable="false" layoutX="791.0" layoutY="20.0" prefHeight="30.0"
55-
prefWidth="146.0"/>
56-
<ComboBox fx:id="buyer_name" layoutX="116.0" layoutY="76.0" onAction="#fillBillNoCombo" prefHeight="30.0"
57-
prefWidth="395.0"/>
58-
<ComboBox fx:id="bill_no_combo" layoutX="793.0" layoutY="64.0" onAction="#fetchData" prefHeight="30.0"
59-
prefWidth="145.0"/>
60-
<TextField fx:id="supplier_name" editable="false" layoutX="116.0" layoutY="126.0" prefHeight="30.0"
61-
prefWidth="395.0">
62-
<font>
63-
<Font size="16.0"/>
64-
</font>
65-
</TextField>
66-
<TextField fx:id="bill_date" editable="false" layoutX="790.0" layoutY="108.0" prefHeight="30.0" prefWidth="146.0">
67-
<font>
68-
<Font size="16.0"/>
69-
</font>
70-
</TextField>
71-
<TextField fx:id="bill_amount" editable="false" layoutX="792.0" layoutY="154.0" prefHeight="30.0" prefWidth="146.0">
72-
<font>
73-
<Font size="16.0"/>
74-
</font>
75-
</TextField>
76-
<Text layoutX="51.0" layoutY="214.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Collect Due"
77-
wrappingWidth="86.00000536441803">
78-
<font>
79-
<Font size="16.0"/>
80-
</font>
81-
</Text>
82-
<Text layoutX="387.0" layoutY="214.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DD No."
83-
wrappingWidth="63.90429966151714">
84-
<font>
85-
<Font size="16.0"/>
86-
</font>
87-
</Text>
88-
<Text layoutX="499.0" layoutY="213.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DD Date"
89-
wrappingWidth="79.90429401397728">
90-
<font>
91-
<Font size="16.0"/>
92-
</font>
93-
</Text>
94-
<Text layoutX="14.0" layoutY="42.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Voucher No."
95-
wrappingWidth="107.90430307388306">
96-
<font>
97-
<Font size="16.0"/>
98-
</font>
99-
</Text>
100-
<Text layoutX="660.0" layoutY="42.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Voucher Date"
101-
wrappingWidth="107.90430307388306">
102-
<font>
103-
<Font size="16.0"/>
104-
</font>
105-
</Text>
106-
<Text layoutX="291.0" layoutY="214.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Bank"
107-
wrappingWidth="45.90429966151714">
108-
<font>
109-
<Font size="16.0"/>
110-
</font>
111-
</Text>
112-
<Text layoutX="629.0" layoutY="516.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Total Amount"
113-
wrappingWidth="96.90429401397705">
114-
<font>
115-
<Font size="16.0"/>
116-
</font>
117-
</Text>
118-
<TextField fx:id="collection_due_field" alignment="CENTER_RIGHT" editable="false" layoutX="52.0" layoutY="233.0"
119-
prefHeight="25.0" prefWidth="73.0" text="0">
120-
<font>
121-
<Font size="16.0"/>
122-
</font>
123-
</TextField>
124-
<TextField fx:id="bank_field" layoutX="286.0" layoutY="233.0" prefHeight="25.0" prefWidth="73.0">
125-
<font>
126-
<Font size="16.0"/>
127-
</font>
128-
</TextField>
129-
<TextField fx:id="dd_no_field" layoutX="382.0" layoutY="233.0" prefHeight="30.0" prefWidth="86.0">
130-
<font>
131-
<Font size="16.0"/>
132-
</font>
133-
</TextField>
134-
<DatePicker fx:id="dd_date_field" layoutX="496.0" layoutY="232.0" prefHeight="38.0" prefWidth="130.0"/>
135-
<Button fx:id="add_collection_btn" layoutX="676.0" layoutY="212.0" mnemonicParsing="false" onAction="#addCollection"
136-
prefHeight="62.0" prefWidth="108.0" text="Add Collection"/>
137-
<Button fx:id="replace_collection_btn" layoutX="801.0" layoutY="242.0" mnemonicParsing="false"
138-
onAction="#replaceCollection" prefHeight="29.0" prefWidth="130.0" text="Replace Collection"/>
139-
<Button fx:id="delete_collection_btn" layoutX="801.0" layoutY="207.0" mnemonicParsing="false"
140-
onAction="#deleteCollection" prefHeight="29.0" prefWidth="130.0" text="Delete Collection"/>
141-
<TableView fx:id="collection_tableview" layoutX="26.0" layoutY="278.0" prefHeight="199.0" prefWidth="920.0">
142-
<columns>
143-
<TableColumn fx:id="bill_no_col" prefWidth="76.7999849319458" text="Bill No."/>
144-
<TableColumn fx:id="bill_amt_col" prefWidth="98.39999389648438" style="-fx-alignment: CENTER-RIGHT;"
145-
text="Bill Amt"/>
146-
<TableColumn fx:id="supplier_col" prefWidth="297.6000518798828" text="Supplier"/>
147-
<TableColumn fx:id="amount_collection_col" prefWidth="123.199951171875" style="-fx-alignment: CENTER-RIGHT;"
148-
text="Amt Collected"/>
149-
<TableColumn fx:id="bank_col" prefWidth="109.5999755859375" text="Bank"/>
150-
<TableColumn fx:id="dd_no_col" minWidth="5.0" prefWidth="106.4000244140625" text="DD No."/>
151-
<TableColumn fx:id="dd_date_col" prefWidth="108.0001220703125" text="DD Date"/>
152-
</columns>
153-
</TableView>
154-
<Button fx:id="save_btn" layoutX="322.0" layoutY="482.0" onAction="#saveData" prefHeight="38.0" prefWidth="126.0"
155-
text="Save">
156-
<graphic>
157-
<ImageView fitHeight="49.0" fitWidth="40.0" pickOnBounds="true" preserveRatio="true">
158-
<image>
159-
<Image url="@../../../icons/Save.png"/>
160-
</image>
161-
</ImageView>
162-
</graphic>
163-
<font>
164-
<Font size="18.0"/>
165-
</font>
166-
</Button>
167-
<Button fx:id="clear_btn" layoutX="164.0" layoutY="482.0" onAction="#clearAllFields" prefHeight="52.0"
168-
prefWidth="125.0" text="Clear">
169-
<graphic>
170-
<ImageView fitHeight="49.0" fitWidth="40.0" pickOnBounds="true" preserveRatio="true">
171-
<image>
172-
<Image url="@../../../icons/Clear.png"/>
173-
</image>
174-
</ImageView>
175-
</graphic>
176-
<font>
177-
<Font size="18.0"/>
178-
</font>
179-
</Button>
180-
<TextField fx:id="total_amount_field" alignment="CENTER_RIGHT" editable="false" layoutX="771.0" layoutY="490.0"
181-
prefHeight="30.0" prefWidth="146.0" text="0">
182-
<font>
183-
<Font size="16.0"/>
184-
</font>
185-
</TextField>
186-
<Text layoutX="164.0" layoutY="215.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Amt Collected"
187-
wrappingWidth="102.00000536441803">
188-
<font>
189-
<Font size="16.0"/>
190-
</font>
191-
</Text>
192-
<TextField fx:id="amount_collected_field" alignment="CENTER_RIGHT" layoutX="165.0" layoutY="233.0"
193-
onKeyReleased="#updateCollectionDue" prefHeight="30.0" prefWidth="97.0" text="0">
194-
<font>
195-
<Font size="16.0"/>
196-
</font>
197-
</TextField>
198-
<Label fx:id="last_voucher_field" layoutX="258.0" layoutY="26.0" prefHeight="30.0" prefWidth="310.0"
199-
text="&lt;Last Voucher&gt;">
200-
<font>
201-
<Font size="16.0"/>
202-
</font>
203-
</Label>
204-
</AnchorPane>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<?import javafx.scene.control.Button?>
4+
<?import javafx.scene.control.ComboBox?>
5+
<?import javafx.scene.control.DatePicker?>
6+
<?import javafx.scene.control.Label?>
7+
<?import javafx.scene.control.TableColumn?>
8+
<?import javafx.scene.control.TableView?>
9+
<?import javafx.scene.control.TextField?>
10+
<?import javafx.scene.image.Image?>
11+
<?import javafx.scene.image.ImageView?>
12+
<?import javafx.scene.layout.AnchorPane?>
13+
<?import javafx.scene.text.Font?>
14+
<?import javafx.scene.text.Text?>
15+
16+
<AnchorPane prefHeight="554.0" prefWidth="972.0" style="-fx-background-color: #f1ff59;" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="openconsignment.controller.entry.collection.AddCollectionController">
17+
<Text layoutX="58.0" layoutY="97.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Buyer" wrappingWidth="99.90430307388306">
18+
<font>
19+
<Font size="16.0" />
20+
</font>
21+
</Text>
22+
<Text layoutX="41.0" layoutY="151.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Supplier" wrappingWidth="108.00000536441803">
23+
<font>
24+
<Font size="16.0" />
25+
</font>
26+
</Text>
27+
<Text layoutX="696.0" layoutY="87.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Bill No." wrappingWidth="62.90429401397705">
28+
<font>
29+
<Font size="16.0" />
30+
</font>
31+
</Text>
32+
<Text layoutX="663.0" layoutY="177.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Bill Amount" wrappingWidth="96.90429401397705">
33+
<font>
34+
<Font size="16.0" />
35+
</font>
36+
</Text>
37+
<Text layoutX="688.0" layoutY="135.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Bill Date" wrappingWidth="79.90429401397705">
38+
<font>
39+
<Font size="16.0" />
40+
</font>
41+
</Text>
42+
<TextField fx:id="voucher_no_field" layoutX="119.0" layoutY="22.0" prefHeight="37.0" prefWidth="115.0">
43+
<font>
44+
<Font size="16.0" />
45+
</font>
46+
</TextField>
47+
<DatePicker fx:id="voucher_date_field" editable="false" layoutX="791.0" layoutY="20.0" prefHeight="30.0" prefWidth="146.0" />
48+
<ComboBox fx:id="buyer_name" layoutX="116.0" layoutY="76.0" onAction="#fillBillNoCombo" prefHeight="30.0" prefWidth="395.0" />
49+
<ComboBox fx:id="bill_no_combo" layoutX="793.0" layoutY="64.0" onAction="#fetchData" prefHeight="30.0" prefWidth="145.0" />
50+
<TextField fx:id="supplier_name" editable="false" layoutX="116.0" layoutY="126.0" prefHeight="30.0" prefWidth="395.0">
51+
<font>
52+
<Font size="16.0" />
53+
</font>
54+
</TextField>
55+
<TextField fx:id="bill_date" editable="false" layoutX="790.0" layoutY="108.0" prefHeight="30.0" prefWidth="146.0">
56+
<font>
57+
<Font size="16.0" />
58+
</font>
59+
</TextField>
60+
<TextField fx:id="bill_amount" editable="false" layoutX="792.0" layoutY="154.0" prefHeight="30.0" prefWidth="146.0">
61+
<font>
62+
<Font size="16.0" />
63+
</font>
64+
</TextField>
65+
<Text layoutX="51.0" layoutY="214.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Collect Due" wrappingWidth="86.00000536441803">
66+
<font>
67+
<Font size="16.0" />
68+
</font>
69+
</Text>
70+
<Text layoutX="387.0" layoutY="214.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DD No." wrappingWidth="63.90429966151714">
71+
<font>
72+
<Font size="16.0" />
73+
</font>
74+
</Text>
75+
<Text layoutX="499.0" layoutY="213.0" strokeType="OUTSIDE" strokeWidth="0.0" text="DD Date" wrappingWidth="79.90429401397728">
76+
<font>
77+
<Font size="16.0" />
78+
</font>
79+
</Text>
80+
<Text layoutX="14.0" layoutY="45.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Voucher No." wrappingWidth="107.90430307388306">
81+
<font>
82+
<Font size="16.0" />
83+
</font>
84+
</Text>
85+
<Text layoutX="660.0" layoutY="42.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Voucher Date" wrappingWidth="107.90430307388306">
86+
<font>
87+
<Font size="16.0" />
88+
</font>
89+
</Text>
90+
<Text layoutX="291.0" layoutY="214.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Bank" wrappingWidth="45.90429966151714">
91+
<font>
92+
<Font size="16.0" />
93+
</font>
94+
</Text>
95+
<Text layoutX="629.0" layoutY="516.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Total Amount" wrappingWidth="96.90429401397705">
96+
<font>
97+
<Font size="16.0" />
98+
</font>
99+
</Text>
100+
<TextField fx:id="collection_due_field" alignment="CENTER_RIGHT" editable="false" layoutX="52.0" layoutY="233.0" prefHeight="25.0" prefWidth="73.0" text="0">
101+
<font>
102+
<Font size="16.0" />
103+
</font>
104+
</TextField>
105+
<TextField fx:id="bank_field" layoutX="286.0" layoutY="233.0" prefHeight="25.0" prefWidth="73.0">
106+
<font>
107+
<Font size="16.0" />
108+
</font>
109+
</TextField>
110+
<TextField fx:id="dd_no_field" layoutX="382.0" layoutY="233.0" prefHeight="30.0" prefWidth="86.0">
111+
<font>
112+
<Font size="16.0" />
113+
</font>
114+
</TextField>
115+
<DatePicker fx:id="dd_date_field" layoutX="496.0" layoutY="232.0" prefHeight="38.0" prefWidth="130.0" />
116+
<Button fx:id="add_collection_btn" layoutX="688.0" layoutY="208.0" mnemonicParsing="false" onAction="#addCollection" prefHeight="62.0" prefWidth="108.0" text="Add Collection" />
117+
<Button fx:id="replace_collection_btn" layoutX="801.0" layoutY="242.0" mnemonicParsing="false" onAction="#replaceCollection" prefHeight="29.0" prefWidth="130.0" text="Replace Collection" />
118+
<Button fx:id="delete_collection_btn" layoutX="801.0" layoutY="207.0" mnemonicParsing="false" onAction="#deleteCollection" prefHeight="29.0" prefWidth="130.0" text="Delete Collection" />
119+
<TableView fx:id="collection_tableview" layoutX="26.0" layoutY="278.0" prefHeight="199.0" prefWidth="920.0">
120+
<columns>
121+
<TableColumn fx:id="bill_no_col" prefWidth="76.7999849319458" text="Bill No." />
122+
<TableColumn fx:id="bill_amt_col" prefWidth="98.39999389648438" style="-fx-alignment: CENTER-RIGHT;" text="Bill Amt" />
123+
<TableColumn fx:id="supplier_col" prefWidth="297.6000518798828" text="Supplier" />
124+
<TableColumn fx:id="amount_collection_col" prefWidth="123.199951171875" style="-fx-alignment: CENTER-RIGHT;" text="Amt Collected" />
125+
<TableColumn fx:id="bank_col" prefWidth="109.5999755859375" text="Bank" />
126+
<TableColumn fx:id="dd_no_col" minWidth="5.0" prefWidth="106.4000244140625" text="DD No." />
127+
<TableColumn fx:id="dd_date_col" prefWidth="108.0001220703125" text="DD Date" />
128+
</columns>
129+
</TableView>
130+
<Button fx:id="save_btn" layoutX="322.0" layoutY="482.0" onAction="#saveData" prefHeight="38.0" prefWidth="126.0" text="Save">
131+
<graphic>
132+
<ImageView fitHeight="49.0" fitWidth="40.0" pickOnBounds="true" preserveRatio="true">
133+
<image>
134+
<Image url="@../../../icons/Save.png" />
135+
</image>
136+
</ImageView>
137+
</graphic>
138+
<font>
139+
<Font size="18.0" />
140+
</font>
141+
</Button>
142+
<Button fx:id="clear_btn" layoutX="164.0" layoutY="482.0" onAction="#clearAllFields" prefHeight="52.0" prefWidth="125.0" text="Clear">
143+
<graphic>
144+
<ImageView fitHeight="49.0" fitWidth="40.0" pickOnBounds="true" preserveRatio="true">
145+
<image>
146+
<Image url="@../../../icons/Clear.png" />
147+
</image>
148+
</ImageView>
149+
</graphic>
150+
<font>
151+
<Font size="18.0" />
152+
</font>
153+
</Button>
154+
<TextField fx:id="total_amount_field" alignment="CENTER_RIGHT" editable="false" layoutX="771.0" layoutY="490.0" prefHeight="30.0" prefWidth="146.0" text="0">
155+
<font>
156+
<Font size="16.0" />
157+
</font>
158+
</TextField>
159+
<Text layoutX="164.0" layoutY="215.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Amt Collected" wrappingWidth="102.00000536441803">
160+
<font>
161+
<Font size="16.0" />
162+
</font>
163+
</Text>
164+
<TextField fx:id="amount_collected_field" alignment="CENTER_RIGHT" layoutX="165.0" layoutY="233.0" onKeyReleased="#updateCollectionDue" prefHeight="30.0" prefWidth="97.0" text="0">
165+
<font>
166+
<Font size="16.0" />
167+
</font>
168+
</TextField>
169+
<Label fx:id="last_voucher_field" layoutX="258.0" layoutY="26.0" prefHeight="30.0" prefWidth="310.0" text="&lt;Last Voucher&gt;">
170+
<font>
171+
<Font size="16.0" />
172+
</font>
173+
</Label>
174+
</AnchorPane>

0 commit comments

Comments
 (0)