Alter color from StiPanel object

Stimulsoft Reports.JAVA discussion
Post Reply
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Alter color from StiPanel object

Post by rafaelwithoeft »

Hello, i want to change color of StiPanel by Java code.
I looked in the report designer and it has a "Brush" properties, but on the java class not have one method "SetColor" on "StiBrush" or equivalent.

How i do this?

Thank you
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Alter color from StiPanel object

Post by HighAley »

Hello.

It is impossible to change brush. The StiBrush is base class. You should convert it to StiSolidBrush and change the Color.
Or you could create a new instance of the StiSolidBrush object and assign it to the StiPanel.

Thank you.
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Re: Alter color from StiPanel object

Post by rafaelwithoeft »

Thank you!
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Alter color from StiPanel object

Post by Vladimir »

Hello,

We are always glad to help you!

Thank you.
Post Reply