BlueJ Help

 

Starting BlueJ

The BlueJ installation installs a script named BlueJ.bat in the installation directory, From a GUI interface just double click the file. From the command line (e.g. unix or DOS) you can start BlueJ with or without a package as an argument:

$blueJ

or

$blueJ examples/people

Opening a package: BlueJ packages, like standard packages, are directories containing the files included in the package. If you start BlueJ from a command line, and you give a package as an argument, it will automatically open. If you start BlueJ without an argument, use the package-open--menu command to select and  open a package.

Creating new package: To create a new package, select  NEW --- from the package menu.

Create a class: To create a class, click the NEW class button and specify the class name.

Create an object: To create a object, select a Constructor from the class pop-up menu.

Edit: To edit the source of a class, double click its class icon.

Compile: To compile a class, click the Compile button in the editor. to compile a package, click the compile in the package window

Compilation errors: To get help for a compiler error message, click the question mark (?) next to the error message.

Remove Class: To remove a class, select the Remove function from its pop-up menu. To remove an arrow, select remove from the edit menu and click on the arrow.

Opening     Non-BlueJ packages in BlueJ: Non-BlueJ packages can be opened with the Package: Open----command

Execute a method: Click the right mouse button on the object and a menu with the object operations will popup. the menu shows the methods available for this object and the special operations provided by environment.

Create an applet: To create an applet, click the new class button and select applet as the class type

Run applet: To run applet, select run applet from the applet pop-up menu.