Recent

Author Topic: How to change colors of the JProgressBar?  (Read 2526 times)

Atak_Snajpera

  • New Member
  • *
  • Posts: 11
How to change colors of the JProgressBar?
« on: January 06, 2022, 11:36:38 am »
I would like to change color of the progress bar and background.
https://i.postimg.cc/4y9K1w1M/fgh1.png

jmpessoa

  • Hero Member
  • *****
  • Posts: 2111
Re: How to change colors of the JProgressBar?
« Reply #1 on: January 07, 2022, 04:44:36 am »

Hi, Atak_Snajpera!

I will try some solution!


Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Mongkey

  • Full Member
  • ***
  • Posts: 215
Re: How to change colors of the JProgressBar?
« Reply #2 on: January 10, 2022, 02:33:52 pm »
You can do by laying 2 panels, with jimage inside, calculate the width of 1 panel as progress and the other one as background. You can fill it with gif image also.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2111
Re: How to change colors of the JProgressBar?
« Reply #3 on: January 17, 2022, 11:08:53 pm »
Done!

Improved jProgressBar component!
 
Added New methods:

    ApplyDrawableXML
    SetMarkerColor

Updated demo: "AppApplyDrawableXMLDemo1"

Thanks to All!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018