void sizePosition(){
  JPanel posPanel=new JPanel();
  JPanel xyPanel=new JPanel();
  xyPanel.setLayout(new BoxLayout(xyPanel,BoxLayout.Y_AXIS));
  JPanel xPanel=new JPanel();
  JLabel txt=new JLabel(" X: ");
  xPositionTextSpin=getSpinner(xPos,"x position");
  xPositionTextSpin.addChangeListener(SpinnerChangeListener);
  xPanel.add(txt);
  xPanel.add(xPositionTextSpin);
  JPanel yPanel=new JPanel();
  txt=new JLabel(" Y: ");
  yPositionTextSpin=getSpinner(yPos,"y position");
  yPositionTextSpin.addChangeListener(SpinnerChangeListener);
  yPanel.add(txt);
  yPanel.add(yPositionTextSpin);
  xyPanel.add(xPanel);
  xyPanel.add(yPanel);
  JPanel sizePanel=new JPanel();
  sizePanel.setLayout(new BoxLayout(sizePanel,BoxLayout.Y_AXIS));
  JPanel widthPanel=new JPanel();
  widthSizeTextSpin=getSpinner(fixedWidth,Bundle.getMessage("width"));
  widthSizeTextSpin.addChangeListener(SpinnerChangeListener);
  txt=new JLabel(Bundle.getMessage("width") + ": ");
  widthPanel.add(txt);
  widthPanel.add(widthSizeTextSpin);
  JPanel heightPanel=new JPanel();
  heightSizeTextSpin=getSpinner(fixedHeight,Bundle.getMessage("height"));
  heightSizeTextSpin.addChangeListener(SpinnerChangeListener);
  txt=new JLabel(Bundle.getMessage("height") + ": ");
  heightPanel.add(txt);
  heightPanel.add(heightSizeTextSpin);
  sizePanel.add(widthPanel);
  sizePanel.add(heightPanel);
  posPanel.add(xyPanel);
  posPanel.add(sizePanel);
  posPanel.setLayout(new BoxLayout(posPanel,BoxLayout.Y_AXIS));
  propertiesPanel.addTab(Bundle.getMessage("SizeTabTitle"),null,posPanel,Bundle.getMessage("SizeTabTooltip"));
}

void sizePosition ( ) { JPanel posPanel = new JPanel ( ) ; JPanel xyPanel = new JPanel ( ) ; xyPanel . setLayout ( new BoxLayout ( xyPanel , BoxLayout . Y_AXIS ) ) ; JPanel xPanel = new JPanel ( ) ; JLabel txt = new JLabel ( " X: " ) ; xPositionTextSpin = getSpinner ( xPos , "x position" ) ; xPositionTextSpin . addChangeListener ( SpinnerChangeListener ) ; xPanel . add ( txt ) ; xPanel . add ( xPositionTextSpin ) ; JPanel yPanel = new JPanel ( ) ; txt = new JLabel ( " Y: " ) ; yPositionTextSpin = getSpinner ( yPos , "y position" ) ; yPositionTextSpin . addChangeListener ( SpinnerChangeListener ) ; yPanel . add ( txt ) ; yPanel . add ( yPositionTextSpin ) ; xyPanel . add ( xPanel ) ; xyPanel . add ( yPanel ) ; JPanel sizePanel = new JPanel ( ) ; sizePanel . setLayout ( new BoxLayout ( sizePanel , BoxLayout . Y_AXIS ) ) ; JPanel widthPanel = new JPanel ( ) ; widthSizeTextSpin = getSpinner ( fixedWidth , Bundle . getMessage ( "width" ) ) ; widthSizeTextSpin . addChangeListener ( SpinnerChangeListener ) ; txt = new JLabel ( Bundle . getMessage ( "width" ) + ": " ) ; widthPanel . add ( txt ) ; widthPanel . add ( widthSizeTextSpin ) ; JPanel heightPanel = new JPanel ( ) ; heightSizeTextSpin = getSpinner ( fixedHeight , Bundle . getMessage ( "height" ) ) ; heightSizeTextSpin . addChangeListener ( SpinnerChangeListener ) ; txt = new JLabel ( Bundle . getMessage ( "height" ) + ": " ) ; heightPanel . add ( txt ) ; heightPanel . add ( heightSizeTextSpin ) ; sizePanel . add ( widthPanel ) ; sizePanel . add ( heightPanel ) ; posPanel . add ( xyPanel ) ; posPanel . add ( sizePanel ) ; posPanel . setLayout ( new BoxLayout ( posPanel , BoxLayout . Y_AXIS ) ) ; propertiesPanel . addTab ( Bundle . getMessage ( "SizeTabTitle" ) , null , posPanel , Bundle . getMessage ( "SizeTabTooltip" ) ) ; }
create and fill in the size & amp ; position tab of the ui .
