Loading...
Logo
Processing Forum
Hi guys,

are you aware of any alternatives to controlP5 for creating gui within Processing? Any Java based library maybe? 

Replies(9)

There is GUI for Processing a library by Quark, http://www.lagers.org.uk/g4p/index.html
There is a GUI section in the Libraries page... More exactly, a Graphic Interfaces section.
Im talking about somthing like this..  http://www.vimeo.com/23293733 . With multiple windows etc..
Looks like they built an Java application with Processing as a component.  The gui there appears to be Swing or AWT.  You should be able to find posts that talk about having sketches in multiple windows.  ControlP5 even allows this (control from one window the sketch in another).  Napplet is something else that may allow you to break it up into pieces.
There's also napplet, which isn't a gui in itself, but makes it very easy to use multiple windows and set one up as your own gui:
I am certain that ControlP5 supports mutliple windows but if it doesn't  GUI for Processing (G4P) certainly does here are some examples.

Mandelbrot
QuadTree
G4P Showcase  (Click on the big button
Simple windows  (Click on the button to open 3 windows and draw boxes on each in turn, the webpage also describes how G4P handles multiple windows)

Other examples of using G4P to create multiple windows are included in the Shapes3D library
Bezier shape editor  (Click on the button with an image of gears)
Bezier tube editor (Opens 6 cwindows so is a bit sluggish as an applet - download the application and try it)

Be aware that some of the windows may get hidden by the web browser if that happens then minimise the webbrowser to locate them. Multiple window programs are best run as applications since you can force the windows to "stay on top" which you can't do as an applet

Thanks All!

@ quarks
what library has been used in the QuadTree example?
The G4P seems pretty good though!
Looks like G4P in the QuadTree example.. he has those fancy sliders. :-)
jeff_g is right, in fact all the examples in my previous response used G4P to create the windows and GUI controls, the 3D stuff also used the Shapes3D library.