GUI designer and third party look and feel

Hi,

I have just started with the GUI designer and would like to use the Alloy look and feel with my application. My first experiments have only changed the lnf of the main frame not the individual components. Is there any documentation on this? I saw in the demo from Jetbrains that there is the ability to access external libraries but have found no reference in the documentation.

TIA

/Dominic

3 comments
Comment actions Permalink

The GUI designer only lays out Swing components, it does not interact with the L&F. I have a project with a UI designed by IDEA's UI Designer using JGoodies L&F and Windows L&F, and it works fine.

0
Comment actions Permalink

What I found was that the lnf did not effect the components such as JButton. With the code generated by Idea given below the external frame has the correct look, but the button instaed of being 3D is just rendered with a flat appearance and a white background.

Any sugestions !!!!

0
Comment actions Permalink

I just ran into this myself. The problem is because (I believe) that the IDEA GUI generator writes the component initialisation code into a static block in the generated class.

If your form class also contains your main() method then by the time main() gets called all of the components have already been created with the default L&F.

To fix this write another class that sets up the L&F before instantiating your form class. The components will then be created with the appropriate L&F.

0

Please sign in to leave a comment.