Adding label and text box control to GUI

后端 未结 2 703
小鲜肉
小鲜肉 2021-01-26 13:44

I would like to know what code to insert and where to add a simple label that can just say the word \"Label\" and a input text box that I can enter a number.

pub         


        
2条回答
  •  日久生厌
    2021-01-26 14:23

    The Swing tutorial is an excellent resource for building GUIs.

    Take a look at the visual guide and click on the components you want for detailed how to guides for creating text boxes, and other items.

    http://download.oracle.com/javase/tutorial/ui/features/components.html

提交回复
热议问题