ACM/JETT Workshop - August 4-5, 2005 1 Guidelines For Using BlueJ.

Slides:



Advertisements
Similar presentations
Introduction to Java 2 Programming Lecture 4 Writing Java Applications, Java Development Tools.
Advertisements

Introduction to Java 2 Programming Lecture 3 Writing Java Applications, Java Development Tools.
Introduction to Programming Java Lab 1: My First Program 11 January JavaLab1.ppt Ping Brennan
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Processing and Java David Meredith
Click Here for Download the Installation Files Click Here for Guide How to Extract Installation Files.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
Introduction to Object-Oriented Programming CS 21a: Introduction to Computing I First Semester,
The Java Programming Language  Simple – but abstract  Safe  Platform-independent ("write once, run anywhere")  Has a Rich growing library  Designed.
Objects and Classes First Programming Concepts. 14/10/2004Lecture 1a: Introduction 2 Fundamental Concepts object class method parameter data type.
BlueJ: a very quick introduction. BlueJ BlueJ is an IDE (Interactive Development Environment). It includes –an editor, which you use to write your programs.
CHAPTER 2 OBJECTS AND CLASSES Goals: To understand the concepts of classes and objects To realize the difference between objects and object references.
Introduction to Java Lab CS110A – Lab Section 004 Instructor: Duo Wei.
01 Introduction1June Introduction CE : Fundamental Programming Techniques.
13-Jul-15 BlueJ: A Very Quick Introduction. BlueJ BlueJ is an IDE (Integrated Development Environment). It includes an editor, which you use to write.
15-Jul-15 Starting Eclipse Just the basics. Getting Eclipse If you Google for “Eclipse”: The first hit is the home page, The second.
ACM/JETT Workshop - August 4-5, Object-Oriented Basics & Design.
5.0 Objects First with Java A Practical Introduction using BlueJ David J. Barnes Michael Kölling.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
A First Program Using C#
1 Programming James King 12 August Aims Give overview of concepts addressed in Web based programming module Teach you enough Java to write simple.
From BlueJ to NetBeans SWC 2.semester.
ACM/JETT Workshop - August 4-5, ExceptionHandling and User Interfaces (Event Delegation, Inner classes) using Swing.
5.0 Objects First with Java A Practical Introduction using BlueJ Introduction to Computer Science I Instructor: Allyson Anderson.
Introduction to Object-Oriented Programming
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
POS 406 Java Technology And Beginning Java Code
CPSC1301 Computer Science 1 Overview of Dr. Java.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Adding Documents to OnCourse. Add a Document Look for the Documents tab and click it.
Introduction to Eclipse. What is Eclipse? An Integrated Development Environment Provides many features to ease C++ programming (and others, e.g. C/Java)
Files to turn in for Homework # 1 1)TimerApplet.java 2)TimerApplet.html 3)TimerSyntaxErr.java 4)TimerSemanticErr.java 5)TimerSemanticErr.html 6)HomeWork1.txt.
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
EIE375 BlueJ: Getting Started Dr Lawrence Cheung.
DEVS M&S Tutorial with eclipse IDE Chungman Seo
Installing Repast in the Eclipse IDE Charlie Gieseler 6/28/04.
Download and Install: 1.Java Development Kit (JDK) bin/INTERSHOP.enfinity/WFS/CDS- CDS_Developer-Site/en_US/- /USD/ViewProductDetail-Start?ProductRef=jdk-
5.0 Objects First with Java A Practical Introduction using BlueJ David J. Barnes Michael Kölling.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
ACM/JETT Workshop - August 4-5, : Defining Classes in Java.
1 How to Install OpenGL u Software running under Microsoft Windows makes extensive use of "dynamic link libraries." A dynamic link library (DLL) is a set.
Compiling and running Java programs with BlueJ. Successfully compiled files program files in BlueJ You can tell from the shade of a program icon in BlueJ.
1 Class 1 Lecture Topic Concepts, Definitions and Examples.
Introduction To Greenfoot
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
Using This PowerPoint This PowerPoint presentation assumes you already have both the Java JDK and JCreator installed and all that you need is the proper.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
Installing and Using Evolve Evolve is written in Java and runs on any system with Java 1.6 Download Evolve from Unzip.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Appendix A Barb Ericson Georgia Institute of Technology May 2006
How to Run a Java Program
1. Open Visual Studio 2008.
Evolve What is a Component?
Java External Libraries & Case Study
JCreator Settings Only
How to Run a Java Program
Objects First with Java A Practical Introduction using BlueJ
BlueJ: a very quick introduction
Using Eclipse.
Objects First with Java A Practical Introduction using BlueJ
AN INTRODUCTION TO OBJECTS AND CLASSES
BlueJ: a very quick introduction
Running a Java Program using Blue Jay.
Java Code Review with CheckStyle
Workshop for Programming And Systems Management Teachers
Presentation transcript:

ACM/JETT Workshop - August 4-5, Guidelines For Using BlueJ

ACM/JETT Workshop - August 4-5, Overview 1.Lecture: Using BlueJ 2.Lab Exercise - Compiling and Running a simple program with BlueJ 3.Lecture - Introduction to jar files and packages 4.Lecture + Lab Exercise - Compiling and Running the Marine Biology Simulation using BlueJ

ACM/JETT Workshop - August 4-5, Using BlueJ Installing BlueJ Creating a new BlueJ project Creating a class file Editing the class file using BlueJ Opening the class file in the interface mode Compiling the class file using BlueJ Creating an instance of an object using BlueJ

