Back to Frameworks Homepage

Swingy

Introduction

This class lets you test swing guis and layouts (at the moment: GridBagLayout). You start the class creating a new instance. If you give a container, this container will used to show its properties (all swing elements). If you don't give any container, the container having the focus will be used.

If you start this class through its main method, you can give one parameter, holding a java expression, that creates your desired container.
For example: mypackage.MyFrame.main(param1,param2)
PLEASE DON'T USE SPACES. It has to be only ONE parameter!

Start

You can start it through the Shell (shell.bat -->swingy),
because, it makes no sense to start it as a standalone application.

Showing/Editing the properties of a swing component



Precondition is, that the java virtual machine has started at least one window with the desired components to show and change. The Swingy Frame always will be behind the other windows (so that it doesn't test itself). If you click the left button of Swingy, a dialog, showing all swing components of the active or given window, will be created. There you select the desired component, to its awt and swing properties. The properties show sizes, and gridbagconstraints (will be extended to show other layout constraints, too).




1