FlexLayout for AsWing

As you may have noticed I’m working with AsWing right now 🙂
Today I proposed a modification of the layout system. That’s because I couldn’t find any layout which satisfied my needs: a container which grows its components in order to fill the entire container size BUT which also keep in mind the component minimum and maximum sizes.
So it will try to grow all the components to the same size, but if a component has defined a specific minimum or maximum size, take that size under consideration.

Here’s a screenshot of the FlexLayout class in action ( click over the image to see the live demo ):

And here’s the code for using the layout:

f.getContentPane().setLayout( new FlexLayout( FlexLayout.VERTICAL, 2 ) );

Continue reading

AsWing modifications

It’s a bit since I started using AsWing. It’s really a complete ui framework for flash with many useful components.

But as usual, when using a component set there’s always something missing. For this reason I just added to aswing these 2 components: JMultipleSlider and JLabelSlider. The first one is just a slider with the possibility to add multiple thumbs while the second one has a similar behavior to the Adobe’s label slider added in the last CS5 applications.