antialisaingCombobox.setSelectedIndex(antiAliasing == 0 ? 0 : Math.round((float) (Math.log(antiAliasing) / Math.log(2))));
fpsCheckbox.setSelected(NbPreferences.forModule(VizConfig.class).getBoolean(VizConfig.SHOW_FPS, VizConfig.DEFAULT_SHOW_FPS));
//Lights
Lighting lighting = new Lighting();
Light ambiant = lighting.getLights().get(0);
Light light1 = lighting.getLights().get(1);
Light light2 = lighting.getLights().get(2);
Light light3 = lighting.getLights().get(3);
//Ambiant
((JColorButton) ambientAmbiantColorButton).setColor(ColorUtils.decode(ambiant.getAmbiant()));
((JColorButton) ambientDiffuseColorButton).setColor(ColorUtils.decode(ambiant.getDiffuse()));
((JColorButton) ambientSpecularColorButton).setColor(ColorUtils.decode(ambiant.getSpecular()));
//Light1
light1Checkbox.setSelected(light1.isEnabled());
((JColorButton) light1AmbiantColorButton).setColor(ColorUtils.decode(light1.getAmbiant()));
((JColorButton) light1DiffuseColorButton).setColor(ColorUtils.decode(light1.getDiffuse()));
((JColorButton) light1SpecularColorButton).setColor(ColorUtils.decode(light1.getSpecular()));
light1XPosition.setValue(Float.valueOf(light1.getDirection()[0]));
light1YPosition.setValue(Float.valueOf(light1.getDirection()[1]));
light1ZPosition.setValue(Float.valueOf(light1.getDirection()[2]));
//Light2
light2Checkbox.setSelected(light2.isEnabled());
((JColorButton) light2AmbiantColorButton).setColor(ColorUtils.decode(light2.getAmbiant()));
((JColorButton) light2DiffuseColorButton).setColor(ColorUtils.decode(light2.getDiffuse()));
((JColorButton) light2SpecularColorButton).setColor(ColorUtils.decode(light2.getSpecular()));
light2XPosition.setValue(Float.valueOf(light2.getDirection()[0]));
light2YPosition.setValue(Float.valueOf(light2.getDirection()[1]));
light2ZPosition.setValue(Float.valueOf(light2.getDirection()[2]));
//Light3
light3Checkbox.setSelected(light3.isEnabled());
((JColorButton) light3AmbiantColorButton).setColor(ColorUtils.decode(light3.getAmbiant()));
((JColorButton) light3DiffuseColorButton).setColor(ColorUtils.decode(light3.getDiffuse()));
((JColorButton) light3SpecularColorButton).setColor(ColorUtils.decode(light3.getSpecular()));
light3XPosition.setValue(Float.valueOf(light3.getDirection()[0]));
light3YPosition.setValue(Float.valueOf(light3.getDirection()[1]));
light3ZPosition.setValue(Float.valueOf(light3.getDirection()[2]));
//OpenGLInfo
GraphicalConfiguration gc = VizController.getInstance().getDrawable().getGraphicalConfiguration();
if (gc != null) {
openInfoText.setText(gc.getVendor() + "\n" + gc.getRenderer() + "\nOpenGL2 " + gc.getVersionStr());