Java progressbar color changed

1 visualización (últimos 30 días)
hao ding
hao ding el 23 de Jun. de 2018
I am applying a JAVA application with Matlab. When I test my program in Eclipse, everything is fine, the progress bar is showing in desired color. But when I call this JAVA application(through jar file) from Matlab. The progress bar is all green, I am struggling in this situation, I do not know where is the problem as everything is fine when I run it without Matlab.
My JAVA color as follows:
JProgressBar progressBarFirstSubjectNeuralSignal;
UIDefaults defaultsFirstSubject = new UIDefaults();
defaultsFirstBar.put("ProgressBar[Enabled].foregroundPainter", new
CustomPainter(Color.RED));
defaultsFirstBar.put("ProgressBar[Enabled+Finished].foregroundPainter", new
CustomPainter(Color.RED));
progressBarFirstBarSignal.putClientProperty("Nimbus.Overrides.InheritDefaults", Boolean.TRUE);
progressBarFirstBarSignal.putClientProperty("Nimbus.Overrides", defaultsFirstSubject);

Respuestas (0)

Categorías

Más información sobre Call Java from MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by