How to dynamicly build up a gui

Posted by InsertNickHere on Stack Overflow See other posts from Stack Overflow or by InsertNickHere
Published on 2010-05-20T11:43:17Z Indexed on 2010/05/20 12:00 UTC
Read the original article Hit count: 166

Filed under:
|
|
|

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 :)

© Stack Overflow or respective owner

Related posts about java

Related posts about swt