Sau khi tạo một frame bằng câu lệnh Frame f = new Frame() và tạo menu bar bằng câu lệnh MenuBar mb = new MenuBar(), làm thế nào để gắn MenuBar tên mb vào f

Sau khi tạo một frame bằng câu lệnh Frame f = new Frame() và tạo menu bar bằng câu lệnh MenuBar mb = new MenuBar(), làm thế nào để gắn MenuBar tên mb vào f

A. f.add(mb)

B. f.setMenu(mb)

C. f.addMenu(mb)

D. f.setMenuBar(mb)

Hướng dẫn

Chọn D là đáp án đúng

 

Thư viện tài liệu12 Tháng bảy, 2023 @ 2:44 chiều

Đánh giá chủ đề này
How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site