4.xml
1 |
|
2 |
<!-- Als dit voorbeeld werkt, ben je goed bezig! --> |
3 |
<title>Calc</title> |
4 |
<group name="layout" rows="1" columns="2"> |
5 |
<widget x="1" y="1"> |
6 |
<javax.swing.JTextField name="number"> |
7 |
<text>0</text> |
8 |
</javax.swing.JTextField> |
9 |
</widget> |
10 |
<widget x="1" y="2"> |
11 |
<group name="functions" rows="4" columns="1"> |
12 |
<widget x="1" y="1"> |
13 |
<javax.swing.JButton name="sin"> |
14 |
<text>sin</text> |
15 |
<actie> |
16 |
<method>java.lang.Math.sin</method> |
17 |
<param> |
18 |
<type>java.lang.Double</type> |
19 |
<value> |
20 |
<property name="getText" widget="number" /> |
21 |
<value> |
22 |
</param> |
23 |
</actie> |
24 |
</javax.swing.JButton> |
25 |
</widget> |
26 |
<widget x="2" y="1"> |
27 |
<javax.swing.JButton name="cos"> |
28 |
<text>cos</text> |
29 |
<actie> |
30 |
<method>java.lang.Math.cos</method> |
31 |
<param> |
32 |
<type>java.lang.Double</type> |
33 |
<value> |
34 |
<property name="getText" widget="number" /> |
35 |
<value> |
36 |
</param> |
37 |
</actie> |
38 |
</javax.swing.JButton> |
39 |
</widget> |
40 |
<widget x="3" y="1"> |
41 |
<javax.swing.JButton name="tan"> |
42 |
<text>tan</text> |
43 |
<actie> |
44 |
<method>java.lang.Math.tan</method> |
45 |
<param> |
46 |
<type>java.lang.Double</type> |
47 |
<value> |
48 |
<property name="getText" widget="number" /> |
49 |
<value> |
50 |
</param> |
51 |
</actie> |
52 |
</javax.swing.JButton> |
53 |
</widget> |
54 |
</group> |
55 |
</widget> |
56 |
</group> |
57 |
</ui> |
58 |