正在加载图片...
Some basic gui components Component Description JLabel jAn area where uneditable text or icons can be displayed. JTextField An area in which the user inputs data from the keyboard. The area can also display information BUtt。n An area that triggers an event when clicked CHeckbOx A GUI component that is either selected or not selected COmbo。x A drop-down list of items from which the user can make a selection by clicking an item in the list or possibly by typing into the box is七 An area where a list of items is displayed from which the user can make a selection by clicking once on any element in the list Double-clicking an element in the list generates an action event Multiple elements can be selected gig. 12.2 Some ba sic GUI components as can be placed. JPanel JA container in which compone Introduction to Java Programming, revised by Dai-kaiyuLiang,Introduction to Java Programming,revised by Dai-kaiyu 4 Some basic GUI components. Component Description JLabel An area where uneditable text or icons can be displayed. JTextField An area in which the user inputs data from the keyboard. The area can also display information. JButton An area that triggers an event when clicked. JCheckBox A GUI component that is either selected or not selected. JComboBox A drop-down list of items from which the user can make a selection by clicking an item in the list or possibly by typing into the box. JList An area where a list of items is displayed from which the user can make a selection by clicking once on any element in the list. Double-clicking an element in the list generates an action event. Multiple elements can be selected. JPanel A container in which components can be placed. Fig. 12.2 Some basic GUI c omponents
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有