@Override public void initGui(){
  super.initGui();
  target_xCoord_field=new GuiTextField(fontRendererObj,110,37,45,12);
  target_zCoord_field=new GuiTextField(fontRendererObj,110,52,45,12);
  target_yCoord_field=new GuiTextField(fontRendererObj,110,67,45,12);
  target_height_field=new GuiTextField(fontRendererObj,110,82,45,12);
  target_freq_field=new GuiTextField(fontRendererObj,110,97,45,12);
  target_freq_field.setMaxStringLength(4);
  target_xCoord_field.setMaxStringLength(6);
  target_zCoord_field.setMaxStringLength(6);
  target_yCoord_field.setMaxStringLength(3);
  target_height_field.setMaxStringLength(3);
  target_freq_field.setText(tileEntity.getFrequency() + "");
  target_height_field.setText(tileEntity.facing + "");
  if (tileEntity.getTarget() == null) {
    target_xCoord_field.setText(Math.round(tileEntity.xCoord) + "");
    target_zCoord_field.setText(Math.round(tileEntity.zCoord) + "");
    target_yCoord_field.setText("0");
  }
 else {
    target_xCoord_field.setText(Math.round(tileEntity.getTarget().xPos) + "");
    target_zCoord_field.setText(Math.round(tileEntity.getTarget().zPos) + "");
    target_yCoord_field.setText(Math.round(tileEntity.getTarget().yPos) + "");
  }
}

@ Override public void initGui ( ) { super . initGui ( ) ; target_xCoord_field = new GuiTextField ( fontRendererObj , 110 , 37 , 45 , 12 ) ; target_zCoord_field = new GuiTextField ( fontRendererObj , 110 , 52 , 45 , 12 ) ; target_yCoord_field = new GuiTextField ( fontRendererObj , 110 , 67 , 45 , 12 ) ; target_height_field = new GuiTextField ( fontRendererObj , 110 , 82 , 45 , 12 ) ; target_freq_field = new GuiTextField ( fontRendererObj , 110 , 97 , 45 , 12 ) ; target_freq_field . setMaxStringLength ( 4 ) ; target_xCoord_field . setMaxStringLength ( 6 ) ; target_zCoord_field . setMaxStringLength ( 6 ) ; target_yCoord_field . setMaxStringLength ( 3 ) ; target_height_field . setMaxStringLength ( 3 ) ; target_freq_field . setText ( tileEntity . getFrequency ( ) + "" ) ; target_height_field . setText ( tileEntity . facing + "" ) ; if ( tileEntity . getTarget ( ) == null ) { target_xCoord_field . setText ( Math . round ( tileEntity . xCoord ) + "" ) ; target_zCoord_field . setText ( Math . round ( tileEntity . zCoord ) + "" ) ; target_yCoord_field . setText ( "0" ) ; } else { target_xCoord_field . setText ( Math . round ( tileEntity . getTarget ( ) . xPos ) + "" ) ; target_zCoord_field . setText ( Math . round ( tileEntity . getTarget ( ) . zPos ) + "" ) ; target_yCoord_field . setText ( Math . round ( tileEntity . getTarget ( ) . yPos ) + "" ) ; } }
adds the buttons ( and other controls ) to the screen in question .
