How to dynamicly build up a gui
- by InsertNickHere
Hi there,
for the app i am creating i need a lot "option menus". E.g. for the sound file trimming part it would be something like "leadingSilence" / Integer "trailingSilence" / Integer "hold" / Integer. Overall, there are a lot of options of different types (int, float, string), and im thinking about if it is a better way to manualy create a window for each option set, or to dynamicly create them. last one would be quite easy if all types were similar (so i would just add eg spinButtons) I guess but its not.
At this time i mange the options with the standard .properties of jave, and there is no need to change.
My question is: is there a lib which provides such functionality, or is there a "standard way" to do this? How much work would it be? How to dynamicly create the selection listeners?
In could i'd love to have something like:
OptionWindow trimmingOptionWindow = createWindowFromOptionSet(OptionManager.getOptions("trimming") );
trimmingOptionWindow.open();
I hope its clear what I mean :)