JTerminal documentation Help

ProgressBar

The ProgressBar can visually display a process from 0 to 100 percent.

ProgressBarComponent legacyProgressBar = new ProgressBarComponent(); legacyProgressBar.progress(.7F); legacyProgressBar.style(new LegacyProgressBarStyle()); legacyProgressBar.width(30); ProgressBarComponent shadeProgressBar = new ProgressBarComponent(); shadeProgressBar.progress(.5F); shadeProgressBar.style(new ShadeProgressBarStyle()); shadeProgressBar.width(30);
progressbar example

Methods

Method

Description

void progress(float)

Sets the status value (0-1)

float progress()

Return current status value

void style(ProgressBarStyle)

Sets the style

ProgressBarStyle style()

Returns the style

Last modified: 01 Juni 2025