NetBeans 6 delivers great updates to the Matisse GUI builder. Spend a few minutes with Roman Strobl and get an expert briefing on what's new and what has changed. (sponsored)
In this, the third and final installation of Andres' Introduction to Groovy series, you learn about how Groovy handles variable numbers of arguments, named parameters, currying, and more about Groovy operators. Including, some new operators.
Swing Fuse (actually just Fuse), is a framework designed to make it easier to create your own custom desktop components. In this article, Daniel Spiewak shows you how to get started and provides sample source code you can download.
Willam Louth shows how he uses JXInsight Probes to investigate probable performance issues with code bases that he is not familiar with. He also highlights possible pitfalls in creating a benchmark, as well as in the analysis of results.
Synthetica
is backed on images for GUI building. The following lines explain howto create (or customize) your own
Synthetica
based Look and Feel by integrating customized images.
Take a look into the 'synthetica.jar' archive and locate the 'synth.xml' file (package de.javasoft.plaf.synthetica.standard).
Copy the 'synth.xml' file into your own LAF project.
Place all your customized images into your package and edit the paths within 'synth.xml', so they will link to your own images by using absolute adressing (first character is a slash).
Create your own Look and Feel class based on the example below.
Ready - activate your Look and Feel: UIManager.setLookAndFeel("com.company.plaf.synthetica.CustomLookAndFeel");
package com.company.plaf.synthetica;
import java.text.ParseException;
publicclass CustomLookAndFeel extends SyntheticaLookAndFeel
{
//Construtor
public CustomLookAndFeel() throws ParseException
{
//load synth.xml from custom package
super("/com/company/plaf/synthetica/synth.xml");
}
//return an unique LAF id
public String getID()
{
return "SyntheticaCustomLookAndFeel";
}
//return the LAF name - readable for humans
public String getName()
{
return "Synthetica Custom Look and Feel";
}
}
All available
Synthetica themes
were created in this way - no further coding was needed.
For limited customizing it is also possible to use a secondary xml file which contains only customized parts, so you don't have to copy the complete 'synth.xml' file. In this case
Synthetica
searches your classpath to find and load the additional file. The filename has to be equal to the current active Look and Feel name e.g.: 'SyntheticaStandardLookAndFeel.xml', 'SyntheticaBlueIceLookAndFeel.xml'. Please read the
FAQ
to get more details.
I've been evaluating Synthetica for a while for my app, and I have to say I'm impressed. Very good performance, and so far I've found it works with everything I've thrown at it. The only other lnf I can say that about is Alloy, but I like the Synthetica themes a bit more.
I've also amended some of the themes for myself. i.e. I updated one or 2 graphics from the green dream theme.
A couple of questions:
1) can I distribute the amended theme with my app?
2) any plans for a synthetica builder, where we can see graphically where the images fit in visually?
1) Sure, as long as your application is non commercial you can distribute Synthetica with your app for free. Vendors of commercial applications has to buy a commercial license.
> 1) Sure, as long as your application is non
> commercial you can distribute Synthetica with your
> app for free. Vendors of commercial applications has
> to buy a commercial license.
yes, I will buy a commercial license shortly. I was more concerned about modifying the image files that came with synthetica. i.e. is it then legal to bundle the changed files with my app, after I have bought a commercial license.
>
> 2) Currently not, but we will see...
>
> Best regards,
> Wolfgang
Cheers,
Andrew
p.s. how on earth did you manage to be allowed to use the Javasoft company name? Is this a Germany versus USA thing? I presume you have no relationship with SUN Javasoft?!
> yes, I will buy a commercial license shortly. I was
> more concerned about modifying the image files that
> came with synthetica. i.e. is it then legal to
> bundle the changed files with my app, after I have
> bought a commercial license.
Customize Synthetica Look and Feel
At 7:36 AM on Jun 6, 2006, Wolfgang Zitzelsberger wrote:
Fresh Jobs for Developers Post a job opportunity
package com.company.plaf.synthetica; import java.text.ParseException; public class CustomLookAndFeel extends SyntheticaLookAndFeel { //Construtor public CustomLookAndFeel() throws ParseException { //load synth.xml from custom package super("/com/company/plaf/synthetica/synth.xml"); } //return an unique LAF id public String getID() { return "SyntheticaCustomLookAndFeel"; } //return the LAF name - readable for humans public String getName() { return "Synthetica Custom Look and Feel"; } }All available Synthetica themes were created in this way - no further coding was needed.
For limited customizing it is also possible to use a secondary xml file which contains only customized parts, so you don't have to copy the complete 'synth.xml' file. In this case Synthetica searches your classpath to find and load the additional file. The filename has to be equal to the current active Look and Feel name e.g.: 'SyntheticaStandardLookAndFeel.xml', 'SyntheticaBlueIceLookAndFeel.xml'. Please read the FAQ to get more details.
Synthetica Website:
http://www.javasoft.de/jsf/public/products/synthetica
6 replies so far (
Post your own)
Re: Customize Synthetica Look and Feel
I've been evaluating Synthetica for a while for my app, and I have to say I'm impressed. Very good performance, and so far I've found it works with everything I've thrown at it. The only other lnf I can say that about is Alloy, but I like the Synthetica themes a bit more.I've also amended some of the themes for myself. i.e. I updated one or 2 graphics from the green dream theme.
A couple of questions:
1) can I distribute the amended theme with my app?
2) any plans for a synthetica builder, where we can see graphically where the images fit in visually?
Cheers,
Andrew
Re: Customize Synthetica Look and Feel
1) Sure, as long as your application is non commercial you can distribute Synthetica with your app for free. Vendors of commercial applications has to buy a commercial license.2) Currently not, but we will see...
Best regards,
Wolfgang
Re: Customize Synthetica Look and Feel
> 1) Sure, as long as your application is non> commercial you can distribute Synthetica with your
> app for free. Vendors of commercial applications has
> to buy a commercial license.
yes, I will buy a commercial license shortly. I was more concerned about modifying the image files that came with synthetica. i.e. is it then legal to bundle the changed files with my app, after I have bought a commercial license.
>
> 2) Currently not, but we will see...
>
> Best regards,
> Wolfgang
Cheers,
Andrew
p.s. how on earth did you manage to be allowed to use the Javasoft company name? Is this a Germany versus USA thing? I presume you have no relationship with SUN Javasoft?!
Re: Customize Synthetica Look and Feel
> yes, I will buy a commercial license shortly. I was> more concerned about modifying the image files that
> came with synthetica. i.e. is it then legal to
> bundle the changed files with my app, after I have
> bought a commercial license.
Yes, it is.
Best,
Wolfgang
Re: Customize Synthetica Look and Feel
Isnt Synthetica free for non comercial use??So why do my opensource application have to show that statusbar with a Synthetica evaluation message
I see that synthetic is froing from a opensource laf to a full closed source laf with no use for os applications
Synthetica looks nice, but i will move on to other themes
Re: Customize Synthetica Look and Feel
Looks so cool and and I will it in my free application.