TAILIEUCHUNG - Intro to Java Programming phần 2

Tổng quan 1) Khai báo hộp thoại điều khiển 2) Thiết lập hộp thoại 3) Thiết lập nhãn và Đặt nó trong cách bố trí 4) Thiết lập các nút "OK" và Việc đặt nó trong cách bố trí 5) Đối phó với các nhấp chuột từ nút OK 6 ) Tạo một lớp bên trong để xử lý sự kiện hành động 7) | Intro to Java Programming - Step 1 Now you are ready to start the source modifications in the section Building the About Dialog. Once you complete these steps close the source file and clipping folder before proceeding to the next section Building the ImageButton. Back to top Previous Section Table of Contents Next Section Search I Extended Shortcut Search Tips Site Map Index The Apple Store Hot News About Apple Products Support Design Publishing Education Developer Where to Buy Home Contact Us - Developer Site Map Copyright 2000 Apple Computer Inc. All rights reserved. Building the About Dialog Technical Java Apple Developer Connection F Membership Technical Business Search Building the About Dialog File Contents Overview 1 Declare the dialog controls 2 Setting up the dialog 3 Setting up the label and placing it in the layout 4 Setting up the OK button and placing it in the layout 5 Responding to clicks from the OK button 6 Creating an inner class to handle action events 7 Registering our action listener 8 Implementing setVisible Summary Overview Building the About Dialog This file creates a dialog which is made visible when the user selects the About SlideShow. item from the Apple Menu. This class is a subclass of and registers a listener to dismiss the dialog when the OK button is pressed. This file has two methods. The first is a constructor which specifies the dialog size position creates the OK button and the label and other properties. The second is the setVisible method which is called to change the state of the dialog s visibility. Steps to Follow Step 1 - Declare the dialog controls At the top of the file we import packages we will use in this file in this case for simplicity we import the entire package and a couple classes we need for event handling and declare our about dialog class. Importing packages and classes allows us to abbreviate class names later on in the file. For instance since we imported the .

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.