Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.35 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.35 KB

Progress Bar Java

lightweight library (~75 kb) for setting the percentage download status for the tray icon on Windows OS

Using the library

For the library to work, you need to copy one of the necessary compiled native files .dll to any location on your computer. You can compile them yourself, or take ready-made ones from /src/main/cpp/out.

After that, load the library ProgressBar.loadLib(File file) and specify JavaFX/JFrame/LWJGL/LibGDX and other window name: ProgressBar.setWindowName(String name).

Setting Progress value

Use the ProgressBar.setProgressValue(int value) method to set the current load value. You can set the value from 0 to 100 inclusive.

Setting Progress state

Use the ProgressBar.setProgressState(ProgressState state) method to set the boot state. The enum ProgressState is used for configuration.

Here are its types:

  • NO_PROGRESS - Disables the download.
  • NORMAL - Enables standard loading via percentages.
  • PAUSE - Changes the color of the tray status to yellow, indicates a pause.
  • STOP_ERROR - Changes the color of the tray status to red, indicates an error.
  • INDETERMINATE - Disables the display of the download percentage value, denotes a download with an unknown download percentage.