Skip to content

The library helps to set the loading status of your application in the windows taskbar

License

Notifications You must be signed in to change notification settings

ObvilionNetwork/progress-bar-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The library helps to set the loading status of your application in the windows taskbar

Resources

License

Stars

Watchers

Forks

Packages

No packages published