question: @ Override public void initGui ( ) { Keyboard . enableRepeatEvents ( true ) ; buttonList . add ( new GuiButton ( 0 , width / 2 - 100 , 60 , "Change Key" ) ) ; buttonList . add ( new GuiButton ( 1 , width / 2 - 100 , height / 4 + 72 , "Save" ) ) ; buttonList . add ( new GuiButton ( 2 , width / 2 - 100 , height / 4 + 96 , "Cancel" ) ) ; commandBox = new GuiTextField ( 0 , fontRendererObj , width / 2 - 100 , 100 , 200 , 20 ) ; commandBox . setMaxStringLength ( 65536 ) ; commandBox . setFocused ( true ) ; if ( entry != null ) { String cmds = "" ; for ( String cmd : entry . getValue ( ) ) { if ( ! cmds . isEmpty ( ) ) cmds += ";" ; cmds += cmd ; } commandBox . setText ( cmds ) ; } }
target:  Adds the buttons (and other controls) to the screen in question.