wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

JAVA NETBEANS GUI

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What is NetBeans IDE primarily used for?

a)

Database management only

b)

Integrated Development Environment for Java programming

c)

Web browsing and internet security

d)

Graphics design and animation

2.

Which of the following panels contains GUI components that can be added to a JFrame?

a)

NAVIGATOR

b)

PALETTE

c)

OUTPUT

d)

FILES

3.

How do you change the title of a JFrame in NetBeans?

a)

Modify the title property in the Properties window

b)

Right-click on the JFrame and select Change Title

c)

Double-click on the JFrame's title bar

d)

Use the setTitle() method in the code only

4.

What is the purpose of the "Properties" window in NetBeans?

a)

To display system information

b)

To modify attributes of selected components

c)

To show program execution statistics

d)

To list all available Java classes

5.

Which keyboard shortcut is commonly used to run a Java program in NetBeans?

a)

CTRL + S

b)

ALT + F4

c)

F6

d)

F5

6.

What happens when you press Shift+F6 in NetBeans?

a)

It runs the current file

b)

It builds the entire project

c)

It opens the debugging panel

d)

It opens the properties window

7.

How do you create a new JFrame form in NetBeans?

a)

File → New File → Java → JFrame Form

b)

Edit → Insert → Java GUI → JFrame

c)

View → Add → JFrame

d)

Tools → Java → New JFrame

8.

Where can you find the Properties window in NetBeans by default?

a)

Top of the screen

b)

Right side of the screen

c)

Bottom of the screen

d)

Left side of the screen

9.

How can you add a button to a JFrame in NetBeans?

a)

Type the code manually in the source editor

b)

Drag and drop a button from the Palette to the JFrame

c)

Use the Insert menu and select Button

d)

Right-click on the JFrame and select Add Button

10.

How do you access the toolbox in NetBeans?

a)

View → Toolbox

b)

Window → IDE Tools

c)

Tools → Show Toolbox

d)

Window → Palette