You are on page 1of 11

For this activity, just follow the provided instructions:

JTable. It used to draw a table to display data.


Constructors:
1. JTable()
2. JTable(Object[][] rows, Object[] columns)

OUTPUT:
JMenuBar, JMenu and JMenuItem
• JMenuBar class is used for displaying menubar on the frame.
• JMenu Object is used for pulling down the components of the
menu bar.
• JMenuItem Object is used for adding the labelled menu item.
OUTPUT:
JProgressBar. It is used for creating a progress bar of a task.
Constructors:
1. JProgressBar()
2. JProgressBar(int min, int max)
3. JProgressBar(int orient)
4. JProgressBar(int orient, int min, int max)
OUTPUT:

JTabbedPane. A component that lets the user switch between a group of


components by clicking on a tab with a given title and/or icon.
OUTPUT:

Adding Image to Panel


OUTPUT:

JToolBar. It provides a component that is useful for displaying commonly


used Action s or controls.
Final task: Combine all of your classes to make it like this:

I DON’T KNOW HOW IT WILL COMPILE TO JAR. I ALREADY TRY ON HOW TO


COMBINE THE ALL PROGRAM BUT STILL NOT WORKING

You might also like