FengGUI's JList and JButton

I already know how to setup FengGUI, but how to create like a JList and a JButton in FengGUI?



About the list of FengGUI:

  • How can I add items on it?



    Extra question about FengGUI: Is there like a L'n'F (Look'n'Feel) for that?




GustavoBorba said:

I already know how to setup FengGUI, but how to create like a JList and a JButton in FengGUI?


If you're using themes (more on that further down), then the call is:

Button myButton = FengGUI.createWidget(Button.class);



The createWidget method does much of the setup work for you when using themes and is a real lifesaver.  There is a drawback though, which is that it seems to cause problems when using Webstart

GustavoBorba said:

About the list of FengGUI:
- How can I add items on it?


Are you trying to use a Combo Box or something else?

GustavoBorba said:

Extra question about FengGUI: Is there like a L'n'F (Look'n'Feel) for that?


There's an XML theme system.  The only theme released by FengGUI is called QtCurve... you can find much about it by searching for the name on their site..

Ok thank you, just another question. Which looks better and/or is more simple to use, GBUI or FengGUI?

We're personally using FengGUI, but it was a bit of a biased choice since I'd invested more time in using it than GBUI :wink: