yura.net libs

Freeform Swing Button Panel

If you have ever wanted to create a panel in java with buttons that can be any shape, then here is your answer

Download the source and demo

Browse Subversion Repository

implemented methods:

How it works

the pannel is laoded with 5 images:

5 images

these 5 images are all that is needed to be able to have a working panel. the way the panel works if by looking at the last "image map" image, and if u tell the pannel u have 5 buttons, it will find all the areas on that image with color equal to (0,0,0) to (4,4,4) and identify that area as the button, (ids 0-4)

This example is based on a windows media player skin I once made, you can download it here.

sourceforge.net

copyright (c) 2022 yura.net