1. Trang chủ
  2. » Giáo Dục - Đào Tạo

J2 s p0101

2 118 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 2
Dung lượng 37,14 KB

Nội dung

LAB221 Assignment Type: Code: LOC: Slot(s): Short Assignment iph1572109031 60 Title Create a program display data in a tree form Background Context NA Program Specifications - Use swing library to create tree example, not use drag and drop, must write code to generate all controls Main functions described as below: Function details: Add new node: allow user add new node at run time Remove an existing node: allow user remove an existing node at run time Expectation of User interface: The screen should be as: Guidelines - Use JFrame, JTextFiled, JTree in swing library Create controls at run time and define listener for them, for example: create text filed JTextField text; text= new JTextField("Add new node here and press enter"); text.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent ae){ addTextFieldValue(); } }); add(text,"North");

Ngày đăng: 26/10/2019, 23:57

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w