OOP2

1.xml

1
<ui>
2
    <title>Simple</title>
3
    <group name="layout" rows="1" columns="2">
4
        <widget x="1" y="1">
5
            <javax.swing.JButton name="left">
6
                <text>Left Button</text>
7
                <actie>
8
                    <method>System.out.println</method>
9
                    <param>
10
                        <type>java.lang.String</type>
11
                        <value>"Left" clicked!</value>
12
                    </param>
13
                </actie>
14
            </javax.swing.JButton>
15
        </widget>
16
        <widget x="1" y="2">
17
            <javax.swing.JButton name="right">
18
                <text>Right Button</text>
19
                <actie>
20
                    <method>System.out.println</method>
21
                    <param>
22
                        <type>java.lang.String</type>
23
                        <value>"Right" clicked!</value>
24
                    </param>
25
                </actie>
26
            </javax.swing.JButton>
27
        </widget>
28
    </group>
29
</ui>
30