private JComponent createStyleTypeSelector(){
  int pad=SBoxLayout.COMMON_PADDING;
  JComponent styleBox=SBoxLayout.createContainer(SBoxLayout.VERTICAL,pad);
  JComponent definedStylesHBox=SBoxLayout.createContainer(SBoxLayout.HORIZONTAL,pad);
  JLabel selectorLabel=new JLabel("Client style:");
  selectorLabel.setName("defined");
  definedStylesHBox.add(selectorLabel);
  JComponent selector=createStyleSelector();
  selector.setName("defined");
  definedStylesHBox.add(selector);
  definedStylesHBox.setToolTipText("<html>The style used to draw the controls in the game client." + "<p>This affects the look only, and will not change the behavior of the game.</html>");
  styleBox.add(definedStylesHBox);
  return styleBox;
}

private JComponent createStyleTypeSelector ( ) { int pad = SBoxLayout . COMMON_PADDING ; JComponent styleBox = SBoxLayout . createContainer ( SBoxLayout . VERTICAL , pad ) ; JComponent definedStylesHBox = SBoxLayout . createContainer ( SBoxLayout . HORIZONTAL , pad ) ; JLabel selectorLabel = new JLabel ( "Client style:" ) ; selectorLabel . setName ( "defined" ) ; definedStylesHBox . add ( selectorLabel ) ; JComponent selector = createStyleSelector ( ) ; selector . setName ( "defined" ) ; definedStylesHBox . add ( selector ) ; definedStylesHBox . setToolTipText ( "<html>The style used to draw the controls in the game client." + "<p>This affects the look only, and will not change the behavior of the game.</html>" ) ; styleBox . add ( definedStylesHBox ) ; return styleBox ; }
create selector for choosing between defined and custom styles .
