GUI for Processing

Download G4P from GoogleCode

Version 1.7.5 - Fixes bug in drawing order of GUI controls placed on GPanel and nested GPanel controls.
The changes also fix a bug where GTextField objects on a GPanel object refused to release focus.

Version 1.7.4 - Improved handling of GPanel objects. Adds the method(s) G4P.setDrawOrder(...) which ensures that GPanel objects are drawn over controls in the main sketch. When a panel or a control gets focus the parent panel is automatically brought to the front. This can be done programmatically with the new bringToFront() method.
The changes also fix a bug where GTextField objects on a GPanel object refused to release focus.

Version 1.7.3 - Fixes reported bug in GTextField when using setFocus() and then clicking and dragging outside the textfield area.

Version 1.7.2 - Additional methods added to GTimer that allow both the initial delay and interval times to be set. Previously the initial delay could only be set when the GTimer object was created.

Version 1.7.1 - Minor bug fix to GRoundControl so that isValueChaging() works correctly for knob controls. Thanks to Dmitri for finding the problem and its solution.

Version 1.7.0 - New control added the GKnob and GKnobOval these are extremely configurable - see the example that comes with the library. Controls no longer needed can be dispose of e.g

     myButton.dispose(); // makes myButton unavailable
     myButton = null; // garbage collection will eventually free its memory.

Textfield objects now fire an event when they lose focus and the mouse icon will change when moving over GWSlider controls (if mouse over option is enabled).

Version 1.6.5 - Minor update that enables the cursor colour in GTextField to be changed independantly of the border colour. The colour of the cursor can be set with
     myTextField.localColor.txfCursor = color(r,g,b);
and use txfBorder for the textfied border colour.

Version 1.6.4 - GWindows can now be closed under program control using the close() method. Also a bug fix for GWSlider - so it is now possible to test whether the slider is being dragged i.e. the value is changing at the GUI

Version 1.6.3 - GWindows can now choose to ignore the Window close icon.
The method setBehaviourOnExit has been removed and replaced with the method
     setActionOnClose(int action)
where action is either GWindow.KEEP_OPEN, GWindow.CLOSE_WINDOW or GWindow.EXIT_APP the default being KEEP_OPEN.

Version 1.6.2 - Buttons and labels now support both horizontal and vertical text positioning.
Also a new method has been added to make G4P text clearer when using P2D and P3D. If you are using one of these renderers then inside the setup() method add the following code after the call to size(...)      G4P.setTextMode(SCREEN);

Version 1.6.1 - the only change is to one of the examples the actual source library is unchanged

Version 1.6 - Now possible to use images as buttons.

Version 1.5.2 brings an enhanced GTextField component and a bug fix for GWSlider.

Version 1.5 & 1.5.1 include some cool sliders, a modified textfield component that supports multiline text and simpler usage with the PeasyCam library.

For Java developers who wish to examine or modify the source code then it can be checked out from the SVN repository at GoogleCode