This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
is there any way to use synth just for certain components so that it doesn't blank out every component that isn't specified in the xml file?
And if there isn't, is there another way of creating JButtons that use images depending on their current state (pressed or released)?
Furthermore, are there any good synth articles / online resources? I read through the articles provided by SUN, but those only scratch the surface and I haven't been able to find any detailed tutorials or guides.
I'm not really sure if I'm approaching my problem the right way, I got a graphical Swing UI and a Design for it as an image, and I have to implement the design into the Swing gui. Is there something like a best practice way of doing something like this?
Any help appreciated!
Edit: I should probably add that I have to do this in Java 1.5!
I am only at the start of the book "filthy rich clients", but from what i have read so far overriding the paint method is the way to go.
As for synth our company tried it and dumped it, i do not know if it was just our implementation but it didn't cope with changing window size very well.
Joined: Jan 14, 2009
Hehe, fitting title
Synth is working fine so far, I just don't want to go through all the trouble of declaring styles for each and every component while I just want to change some buttons
I'll have a look at overriding the painting methods, maybe it is less complicated than I think...
I'm also really missing a good reference on synth, I got to define styles for the JProgressBar for example, and I don't have any idea how to do that...