I have an empty window... how do I...

1) How do I add text on the window?

2) How do I add text entry boxes and buttons? And how do I set the text in the box at the time of the button press to a variable?

thanks