Java SE 6 Features
This lab has a set of sample Java SE 6 applications you can play
around. They are provided as "Ready-to-build-and run" NetBeans
project.
Expected duration: 60 minutes
(excluding homework)
Software Needed
Before you begin, you need to install the following software on your
computer.
- Java Standard Development Kit (JDK™) version 6.0 (download)
- If you already have installed JDK 5.0, you
can skip this.
- The name of the installation file is as following (for JDK 5.0
update x)
- jdk-1_5_0_xx-windows-i586-p.exe (Windows)
- jdk-1_5_0_xx-linux-i586.bin (Linux)
- jdk-1_5_0_xx-solaris-i586.sh (Solaris x86)
- NetBeans IDE 5.5 (download)
- When you install NetBeans IDE, it will ask you which JDK
you want to use. Select the JDK 5.0.
- 1512_javase6features.zip (download)
- The zip file contains this document and the lab contents
- Download it and unzip in a directory of your choice
OS platforms you can use
- Windows
- Solaris x86, Solaris Sparc
- Linux
- Mac OS X
Change Log
Lab Exercises
Exercise 1: Build and run
"SplashTest2" sample application
In this exercise, you are going to build
and run "ready-to-build" sample application.
(1.1)
Open, build, and run "SplashTest2" sample JSP application
0. Start NetBeans IDE.
1. Open SplashTest2
NetBeans project.
- Select File->Open Project (Ctrl+Shift+O). The Open Project dialog box appears.
- Browse down to <LAB_UNZIPPED_DIRECTORY>/javase6features/samples
directory.
- Windows: If you unzipped the 1512_javase6features.zip
file under
C:\
directory, the directory to which you want
to browse down should be C:\javase6features\samples.
- Solaris/Linux: If you unzipped the 1512_javase6features.zip
file under $HOME
directory, the directory to which you want
to browse down should be $HOME/javase6features/samples.
- Select SplashTest2.
- Click Open Project Folder.
The SplashTest2
project node appears under Projects tab
window.
2. Build and run SplashTest2 project.
- Right-click SplashTest2
project and select Run Project.
- Browser gets displayed.
Summary
In this exercise, you have built
and run a ready-to-build-and-run "SplashTest2" sample
application.
return to the top
Exercise 2: Build and run
"DesktopAPIExample" sample application
In this exercise, you are going to build
and run "ready-to-build" sample application.
(2.1)
Open, build, and run "DesktopAPIExample" sample JSP application
0. Start NetBeans IDE.
1. Open DesktopAPIExample
NetBeans project.
- Select File->Open Project (Ctrl+Shift+O). The Open Project dialog box appears.
- Browse down to <LAB_UNZIPPED_DIRECTORY>/javase6features/samples
directory.
- Select DesktopAPIExample.
- Click Open Project Folder.
The DesktopAPIExample
project node appears under Projects tab
window.
2. Build and run DesktopAPIExample project.
- Right-click DesktopAPIExample
project and select Run Project.
- Browser gets displayed.
Summary
In this exercise, you have built
and run a ready-to-build-and-run "DesktopAPIExample" sample
application.
return to
the top
Exercise 3: Build and run
"SystemTrayExample" sample application
In this exercise, you are going to build
and run "ready-to-build" sample application. You will then
build the same application from scratch.
(3.1)
Open, build, and run "SystemTrayExample" sample JSP application
0. Start NetBeans IDE.
1. Open SystemTrayExample
NetBeans project.
- Select File->Open Project (Ctrl+Shift+O). The Open Project dialog box appears.
- Browse down to <LAB_UNZIPPED_DIRECTORY>/javase6features/samples
directory.
- Select SystemTrayExample.
- Click Open Project Folder.
The SystemTrayExample
project node appears under Projects tab
window.
2. Build and run SystemTrayExample project.
- Right-click SystemTrayExample
project and select Run Project.
- Browser gets displayed.
Summary
In this exercise, you have built
and run a ready-to-build-and-run "SystemTrayExample" sample
application.
return to
the top
Exercise 4: Build and run
"ModalityDemo2" sample application
In this exercise, you are going to build
and run "ready-to-build" sample application. You will then
build the same application from scratch.
(4.1)
Open, build, and run "ModalityDemo2" sample JSP application
0. Start NetBeans IDE.
1. Open ModalityDemo2
NetBeans project.
- Select File->Open Project (Ctrl+Shift+O). The Open Project dialog box appears.
- Browse down to <LAB_UNZIPPED_DIRECTORY>/javase6features/samples
directory.
- Select ModalityDemo2.
- Click Open Project Folder.
The ModalityDemo2
project node appears under Projects tab
window.
2. Build and run ModalityDemo2 project.
- Right-click ModalityDemo2
project and select Run Project.
- Browser gets displayed.
Summary
In this exercise, you have built
and run a ready-to-build-and-run "ModalityDemo2" sample
application.
return to
the top
Exercise 5: Build and run
"TableSortFilterDemo" sample application
In this exercise, you are going to build
and run "ready-to-build" sample application. You will then
build the same application from scratch.
(5.1)
Open, build, and run "TableSortFilterDemo" sample JSP application
0. Start NetBeans IDE.
1. Open TableSortFilterDemo
NetBeans project.
- Select File->Open Project (Ctrl+Shift+O). The Open Project dialog box appears.
- Browse down to <LAB_UNZIPPED_DIRECTORY>/javase6features/samples
directory.
- Select TableSortFilterDemo.
- Click Open Project Folder.
The TableSortFilterDemo
project node appears under Projects tab
window.
2. Build and run TableSortFilterDemo project.
- Right-click TableSortFilterDemo
project and select Run Project.
- Browser gets displayed.
Summary
In this exercise, you have built
and run a ready-to-build-and-run "TableSortFilterDemo" sample
application.
return to
the top
Homework
Exercise (for people
who
are taking Sang Shin's "Java EE Programming online course")
<to
be provided>