The document provides information on using the JCreator integrated development environment (IDE) to create Java applications and applets. It describes the key features of JCreator's graphical user interface and how to create, compile, and run projects. It also outlines how to create a basic Java applet project template and view it in the applet viewer. Instructions are provided on adding files to projects and opening existing project workspaces.
PHP is an interpreted programming language which was initially developed to enable the
creation of dynamic web pages. It is mainly used in the development of web applications
and is executed on the server, although it has now evolved into a general purpose scriptinglanguage
and is even being used to develop desktop applications.
PHP is an interpreted programming language which was initially developed to enable the
creation of dynamic web pages. It is mainly used in the development of web applications
and is executed on the server, although it has now evolved into a general purpose scriptinglanguage
and is even being used to develop desktop applications.
In this chaper we will learn how to change the BackColor property of an object
Understand Visual Basic 2010 code statement formatsand see how IntelliSense can be used to enter code statements.We will discuss the Visual Basic programming languge syntax and write coding statements. We will also see how to correct coding errors in Visual Basic 2010.
Correct errors in Visual Basic 2010 code. We will learn how to print code and how to prepare an Event Planning Document.
An overview of VB 2010 programing. What is a program? What is the role of the developer? Event-driven programs that have a GUI. Explanation of input, processing, output, and data storage. Basic arithmetic and logice operations are examined, as well as .Net 4.0 Framework, classes, libraries, and surveys the types of VB 2010 applications.
In this chaper we will learn how to change the BackColor property of an object
Understand Visual Basic 2010 code statement formatsand see how IntelliSense can be used to enter code statements.We will discuss the Visual Basic programming languge syntax and write coding statements. We will also see how to correct coding errors in Visual Basic 2010.
Correct errors in Visual Basic 2010 code. We will learn how to print code and how to prepare an Event Planning Document.
An overview of VB 2010 programing. What is a program? What is the role of the developer? Event-driven programs that have a GUI. Explanation of input, processing, output, and data storage. Basic arithmetic and logice operations are examined, as well as .Net 4.0 Framework, classes, libraries, and surveys the types of VB 2010 applications.
Module Six Assignment Guidelines and Rubric.htmlOverviewMa.docxroushhsiu
Module Six Assignment Guidelines and Rubric.html
Overview
Many Java programs that you create will receive and process user input. In order to ensure that user input is accurate, you will need to use input validation and exception handling. For example, if you ask for a zip code, you want to ensure the user inputs a five-digit number. In this activity, you are given “buggy” code for a paint program that calculates the number of cans of paint required to paint a wall, given the wall’s height and width. You will need to debug the code and improve it by adding code to validate user input and handle exceptions.
Prompt
For this assignment, you will complete the paint program by debugging the original code and adding code that validates user input and handles exceptions. Use the Uploading Files to Eclipse and the Downloading Files From Eclipse tutorials to help you with this project.DebuggingOpen the Virtual Lab by clicking on the link in the Virtual Lab Access module. Then open your IDE. Upload the Paint1.zip folder and review the code for the Paint1.java file.Find and fix the three errors in the given code.Use the input values below to test your program. If you found and fixed all errors, your output should exactly match what is below.
TIP: When you run your program in Eclipse, it will prompt you to enter input in the Console window. If you cannot find this window, go to Window, then Show View, then Console.
Input Validation and Exception HandlingReview the code, looking for the two code blocks where user input is required.Implement a do-while loop in both blocks of code to ensure that input is valid and any exceptions are handled.
TIP: Consider using a try-catch block for exception handling, but it is not required.Use the two sample invalid inputs below to test your program. Your program should respond to each by prompting the user to enter valid input. This should continue to loop until valid input is received.
THINK: Why is 0 invalid input for this problem? What is the user being asked to input?
Guidelines for Submission
Attach your completed Paint1.java file to the assignment submission page.
Module Six Assignment RubricCriteriaProficient (100%)Needs Improvement (75%)Not Evident (0%)ValueDebuggingDebugs a class so that no errors remain and calculations work correctlyMeets some “Proficient” criteria, but with errors or exclusions such as one or two remaining bugsDoes not attempt criterion30Input Validation and Exception HandlingAdds loops to validate all user input and handle exceptions so that code passes all test casesMeets most “Proficient” criteria, but with errors; areas for improvement may include ability to handle all test casesDoes not attempt criterion70Total:100%
course_documents/Uploading Files to Eclipse Tutorial.pdf
Uploading Files to Eclipse
This tutorial will guide you through the process of uploading a project into Eclipse via the STEM Lab.
1. Open the STEM Lab and select the Launch button for the Java Program ...
• Create a new ADF Skin and check Skin values being used
• Change the page background and font family
• Update the look and feel for table headers and links
• Change the pane body and shape of tabs
• Implement dynamic skin change
To understand the basic features and functions to create and debug a project in CCS v3.3
To get familar with CCS v3.3
More in-depth explanations of Code Composer Studio’s various features .
Ex: Breakpoints,watch window, single stepping, memory etc..,
Finally, you will able to work with CCS v3.3
For more classes visit
www.snaptutorial.com
Lab 1 of 7: Getting Started (Your First C++ Programs)
Lab Overview - Scenario/Summary
Welcome to Programming with C++. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the actions of compiling and executing a C++ program.
1. Using JCreator
JCreator is an integrated development environment (IDE). An IDE vides a
workspace that allows for editing, compiling, and running of source code.
The JCreator IDE has a graphical user interface, which makes it easy to
learn and use.
The JCreator IDE can be used to create Java applets, console applications,
and Swing applications. JCreator maintains each applet and application as
a project. Projects are created in a workspace environment, which consists
of several windows:
. The File View window displays the folders and files associated
with the project workspace.
The Package View window displays the classes associated with
the project workspace.
The code editor window is used to type and edit Java and HTML
code.
The Output window displays Java program output, build errors,
a task list, and debug output.
FileView
window
PackageView
window
—code editor
window
2. To start JCreator, double-click on the Desktop Icon or select Start - All Programs - JCreator
JCreator. When JCreator is started, if an existing workspace is open, it is important to select File Close
Workspace before creating a new project because a workspace can contain more than one project.
Compiling and Running a Program
In JCreator, a Java applet or application must be compiled before it is run. Compiling automatically saves
the program file and converts the Java source code to bytecode. Select Build — Compile Project or click the
Compile Project ( ) button on the toolbar to compile the program. If the program compiles successfully,
the message "Process completed." will appear in the Build Output window. Next, select Build Execute
Project or click the Execute Project (la - button on the toolbar to run the program and display the
program output in a window.
Java applets can be viewed in a website. Applets are created in Unit 4. JCreator contains a Basic Java Applet
template that can be modified to easily create Java Applets. JCreator also contains an Applet Viewer that is
used to view applets as they will appear on a web page. If the Basic Java Applet template is not modified,
it will appear similar to the window below when it is compiled and run in JCreator:
JCreator Basic Java Applet template displayed in the
JCreator Applet Viewer
To create a Java Applet, select File New - Project and then select Basic
Java Applet from the Project Wizard dialog box. Select Next to display the
second Project Wizard dialog box. In the Name box, type a descriptive
applet name, verify that the project paths are correct in the Location, Source
3. Path, and Output Path boxes. If the project paths are not
correct, click beside the corresponding box and select the
appropriate path from the Select Directory dialog box.
Select Finish to create the project workspace, folders, and
files.
A Basic Java application template automatically
generates a .java file and an .htm file. To create an
applet, first modify and compile the .java file. Select File -
Execute Project to view the applet in the JCreator Applet
Viewer. Next, modify the .htm file so that the applet is
appropriately placed in the HTML document. The applet
can then be viewed in a web browser.
Review: Welcome
START 'CREATOR
CREATE A NEW PROJECT
a. Select File - New Project. The Project Wizard dialog box is displayed.
b. In the Project Wizard dialog box, select Basic Java Applet:
Select Next. The second Project Wizard dialog box is displayed.
In the Name box, type Welcome:
4. e. Verify that the project paths are correct in the Location, Source Path, and Output Path
boxes. If the project paths are not correct, click beside the corresponding box and
select the appropriate path from the Select Directory dialog box.
f. Select Create new workspace, if it is not already selected.
g. Select Finish. The File View window displays the folders and files associated with the
Basic Java Applet template.
h. Click it to expand the two project folders:
i. Double-click Welcome.java to display the Java template file in the code editor
window.
EDIT TEMPLATE SOURCE CODE
a. In line 6, change @author to your name.
5. b. In line 19, change "Welcome to Java!!" to This
change "50, 60" to 100, 100:
is my first Java Applet! ! and
COMPILE THE JAVA SOURCE CODE
Select Build - Compile Project. The Java source code is saved and "Process completed."
is displayed in the Build Output window.
VIEW THE APPLET IN JCREATOR VIEWER
a. Select Build - Execute Project. The applet is displayed in the JCreator Applet
Viewer.
b. Close the Applet Viewer window.
OPEN AND EDIT THE WELCOME.HTM FILE
a. In the File View window, double-click Welcome. htm to display the HTML template
file in the code editor window.
b.Change <BODY BGCOLOR="000000"> to <BODY BGC0L0R="006400">.
c.Change the width to 400.
d. Change the height to 200.
e. Select File -* Save. The Welcome. htm file is saved.
QUIT JCREATOR
VIEW THE APPLET IN A BROWSER
6. NOTES : Project files for a console application will include
the Java source code (.java),
the Java bytecode (.class),
the workspace description file(.jcw)
and the project description file (.jcp)
A PROJECT MUST HAVE THE SAME NAME AS THEF FILE THAT
CONTAINS THE CONTROLLING CLASS
CREATING A CONSOLE APPLICATION
A console application displays output in a DOS window. Console applications are created in Chapters 3
through 10 and Chapters 12 through 14. To create a console application, select File - New -• Project and
then select Empty Project from the Project Wizard dialog box. Select Next to display the second Project
Wizard dialog box. In the Name box, type a descriptive application name, verify that the project paths are
correct in the Location, Source Path, and Output Path boxes. If the project paths are not correct, click
beside the corresponding box and select the appropriate path from the Select Directory dialog box.
Select Finish to create the project workspace and folder.
A new Java file is then created by selecting File New -+ File or clicking the New File button (j _II) on
the toolbar, which displays the File Wizard dialog box. In the Name box, type the same name as the
application name and then select Finish.
After typing a program, select File y Save All to save the program file(s) and select File y Save Workspace
to associate the file with the workspace. If the workspace is not saved, the added program file will not
appear in the File View window when the project workspace is opened even though the program file is in
the project directory. When finished working in JCreator, select File y Exit to remove the JCreator IDE
from the Desktop
7. .
Review: Message part 1 of 2
You will create a project named Message.
START 'CREATOR
Select File Close Workspace if an existing project is displayed when the IDE is
0started.
CREATE A NEW PROJECT
a. Select File New Project. The Project Wizard dialog box is displayed.
b. In the Project Wizard dialog box, select Empty Project:
c. Select Next. The second Project Wizard dialog box is displayed.
d. In the Name box, type Message:
8. e. Verify that the project paths are correct in the Location, Source Path, and Output Path boxes.
If the project paths are not correct, click Q beside the corresponding box and select the
appropriate path from the Select Directory dialog box.
f. Select Create new workspace, if it is not already selected.
g. Select Finish. The Message workspace file and project folder are displayed in the File
View window.
ADD A FILE TO THE PROJECT
On the toolbar, click the New File button. The File Wizard dialog box is
displayed.
Select File Type if it is not already selected.
Select Java File if it is not already selected and then select Next.
In the Name box, type Message:
10. ENTER A JAVA PROGRAM
In the code editor window, type the following program:
COMPILE AND RUN MESSAGE
a. Select Build Compile Project. The Message.java file is saved and the message
"Process completed." is displayed in the Build Output window:
b. Select Build Execute Project. The program output window is displayed:
Note that your screen may be white and black text. Click in to change the output
window options.
c. Press any key to remove the output window.
SAVE THE WORKSPACE AND QUIT JCREATOR
a. Select File - Save Workspace. The project workspace is saved.
b. Select File -• Close Workspace.
11. The JCreator compiler will display any errors in the Task List window when the program is compiled:
The Task List displays a description of the error and the error location
Double-click the error message to display a red arrow next to the line of code containing the error. To remove
an error message, correct the error and then compile the project.
Opening a Project Workspace and Printing
To open a project's workspace, select File - Open Workspace. Use the Look in list and contents box to display
the appropriate workspace file and then select Open.
To print the source code, click the code editor window and then select File -• Print. To print the contents of
the output window, select SI -• Edit Select All and then select SI Edit y
Copy. The contents can then be pasted
into a word processor and printed.
You will open the Message workspace and print the code.
OPEN MESSAGE WORKSPACE
a. Select File — Open Workspace. A dialog box is displayed.
b. Use the Look in list and the contents box below it to display file name Message.
c. In the contents box, click Message and then select Open.
PRINT MESSAGE
a. In the File View window, double-click Message.java.
b. Click the code editor window.
c. Select File - Print.
CLOSE THE MESSAGE WORKSPACE ®
QUIT JCREATOR
12. Adding Files to a Project
A Java application can include multiple classes. Only one class is the controlling class. Other classes define
abstract types used in the controlling class or within the additional classes. Applications that contain
multiple classes are created in Chapters 8 through 14.
To add a new class to a project, add a file to the project and then type the new class code in this file. To
add an existing class to a project, select Project -• Add Files, which displays the Open dialog box. Use the
Look in list and contents box to display the appropriate file. Select the file and then select Open.
JCreator has several help
features that can be accessed in the Help menu. The Help Contents and JDK Help commands access a
database of help topics that can be searched and the JCreator on the Web command provides links to
technical support information on the JCreator website.