num++;
}
add("South", p);
Panel p1 = new Panel();
p1.setLayout(new GridLayout(2,0));
Checkbox cb = new Checkbox("Change DM on entering FS");
cb.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
dmChange = ((Checkbox)e.getSource()).getState();
}
});
p1.add(cb);
// cb = new Checkbox("Exit FS on window dispose");
// cb.addItemListener(new ItemListener() {
// public void itemStateChanged(ItemEvent e) {
// setNullOnDispose = ((Checkbox)e.getSource()).getState();
// }
// });
// p1.add(cb);
CheckboxGroup cbg = new CheckboxGroup();
cb = new Checkbox("Use Frame to enter FS", cbg, true);
cb.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
useFSFrame = true;
useFSWindow = false;
useFSDialog = false;
}
});
p1.add(cb);
cb = new Checkbox("Use Window to enter FS", cbg, false);
cb.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
useFSFrame = false;
useFSWindow = true;
useFSDialog = false;
}
});
p1.add(cb);
cb = new Checkbox("Use Dialog to enter FS", cbg, false);
cb.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
useFSFrame = false;
useFSWindow = false;
useFSDialog = true;
}
});
p1.add(cb);
cb = new Checkbox("Run render loop");
cb.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
runRenderLoop = ((Checkbox)e.getSource()).getState();
}
});
p1.add(cb);
cb = new Checkbox("Use BufferStrategy in render loop");
cb.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
useBS = ((Checkbox)e.getSource()).getState();
}
});
p1.add(cb);
cb = new Checkbox("Add Children to FS window");
cb.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
addHWChildren = ((Checkbox)e.getSource()).getState();
}
});
p1.add(cb);