Jigloo GUI Plugin for Eclipse

Developing graphical user interface in Java, can be in three ways. AWT, Swing and SWT.

Abstract Windows Toolkit (AWT) does not have fancy looks as compared to Swing but its advantage is that it can run at any place where Java runtime environment is installed. It is very stable technology.

Swing provides GUIs that have fancy and sophisticated look and feel. It is included in the Java Foundation Classes (JFC). These are said to be slow as the controls are made by the Java itself.

Standard Widget Toolkit (SWT) is an open source Java GUI toolkit comprised of a widget set and a graphics library. It provides GUIs having look and feel very similar to the native desktop applications. This is supposed to be faster as the controls are built by the native dlls.

Jigloo is an Eclipse plugin which can be used to design AWT, Swing and SWT GUIs quikly and efficiently. It is free for non commercial use.

First download the plug-in from here. Unzip it and move the folder “ plugins\com.cloudgarden.jigloo_3.9.5 ” to the plugins folder under Eclipse directory and move “ featues\com.cloudgarden.jigloo_3.9.5 ” to the features folder under Eclipse directory. Now simple open the Eclipse. Jigloo GUI plugin is read to use.

Listed below are the steps to create a simple Swing Jframe using Jigloo.

  1. First create a project named “ GUI test ”.
  2. Now right click the project and create a new Swing Jframe (“ New ” – > “ Other ” > “ GUI Forms ” – > “ Swing ” – > “ Jframe ”).
  3. Change the title of the JFrame to “ Test Frame ” by typing the text in the “ Title ” property in GUI Properties window.
  4. After creating the JFrame, you will see the frame, code and the setting windows. In the design windows, you will be shown the graphical preview of your frame. It will have different menus and tabs. Tabs contain different controls that we can use according to our requirements.
  5. In our example, we need a container on JFrame. So we will drop JPanel control from Containers tab on to our frame.
  6. Now select and drop JTextField control from Components tab on to the JPanel and name it as “ jtxtfld ”.
  7. Select and drop JButton control from Components tab on to the JPanel and name it as “ jbut ”

    Our GUI looks like thisNow we have to add a functionality that when a user presses the button, the text in the textfield is printed on the console. To achieve this, we to get the mouseClicked event of the button.
  8. Click JButton (jbut) and then go to Event window. Event window will have all the events available for the JButton. Select “ MouseListner ” – > “ mouseClicked ” event and change its value from to inline. Doing so, code for the event will be generated. Now we just have to go to the code window and locate the mouseCliced event code and write the print statement there.
public void mouseClicked(MouseEvent evt) {

Now try running the Java Class.