Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Classe du Slider conçu pour genericsystem
- Loading branch information
1 parent
0981104
commit c0cc7c0
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
gs-cv/src/main/java/org/genericsystem/cv/params/SliderGS.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package org.genericsystem.cv.params; | ||
import javafx.application.Application; | ||
import javafx.scene.Group; | ||
import javafx.scene.Scene; | ||
import javafx.scene.paint.Color; | ||
import javafx.stage.Stage; | ||
import javafx.scene.control.Slider; | ||
import javafx.scene.control.Label; | ||
|
||
@SuppressWarnings("restriction") | ||
public class SliderGS extends Application { | ||
|
||
final Slider sliderGS = new Slider(0,1,0.5); | ||
final Label sliderValueCaption = new Label("Slider Value:"); | ||
final Label sliderValue = new Label(Double.toString(sliderGS.getValue())); | ||
|
||
final static Color textColor = Color.BLACK; | ||
|
||
|
||
@Override | ||
public void start(Stage primaryStage) throws Exception { | ||
// TODO Auto-generated method stub | ||
Group root = new Group(); | ||
Scene scene = new Scene(root, 600, 400); | ||
primaryStage.setScene(scene); | ||
primaryStage.setTitle("Slider Sample"); | ||
scene.setFill(Color.WHITE); | ||
} | ||
|
||
public static void main(String[] args) { | ||
launch(args); | ||
} | ||
|
||
} |