Page 1 of 1

FAQ Automagic

Posted: Thu 08 Oct 2020 9:22 am
by tong
...

Re: FAQ Automagic

Posted: Thu 08 Oct 2020 9:26 am
by tong
Problem getWidgetElementProperty fillcolor return in signed integer

Code: Select all

dec = -16711936;
dec2hex = callJavaStaticMethod("java.lang.Integer", "toHexString(int)", dec);

hex = "ff00ff00";
hex2dec = callJavaStaticMethod("java.lang.Long", "parseLong(java.lang.String, int)", hex, 16);