ACM/JETT Workshop - August 4-5, Using BlueJ: Installing BlueJ BlueJ can be downloaded from J2SE SDK 5.0 can be downloaded from Installation on lap tops : In the open lab time from 6 to 10 pm

ACM/JETT Workshop - August 4-5, Using BlueJ: Creating a new BlueJ Project (1 of 4) Open BlueJ from the Program Menu

ACM/JETT Workshop - August 4-5, Using Blue J: Creating a new BlueJ Project (2 of 4) Left click on Project and then again left click on New Project

ACM/JETT Workshop - August 4-5, Using BlueJ: Creating a new BlueJ Project (3 of 4) Enter the project name and left click on create

ACM/JETT Workshop - August 4-5, Using BlueJ: Creating a new BlueJ Project (4 of 4) A new project is created !

ACM/JETT Workshop - August 4-5, Using BlueJ: Creating a class file (1 of 2) Left click on New Class Enter class name in the new window Left click on Ok

ACM/JETT Workshop - August 4-5, Using BlueJ: Creating a class file (2 of 2) A new class is created !

ACM/JETT Workshop - August 4-5, Using BlueJ: Editing the class file ( 1 of 2) Right click on the class file and then left click on Open Editor

ACM/JETT Workshop - August 4-5, Using BlueJ: Editing the class file ( 2 of 2) Implementation : Button to the right The file opens up !

ACM/JETT Workshop - August 4-5, Using BlueJ: Opening the class file in the interface mode Interface : Button to the right The fish class documentation can be seen ! The documentation cannot be edited from here !

ACM/JETT Workshop - August 4-5, Using BlueJ: Compiling the class file Indicates an uncompiled class Right click on the class file and then left click on compile

ACM/JETT Workshop - August 4-5, Using BlueJ: Creating an instance of an object (1 of 3) Indicates a compiled class The class file got compiled ! Right click on class file and left click on new MyFish()

ACM/JETT Workshop - August 4-5, Using BlueJ: Creating an instance of an object (2 of 3) Left click on Ok

ACM/JETT Workshop - August 4-5, The set and get methods can invoked from here Using BlueJ: Creating an instance of an object (3 of 3) An instance is created !

ACM/JETT Workshop - August 4-5, Overview 1.Lecture: Using BlueJ 2.Lab Exercise - Compiling and Running a simple program with BlueJ 3.Lecture - Introduction to jar files and packages 4.Lecture + Lab Exercise - Compiling and Running the Marine Biology Simulation using BlueJ

ACM/JETT Workshop - August 4-5, Lab Exercise - Compiling and Running a simple program with BlueJ 1.Use the BankAccount class from Example1.html. Complete the code. Compile it. Create an instance and check if the deposit(double amount) and withdraw(double amount) and getBalance() methods work correctly – Solution is BankAccount.java 2.Use the BankAccount class from Example2.html. Complete the code. Compile it. Create an instance and check if the getRate() method works correctly. – Solution is BankAccountStatic.java 3.These programs can be tested using Driver.java

ACM/JETT Workshop - August 4-5, Overview 1.Lecture: Using BlueJ 2.Lab Exercise - Compiling and Running a simple program with BlueJ 3.Lecture - Introduction to jar files and packages 4.Lecture + Lab Exercise - Compiling and Running the Marine Biology Simulation using BlueJ

ACM/JETT Workshop - August 4-5, Java calls its class libraries “PACKAGES” Libraries typically contain many hundreds or thousands of different classes that are useful to developers Java uses packages to arrange library classes into groups that belong together Complete packages can be imported using import package-name.* A specific class can be imported using the full name. For example import java.util.Random Introduction to jar files and packages Taken as is from: Sections 4.3 and 5.5 of Objects First with Java-A Practical Introduction Using Blue J – David J. Barnes and Michael Kolling (1 of 2)

ACM/JETT Workshop - August 4-5, Introduction to jar files and packages First 3 points taken as is from: Appendix E2 of Objects First with Java-A Practical Introduction Using Blue J – David J. Barnes and Michael Kolling (2 of 2) Java applications are usually distributed as Java Archive format files (JAR files) A number of different class files are archived into a single file A JAR file can be created as an executable file Tutorial on jar files :

ACM/JETT Workshop - August 4-5, Lecture: Using BlueJ 2.Lab Exercise - Compiling and Running a simple program with BlueJ 3.Lecture - Introduction to jar files and packages 4.Lecture + Lab Exercise - Compiling and Running the Marine Biology Simulation using BlueJ Overview

ACM/JETT Workshop - August 4-5, Compiling the Marine Biology Simualtion using BlueJ (1 of 4) Website reference: CONCEPT All the jar files should be in +libs folder The jar files in this project are mbsbb.jar and mbsgui.jar

ACM/JETT Workshop - August 4-5, Compiling the Marine Biology Simualtion using BlueJ (2 of 4) [taken as is from bluej website] 1.Delete the 'Code' folder inside the JavaMBS folder. 2.Replace it with the BlueJ_Code folder downloaded from

ACM/JETT Workshop - August 4-5, Compiling the Marine Biology Simualtion using BlueJ (3 of 4 ) Directories in BlueJ_Code

ACM/JETT Workshop - August 4-5, Compiling the Marine Biology Simualtion using BlueJ – (4 of 4) Run MBSGUI from Chap1and2MBSGUI Folder Open project Chap1and2MBSGUI (It has been already compiled) Right click on MBSGUI and left click on void main (String [] args) Hit Ok on the method call Then on the simulation screen open a file called fish.dat Click run on the simulation screen and observe the simulation