switch (logLevel) { case TN5250jLogger.OFF: intOFF.setSelected(true); break; case TN5250jLogger.DEBUG: intDEBUG.setSelected(true); break; case TN5250jLogger.INFO: intINFO.setSelected(true); break; case TN5250jLogger.WARN: intWARN.setSelected(true); break; case TN5250jLogger.ERROR: intERROR.setSelected(true); break; case TN5250jLogger.FATAL: intFATAL.setSelected(true); break; default: intINFO.setSelected(true); }
	private void createLoggingPanel(){		loggingPanel.setLayout(new GridBagLayout());		// levelPanel		levelPanel = new JPanel(new GridBagLayout());		TitledBorder tb = BorderFactory.createTitledBorder(				LangTool.getString("logscr.Level"));		tb.setTitleJustification(TitledBorder.CENTER);		levelPanel.setBorder(tb);		// Create the Checkboxes		// The translation section is called ...		// #Logging Literals		// Search and translate into the message property-files		ButtonGroup levelGroup = new ButtonGroup();		intOFF = new JRadioButton(LangTool.getString("logscr.Off"));		intOFF.setSelected(true);		intOFF.addItemListener(new java.awt.event.ItemListener() {			public void itemStateChanged(ItemEvent e) {				intOFF_itemStateChanged(e);			}		});		intDEBUG = new JRadioButton(LangTool.getString("logscr.Debug"));		intINFO = new JRadioButton(LangTool.getString("logscr.Info"));		intWARN = new JRadioButton(LangTool.getString("logscr.Warn"));		intERROR = new JRadioButton(LangTool.getString("logscr.Error"));		intFATAL = new JRadioButton(LangTool.getString("logscr.Fatal"));		// add the interface options to the group control		levelGroup.add(intOFF);		levelGroup.add(intDEBUG);		levelGroup.add(intINFO);		levelGroup.add(intWARN);		levelGroup.add(intERROR);		levelGroup.add(intFATAL);		//		 add the levelPanel components		gbc = new GridBagConstraints();		gbc.gridx = 0;		gbc.gridy = 0;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(20, 20, 5, 20);		levelPanel.add(intOFF, gbc);		gbc.gridx = 0;		gbc.gridy = 1;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 20, 5, 20);		levelPanel.add(intDEBUG, gbc);		gbc.gridx = 0;		gbc.gridy = 2;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 20, 5, 20);		levelPanel.add(intINFO, gbc);		gbc.gridx = 0;		gbc.gridy = 3;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 20, 5, 20);		levelPanel.add(intWARN, gbc);		gbc.gridx = 0;		gbc.gridy = 4;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 20, 5, 20);		levelPanel.add(intERROR, gbc);		gbc.gridx = 0;		gbc.gridy = 5;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 20, 20, 20);		levelPanel.add(intFATAL, gbc);				appenderPanel = new JPanel(new GridBagLayout());		tb = BorderFactory.createTitledBorder(				LangTool.getString("logscr.Appender"));		tb.setTitleJustification(TitledBorder.CENTER);		appenderPanel.setBorder(tb);				ButtonGroup appenderGroup = new ButtonGroup();		intConsole = new JRadioButton(LangTool.getString("logscr.Console"));		intConsole.setSelected(true);		intConsole.setEnabled(false);		intConsole.addItemListener(new java.awt.event.ItemListener() {			public void itemStateChanged(ItemEvent e) {				intConsole_itemStateChanged(e);			}		});		intFile = new JRadioButton(LangTool.getString("logscr.File"));		intFile.setEnabled(false);		intBoth = new JRadioButton(LangTool.getString("logscr.Both"));		intBoth.setEnabled(false);				appenderGroup.add(intConsole);		appenderGroup.add(intFile);		appenderGroup.add(intBoth);				gbc.gridx = 0;		gbc.gridy = 0;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(20, 20, 5, 20);		appenderPanel.add(intConsole, gbc);		gbc.gridx = 0;		gbc.gridy = 1;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 20, 5, 20);		appenderPanel.add(intFile, gbc);		gbc.gridx = 0;		gbc.gridy = 2;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(5, 20, 20, 20);		appenderPanel.add(intBoth, gbc);				// add the pannels to the mainpanel		gbc.gridx = 0;		gbc.gridy = 0;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(10, 10, 10, 20);		loggingPanel.add(levelPanel, gbc);		gbc.gridx = 1;		gbc.gridy = 0;		gbc.anchor = GridBagConstraints.WEST;		gbc.insets = new Insets(10, 20, 10, 10);		loggingPanel.add(appenderPanel, gbc);	}