TAILIEUCHUNG - Introduction to Java: 9 Pick Me

Tham khảo tài liệu 'introduction to java: 9 pick me', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 9 In this chapter Choice Lists Checkbox CheckboxGroup ItemSelectable Pick Me Three AWT components let you present a list of choices to users Choice List and Checkbox. All three components implement the ItemSelectable interface . These components are comparable to selection mechanisms in modern GUIs so most readers will be able to learn them easily but I ll point out some special enhancements that they provide. Choice and List are similar both offer a list of choices for the user to select. Choice provides a pull-down list that offers one selection at a time whereas List is a scrollable list that allows a user to make one or multiple selections. From a design standpoint which you choose depends at least partially on screen real estate if you want the user to select from a large group of alternatives Choice requires the least space List requires somewhat more while Checkbox requires the most. Choice is the only component in this group that does not allow multiple selections. A List allows multiple or single selection because each Checkbox is a separate component checkboxes inherently allow multiple selection. In order to create a list of mutually exclusive checkboxes in which only one box can be selected at a time commonly known as radio buttons you can put several checkboxes together into a CheckboxGroup which is discussed at the end of this chapter. Choice The Choice component provides pop-up pull-down lists. It is the equivalent of Motif s OptionMenu or Windows MFC s ComboBox. Java departs from the MFC world. With the Choice component you can provide a short list of choices to the user while taking up the space of a single item on the screen. When the component is selected the complete list of available choices appears on the 328 Choice 329 screen. After the user has selected an option the list is removed from the screen and the selected item is displayed. Selecting any item automatically deselects the previous selection. Component .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.