Define alarm and warning colors in Jdraw/ATK widget
|
|
---|---|
How can I differentiate the colour of a widget when in warning/alarm? by default it looks as though both warning and alarm show the same yellow. :) |
|
|
---|---|
Hello, By default both colors are the same: Color.orange. If you want to change it, you have to use the following the static command in your code: Hope this helps.
|
|
|
---|---|
Thanks, I am just using jdraw/synopticappli, so I would make this change in atkPanel? I think the tango distribution only has the class files, would I get the sources from svn? Steve |
|
|
---|---|
Unfortunately, there is no way to change the default colors without coding. You can write a small java class that launch the SimpleSynopticAppli and call setColor4State.
|
|
|
---|---|
Thanks |