Tuesday, January 26, 2016

Java awt Exercise 1: Introduction

Java Exercise Introduction Open NetBean7.2, choose File/New Project… In New Java Application windows: Project name: name of students ... thumbnail 1 summary
Java Exercise Introduction
Open NetBean7.2, choose File/New Project…
In New Java Application windows:
Project name: name of students (no blank, no special letter)
Create Main Class: change name class to ImageViewer

In Project tab, right click to package, choose New/Java class.., as following figure

In New Java Class window, input ImageViewerFrame in Class Name:

Code for class ImageViewerFrame as followed:


Open class ImageViewer, add codes:

Finish: Build and Run Program

No comments

Post a Comment