[fxruby-users] some learning confusions -> shutter program customization

Sander Jansen sander at knology.net
Wed Apr 13 20:11:50 EDT 2005

On Tuesday 12 April 2005 17:06, Jason Wang wrote:
> hi, i have just recently been able to download FXRuby and play around
> with it a little bit.. my experience with GUI programming is sadly
> limited to Java's swing/awt packages, and i have about 1 year of
> experience in java GUI programming.. now i'm in the process of
> familizing with it and try my hands at customizing the shutter example
> program.. i have several questions:
> first of all, how is Java's GUI stuff different?

I can't answer that. Never worked with Java.

> mmm.. some shutter specific (or beginner) questions..
> How would you go about creating one seperate GUI for each page the
> shutter brings up? like i want to put a in a calender for the calender
> page, some boxes and buttons for submitting forms for tasks and etc..
> what would be the common idiom for creating such GUI groups? since in
> Java you would just create a panel and stuff everything in then stuff
> the panel back into the frame..

Assuming you want all of the GUI's created at once, as opposed to creating it 
dynamically, you can use the FXSwitcher layout manager to accomplish this.

"The Switcher layout manager places its children exactly on top of each other; 
it ignores most of the layout hints provided by each child.  You typically 
use a layout manager like the switcher to save screen real-estate, by placing 
for example several control panels on top of each other, and bringing the 
right one on top depending on the context."

So create a switcher, add x many Frames in there, fill each frame up with the 
desired controls and connect the shutteritems somehow to the switcher to make 
it switch the right frame.

Hope this helps,

> mmm.. that's about all i want to ask.. thanks alot :D

More information about the fxruby-users mailing list