Getting Started with BlueJ

13 downloads 5202 Views 424KB Size Report
Getting Started with BlueJ. • Open Windows Explorer. Create a new folder called Java in My Documents on the X: drive. • Open the BlueJ programming ...
Getting Started with BlueJ 

Open Windows Explorer. Create a new folder called Java in My Documents on the X: drive



Open the BlueJ programming environment: Start > All Programs > Programming > BlueJ > BlueJ



Create a new project in BlueJ in your Java folder called figures: Project > New Project then navigate to your Java folder, enter figures as the folder name and click on the Create button.



Go to the London Metropolitan Intranet home page (https://intranet.londonmet.ac.uk/)



In Quick Links activate WebLearn



Log into New WebLearn



Select the “Programming” module



Select “Learning and Teaching Materials” from the content menu



Click on the icon



Click on “Week by Week”



Click on “Introduction to Objects and Classes”. You will see a link to “Workshop Exercises for Week 1” and five .java files: Person.java Triangle.java Square.java Circle.java Canvas.java



Save each of the five .java files into the figures folder that BlueJ will have created for you when you created a new project : Right-click each .java file in turn, “Save Target As...” (or “Save Link As...” or “Save As...”, depending on your browser) then navigate to the figures folder and save



Add the five classes to the BlueJ project: Edit/ Add Class from File, select the files then click on the Add button



Drag the classes to arrange them clearly within the window



Compile the classes



Click “Workshop Exercises for Week 1” and work through the exercises