// Small indicatorJCircularProgress small = new JCircularProgress(40, 8);small.setProgress(0.5);// Large indicatorJCircularProgress large = new JCircularProgress(120, 30);large.setProgress(0.75);
JCircularProgress progress = new JCircularProgress();progress.setColor("#2196F3");Timeline animation = new Timeline( new KeyFrame(Duration.ZERO, new KeyValue(progress.progressProperty(), 0)), new KeyFrame(Duration.seconds(3), new KeyValue(progress.progressProperty(), 1.0)));animation.play();
HBox indicators = new HBox(24);JCircularProgress cpu = new JCircularProgress(60, 12);cpu.setProgress(0.45);cpu.setColor("#FF5722");JCircularProgress memory = new JCircularProgress(60, 12);memory.setProgress(0.67);memory.setColor("#4CAF50");JCircularProgress disk = new JCircularProgress(60, 12);disk.setProgress(0.82);disk.setColor("#FFC107");indicators.getChildren().addAll( createLabeledProgress("CPU", cpu), createLabeledProgress("Memory", memory), createLabeledProgress("Disk", disk));
JCircularProgress progress = new JCircularProgress();// Bind to a data sourceDoubleProperty dataValue = new SimpleDoubleProperty();progress.progressProperty().bind(dataValue.divide(100.0));// Update the valuedataValue.set(65); // Sets progress to 65%