Project titled java graphical user interface is a GUI which will have all features of existing GUIs . This is developed on open source standards and works on cross platforms.

Java Graphical User Interface

Java Graphical User Interface

Features overview:

File Menu

New

Gives you a new Gart project. If you have a Gart project already open, you will be prompted if you would like to save this before proceeding.

This menu option can also be accessed from the toolbar with the empty sheet icon, first icon from the left.

Open

Click here to open a Gart project that you have previously worked with.

These project files are really XML files written after the DTD located in <gart-install-path>/etc/gartprojcet.dtd and must be suffixed .gart in order to open them from the program.

It is however, possible to write the whole .gart file yourself manually, or adding blocks of code in your .gart file before opening them in The Gart. The Gart guarantees to understand your file, as long as it validates after the gartproject DTD.

This menu option can also be accessed from the toolbar with the yellow folder icon, second icon from the left.

Close

Closes your current Gart project. You will be prompted for saving this project before closing it.

This menu option can also be accessed from the toolbar with the cross icon, fourth icon from the left.

Save

For saving your Gart project. If you haven’t saved your Gart project before, you will be displayed the Save dialog, where you can navigate to your preferred directory and choose a name for your file. Remember to add the .gart suffix to your filename, so that The Gart can recognize your file later.

If you have already saved your project, or you have opened an existing project, Save will just save fyour project without asking you for path or filename.

The filechooser will search your preferences settings for your gart files directory. If not found, it will start in your home directory.

This menu option can also be accessed from the toolbar with the diskette icon, fifth from the left.

Save As

This is for saving your current Gart project with a different filename than it already has.

This menu option can also be accessed from the toolbar with the diskette and pencil icon, fifth from the left.

The filechooser will search your preferences settings for your gart files directory. If not found, it will start in your home directory.

This menu option can also be accessed from the toolbar with the diskette and pencil icon, sixth icon from the left.

Export Java

Select this option to export your currrent Gart project as Java. You will be given a file dialog where you can choose where you wish to put your Java file.

The filechooser will search your preferences settings for your java files directory. If not found, it will start in your home directory.

Import Java

Select this menu option if you wish to import Java files into the Gart in order to continue your GUI designing with these.

Please note that these Java files must hold the two flags global-variables and setup-method like this:

// <gart:global-variables>

// </gart:global-variables>

 

 

// <gart:setup-method>

private void setupGUI()

{

}

// </gart:setup-method>

Furthermore, each variable declared within the global-variables tag, must have setBounds(), setForeground(), setFont() and setBackground() methods in the setupGUI() method in order to be properly imported to The Gart. ( Just look at one of the exported Java files from The Gart and you will figure it out ).

The filechooser will search your preferences settings for your java files directory. If not found, it will start in your home directory.

Print

Prints your current Gart project’s Java code to the printer of your choice. You are, however, first prompted for saving your project, before proceeding with the printing.

Please note that the printing facility in the Gart has not been given priority by the Gart team and we have only seen it work satisfactory on the Windows platform. We believe this is a bug in the Linux implementation of Java.

This menu option can also be accessed from the toolbar with the printer icon, seventh icon from the left.

Recent Files

Here you will find the five recent Gart projects listed. Select one of them to load your previous work. You will be prompted for saving your existing, open Gart project.

Exit

Click here to leave the Gart. You will be prompted for saving your existing, open Gart project.

Download Java Graphical User Interface source code with project report .