Changeset 183 for trunk/tests/SWT/java


Ignore:
Timestamp:
Aug 27, 2009, 6:41:16 PM (16 years ago)
Author:
lpino
Message:

Change code to test size os the group box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/SWT/java/SWT009_07.java

    r182 r183  
    3232        void initComponents() {
    3333            shell.setText("Hello World Group");
    34             shell.setSize(200, 200);   
     34            shell.setSize(290, 200);   
    3535            shell.setText("A Group Example");
    3636            final Group g = new Group(shell, SWT.SHADOW_ETCHED_IN);
    37             g.setSize(110, 75);
     37            g.setBounds(5,5,260,90);
    3838            g.setText("Options Group");
    3939            final Button b1;
     
    4141            final Button b3;
    4242            b1 = new Button(g, SWT.RADIO);
    43             b1.setBounds(10, 20, 75, 15);
    44             b1.setText("Option One");
     43            b1.setBounds(10, 25, 240, 15);
     44            b1.setText("Option One, Opcion Uno");
    4545            b2 = new Button(g, SWT.RADIO);
    46             b2.setBounds(10, 35, 75, 15);
    47             b2.setText("Option Two");
     46            b2.setBounds(10,45, 240, 15);
     47            b2.setText("Option Two, Opcion Dos");
    4848            b3 = new Button(g, SWT.RADIO);
    49             b3.setBounds(10, 50, 80, 15);
    50             b3.setText("Option Three");
    51             g.pack();
    52             g.setLocation(20, 20);
     49            b3.setBounds(10, 65, 240, 15);
     50            b3.setText("Option Three, Opcion Tres");
     51            //g.pack();
     52            //g.setLocation(20, 20);
    5353            shell.open();
    5454               
Note: See TracChangeset for help on using the changeset viewer.