MCPcopy Index your code
hub / github.com/controlsfx/controlsfx / start

Method start

fxsampler/src/main/java/fxsampler/SampleBase.java:52–67  ·  view source on GitHub ↗

{@inheritDoc}

(Stage primaryStage)

Source from the content-addressed store, hash-verified

50
51 /** {@inheritDoc} */
52 @Override public void start(Stage primaryStage) {
53 ServiceLoader<FXSamplerConfiguration> configurationServiceLoader = ServiceLoader.load(FXSamplerConfiguration.class);
54
55 primaryStage.setTitle(getSampleName());
56
57 Scene scene = new Scene((Parent)buildSample(this, primaryStage), 800, 800);
58 scene.getStylesheets().add(SampleBase.class.getResource("fxsampler.css").toExternalForm());
59 for (FXSamplerConfiguration fxsamplerConfiguration : configurationServiceLoader) {
60 String stylesheet = fxsamplerConfiguration.getSceneStylesheet();
61 if (stylesheet != null) {
62 scene.getStylesheets().add(stylesheet);
63 }
64 }
65 primaryStage.setScene(scene);
66 primaryStage.show();
67 }
68
69 /** {@inheritDoc} */
70 @Override public boolean isVisible() {

Callers

nothing calls this directly

Calls 8

buildSampleMethod · 0.95
loadMethod · 0.80
getResourceMethod · 0.80
getSceneStylesheetMethod · 0.80
getSampleNameMethod · 0.65
setTitleMethod · 0.45
addMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected