> Is this not a compile-time setting? ie. You're editing code
> with VAJ, but
> you will finally compile this code, and it will populate the
> Label with
> whatever String was present at compile time. You can always
> have your string
> set at runtime, by reading some configuration data. Thus your
> text would be
> set to some default setting in your config file.
Well, what happens is:
assuming I have set my Key property to "Xxxx.yyy", the code
generated is (not really quoted, but the spirit is):
getFooLabel() {
if ( fooLabel == null ) {
fooLabel = new JLabel();
fooLabel.setKey("Xxxx.yyyy");
fooLabel.setText("JLabel1");
}
return fooLabel;
}
The configuration data could be read, and the appropriate text
could be set based upon the key, but the generated
>fooLabel.setText("JLabel1");<
would overwrite my value.
I'd like either to prevent VAJ from generating the setText, either
ensure that my setKey is executed last, either to know a better way
to achieve the same result.
Regards,
Frederic
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing