BlueJ is development environment for writing Java programs that allows you to develop Java programs quickly and easily.
Features of BlueJ
Its main features are that it is:
Simple: BlueJ includes an intentionally littler and easier interface than proficient environments like NetBeans or Overshadow. This permits fledglings to induce begun more rapidly, and without being overpowered..
Designed for teaching: BlueJ is intentionally outlined with a great instructional method in intellect. There's a prevalent course reading planned for instructing early on university/college courses with BlueJ, and a location full of instructing assets
Interactive: BlueJ allows you to interact with objects. You can inspect their value, call methods on them, pass them as parameters and more. You can also directly invoke Java expressions without compiling. Thus BlueJ is a powerful graphical shell/REPL for Java.
Portable: BlueJ runs on Windows, Mac OS X, Linux and other platforms which run Java.
Mature: BlueJ is over fifteen years old, but continues to be updated and supported by a full-time team. We aim to respond to all technical support requests within one working day.
Innovative: BlueJ has several features not seen before in other IDEs. Its object
bench, code pad, and scope colouring were all original BlueJ features.
Creating New project
To create a new program you first need to create a new project. Click on the Project menu and select New Project...
This opens a new window.
After giving the new project and name and clicking Create you see the new project.
If you need to add any pre-existing classes to the project now is a good time to do that. To add the existing file to the project click on the Edit menu and then select Add Class from File...
A new window pops up that allows you to navigate to the correct directory and select the file you want to add. Only files that end in .java are shown. Navigate to the directory that contains the file or files you want to add. If you want to add a single file, click on it and then click on the Add button. If you want to add 2 or more files from the same directory hold down the CTRL key and click on all the files you want to add, then click on the Add button.
Now the new file / class has been added to the file. It shows up with diagonal lines because it has not been compiled yet.
To compile a class that is part of a program you can either click the Compile button on the left side of the window or right click on the icon of the class and select the Compile option from the pop up menu. If the class does not have any syntax errors it will now be shown without any diagonal lines on its icon.
To add a new class to the project click on the New Class button.
A menu pops up asking for the name of the class. On assignment 1 the name must be Circle. Ensure the Class radio button is selected, type in Circle for the Class Name and click the okay button. A new class is added to our project.
To edit the code in a class double click on its icon. This opens an editor window which is very like a simple word processor. Select and delete the default code in the class.
Type in the changes to the program. You save the program by clicking on the Class menu and selecting Save. You can attempt to compile the program by clicking the Compile button. Any errors will show up in the text area at the bottom of the edit window. If an error occurs the line the error is on is highlighted in yellow. After compiling the program and getting it to work close the editing window w and go back to the project window. The program / class icon no longer has diagonal lines across it.
To run the program right click on the icon that has the main method in it. IN assignment one, this is the Circle class. This brings up a menu that allows you to carry out various actions. (You could also compile classes here.) Select the menu option void main(args). This causes the main method of the class to be executed.
Another menu pops up that asks what parameters or information you want to pass to the method, in this case main. In this class we won't normally pass any information to method main so just click Ok.
This causes the program to run. In assignment 1 a separate window opens and you may have to click on that window to see the program run.
The most important features for developers or Java programmers or students learning java is that it provides automatic Class UML diagrams , relationship between class etc.
How codersArts help you in BlueJ ?
We have some dedicated Java Assignment help experts, Java programmers who use BlueJ to teach students and help writing code in java.
So if your are looking for java assignment help which use BlueJ, Use of our services for java assignment help with BlueJ
If you want any kind of BlueJ help like assignment help , errors or debugging. Contact us
Comments