Multiple CheckboxGroups?
Hello,
1)
I am new to this and I have maybe a stupid question.
I am now able to use Checkbox and CheckboxGroup, but I will like to have on my screen 2 CheckboxGroups , is this possible in the same class?
I wass able to do it with to classes but I will like to do it in one.
2)
Is it possible to give the first and second CheckboxGroup some start and end points ?
For example with setBounds(200,0,15,200) ?
If some people have a idea ?
Thank you and Best Regards,
Didier.
Here you have the code of one CheckboxGroup :
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Parametre extends Applet{
public TextField t;
public void init()
{
t = new TextField("Test",40);
add(t);
setLayout(new GridLayout(9,1));
FUNCTION();
}
public void FUNCTION()
{
t.setText("Hello");
CheckboxGroup Function = new CheckboxGroup();
add(new Checkbox("1 BYTE Scene", Function, true));
add(new Checkbox("1 BIT Confort", Function, false));
add(new Checkbox("1 BIT ON=GO / OFF=STOP", Function, false));
add(new Checkbox("1 BIT ON=STEP-UP / OFF=STEP-DOWN", Function, false));
add(new Checkbox("1 BIT Togle ON/OFF/ON", Function, false));
add(new Checkbox("4 BIT Dimmer STEP-UP / STEP-DOWN", Function, false));
add(new Checkbox("1 BIT Curtain SHORT STEP-UP / SHORT STEP-DOWN", Function, false));
add(new Checkbox("1 BIT Curtain SHORT << / SHORT >>", Function, false));
add(new Checkbox("1 BIT Curtain LONG << / LONG >>", Function, false));
}
}

