1 / 19

BlueJ: a very quick introduction

BlueJ: a very quick introduction. Adapted from notes by D. Matuszek, Upenn. BlueJ. BlueJ is an IDE IDE = (Interactive|Integrated) Development Environment It includes an editor, which you use to write your programs a debugger, to help you find your mistakes

rgandy
Download Presentation

BlueJ: a very quick introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BlueJ:a very quick introduction Adapted from notes by D. Matuszek, Upenn

  2. BlueJ • BlueJ is an IDE • IDE = (Interactive|Integrated) Development Environment • It includes • an editor, which you use to write your programs • a debugger, to help you find your mistakes • a viewer, to see the parts of your program • an easy way to run Java programs and program components • an easy way to view documentation • http://bluej.org/

  3. (Iteractive|Integrated) Development Environments • Most IDEs are language specific, tho some basic ones can be used with multiple languages. • There are IDEs for most popular languages (Java, C++, C, Lisp, Smalltalk, Prolog, …) • There are dozens of IDEs for Java • Java’s capabilities for reflection makes it easy to write • Reflection allows a program to examine or "introspect”, seeing it’s own components and (even) code. • IDEs tend to be large, complicated and difficult to learn

  4. BlueJ at UMBC • Your best bet is to download and install BlueJ on your own computer. • There are specific versions for Windows and MAC OS X • There is a generic Java version that can be run on most any machine with Java (e.g., Linux, Solaris, …) • BlueJ is installed on O:\BlueJ\ on the UMBC OIT PC servers • You may need to show it where the java programs are

  5. Open BlueJ, choose New Project

  6. Name the project, click Create

  7. Create and name a newClass or Applet The name of the class should beginwith a capital letter

  8. Double-click the new class to edit it The stripes show that theclass "Drawing" is notcompiled (ready to run)

  9. Edit your class, then Compile it BlueJ starts you with asimple class or a simpleapplet. You can modifywhat BlueJ gives you, orjust replace it with yourown program.

  10. If it's an applet: Right-click the class and choose Run Applet

  11. If applet: choose how to run it, and what size it should be

  12. Here's the running applet!

  13. If application: right-click and choose void main(args)

  14. Application: Just click Ok

  15. Application results

  16. Viewing classes BlueJ’s main displayshows all of the classes in your package and therelationships between them

  17. Viewing classes and instances You can interactively create Instances and call methods Attached to any class

  18. Final notes • You don't have to Save your work—BlueJ does that automatically for you when you compile • If you quit BlueJ and come back later, use Open Project to continue where you left off • This quick introduction does not replace working through the tutorial!

  19. The End

More Related