01: package examples.swingtemplate;
02:
03: import javax.swing.*;
04:
05: import net.ar.webonswing.render.templates.swing.*;
06: import net.ar.webonswing.swing.layouts.*;
07:
08: public class Test1 extends JFrame {
09: public Test1() {
10: JPanel contentPane = (JPanel) getContentPane();
11: contentPane.setLayout(new TemplateLayout(
12: new KeyPositionSwingTemplate(new TestTemplateLayout1()
13: .getContentPane())));
14:
15: contentPane.add(new JButton("hola"), "ph1");
16: contentPane.add(new JCheckBox("check1"), "ph2");
17: contentPane.add(new JRadioButton("radio1"), "ph3");
18: }
19:
20: public static void main(String[] args) {
21: Test1 test1 = new Test1();
22: test1.setVisible(true);
23: }
24: }
|