My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

Enhance any swing components with a busy state

JBusyComponent works as follow:

  • Provide a BusyModel that allow you to maintain and control busy properties for your component.
  • A view that is the enhanced component that can now be busy
  • An UI for render by overlay the busy state
  • BusyIcon for smart and simple to use icon that can render a progress bar
  • Extrapolate remaining time on determinate task
  • Provide a BusySwingWorker for an easier integration with SwingWorker tasks (new in v1.2.2)

The BusyModel

A BusyModel is the data model controlling busy properties of some components. When the model is on a busy state, the view becomes inaccessible and a smart overlay animation show it.

This animation can include a progress bar that reflet the underlying job progression or use a BusyIcon. If you enable the cancellable property, a cancel button will be shown also.

The BusyModel manage all busy properties

  • isBusy() / setBusy(boolean) defines if the model is currently busy or not
  • isDeterminate() / setDeterminate(boolean) defines if the model is determinate and provide BoundedRangeModel interface
  • isCancellable() / setCancellable(boolean) indicate if the underlying job when busy is cancellable

Maven project integration

  • Add in your pom.xml a dependency into JBusyComponent artifact:
  • <dependency>
        <groupId>org.divxdede</groupId>
        <artifactId>jbusycomponent</artifactId>
        <version>1.2.2</version>
    </dependency> 

The Maven Central Repository contains released versions. If you want use snapshot or staged versions, refer to the Nexus OSS Repository.

Manual integration

This project requires 3 libraries that you can donwload manually:

Powered by Google Project Hosting