Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Lecture Software construction - Lab 8: Java programming with SWING GUI builder
tailieunhanh - Lecture Software construction - Lab 8: Java programming with SWING GUI builder
In this chapter, the following content will be discussed: JButton, JLabel; JTextField, JTextArea; JCheckBox, JRadioButton; ButtonGroup; icon/imageicon; JScrollPane; JFileChooser; JColorChooser; JMenuItem; JCheckBoxMenuItem/JRadioButtonMenuItem; JComboBox. | Software Construction LAB 08 Java Programming with SWING GUI Builder JButton, JLabel The most common component— a button is a clickable onscreen region that the user interacts with to perform a single command A text label is simply a string of text displayed on screen in a graphical program. Labels often give infor- mation or describe other components public JButton(String text) public JLabel(String text) Creates a new button / label with the given string as its text. public String getText() Returns the text showing on the button / label. public void setText(String text) Sets button / label's text to be the given string. JTextField, JTextArea A text field is like a label, except that the text in it can be edited and modified by the user. Text fields are commonly used for user input, where the user types information in the field and the program reads it A text area is a multi-line text field public JTextField(int columns) public JTextArea(int lines, int columns) Creates a | Software Construction LAB 08 Java Programming with SWING GUI Builder JButton, JLabel The most common component— a button is a clickable onscreen region that the user interacts with to perform a single command A text label is simply a string of text displayed on screen in a graphical program. Labels often give infor- mation or describe other components public JButton(String text) public JLabel(String text) Creates a new button / label with the given string as its text. public String getText() Returns the text showing on the button / label. public void setText(String text) Sets button / label's text to be the given string. JTextField, JTextArea A text field is like a label, except that the text in it can be edited and modified by the user. Text fields are commonly used for user input, where the user types information in the field and the program reads it A text area is a multi-line text field public JTextField(int columns) public JTextArea(int lines, int columns) Creates a new text field that is the given number of columns (letters) wide. public String getText() Returns the text currently in the field. public void setText(String text) Sets field's text to be the given string. A check box is a toggleable button with two states: checked and unchecked A radio button is a button that can be selected; usually part of a group of mutually-exclusive radio buttons (1 selectable at a time) public JCheckBox / JRadioButton(String text) public JCheckBox(String text, boolean isChecked) Creates checked/unchecked check box with given text. public boolean isSelected() Returns true if check box is checked. public void setSelected(boolean selected) Sets box to be checked/unchecked. JCheckBox, JRadioButton ButtonGroup A logical group of radio buttons that ensures that only one is selected at a time public ButtonGroup() public void add(JRadioButton button) The ButtonGroup is not a graphical component, just a logical group; the RadioButtons themselves are added
Thúy Diễm
76
19
ppt
Báo lỗi
Trùng lắp nội dung
Văn hóa đồi trụy
Phản động
Bản quyền
File lỗi
Khác
Upload
Tải xuống
đang nạp các trang xem trước
Bấm vào đây để xem trước nội dung
Tải xuống
TÀI LIỆU LIÊN QUAN
Lecture Software construction - Lecture 21: Software change, evolution and maintenance
13
86
0
Lecture Software construction - Lecture 21: Software change, evolution and maintenance
13
55
3
Lecture Software construction - Lecture 1: Introduction to software construction
13
65
0
Lecture Software construction - Lecture 1: Introduction to software construction
19
47
3
Lecture Software construction - Lecture 16: Software design patterns
41
79
0
Lecture Software construction - Lecture 22: Software change, evolution and maintenance - Part II
21
65
0
Lecture Software construction - Lecture 18: Software testing
14
77
0
Lecture Software construction - Lecture 19: Software testing (part 2)
17
61
0
Lecture Software construction - Lecture 20: Software quality
13
81
0
Lecture Software construction - Lecture 16: Software design patterns
16
55
3
TÀI LIỆU XEM NHIỀU
Một Case Về Hematology (1)
8
461992
55
Giới thiệu :Lập trình mã nguồn mở
14
23361
68
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
11036
533
Câu hỏi và đáp án bài tập tình huống Quản trị học
14
10250
453
Phân tích và làm rõ ý kiến sau: “Bài thơ Tự tình II vừa nói lên bi kịch duyên phận vừa cho thấy khát vọng sống, khát vọng hạnh phúc của Hồ Xuân Hương”
3
9594
106
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8472
1141
Tiểu luận: Nội dung tư tưởng Hồ Chí Minh về đạo đức
16
8314
423
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7904
2240
Đề tài: Dự án kinh doanh thời trang quần áo nữ
17
6900
257
Giáo trình Tư tưởng Hồ Chí Minh - Mạch Quang Thắng (Dành cho bậc ĐH - Không chuyên ngành Lý luận chính trị)
152
6349
1538
TỪ KHÓA LIÊN QUAN
Kỹ thuật lập trình
Software construction
Handbook Software construction
Object oriented design
Software design
Object oriented design
Class diagrams
Software change
Software evolution
Software design patterns
Design patterns
Maintenance echniques
Maintenance management
Software testing
Test phases
White box testing
Strategy derives test data
Software quality
Extreme testing
Requirements documentation
Use cases
Use case analysis
Action events
GUI programming
Object orientation
Message passing
Class variables
User interface design
User interaction
Usability engineering
Named associations
TÀI LIỆU MỚI ĐĂNG
THE ANTHROPOLOGY OF ONLINE COMMUNITIES BY Samuel M.Wilson and Leighton C. Peterson
19
165
0
03-06-2024
Truyện kiếm hiệp - Duy ngã độc tôn phần 5/7
1
108
0
03-06-2024
Giáo án điện tử tiểu học môn lịch sử: Cách mạng mùa thu
39
125
0
03-06-2024
Giáo trình toán ứng dụng trong tin học part 5
28
148
3
03-06-2024
Báo cáo khoa học: X-ray crystallographic and enzymatic analyses of shikimate dehydrogenase from Staphylococcus epidermidis
15
94
0
03-06-2024
Báo cáo nghiên cứu khoa học " Đại hội XVI thông qua điều lệ Đảng cộng sản Trung Quốc những sửa đổi bổ sung mới "
4
123
0
03-06-2024
Chủ đề 3 : SỰ CÂN BẰNG CỦA VẬT RẮN (4 tiết)
9
150
0
03-06-2024
CUỘC KHÁNG CHIẾN CHỐNG THỰC DÂN PHÁP KẾT THÚC (1953 - 1954)_5
11
103
0
03-06-2024
Những loại nước uống làm răng xỉn màu
4
97
0
03-06-2024
Cắt tóc ngắn cá tính như người nổi tiếng
8
102
0
03-06-2024
TÀI LIỆU HOT
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7904
2240
Giáo trình Tư tưởng Hồ Chí Minh - Mạch Quang Thắng (Dành cho bậc ĐH - Không chuyên ngành Lý luận chính trị)
152
6349
1538
Ebook Chào con ba mẹ đã sẵn sàng
112
3897
1281
Ebook Tuyển tập đề bài và bài văn nghị luận xã hội: Phần 1
62
5515
1149
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8472
1141
Giáo trình Văn hóa kinh doanh - PGS.TS. Dương Thị Liễu
561
3585
658
Giáo trình Sinh lí học trẻ em: Phần 1 - TS Lê Thanh Vân
122
3787
570
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
11036
533
Giáo trình Pháp luật đại cương: Phần 1 - NXB ĐH Sư Phạm
274
4230
527
Bài tập nhóm quản lý dự án: Dự án xây dựng quán cafe
35
4239
483
crossorigin="anonymous">
Đã 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.