diff --git a/Kapitel 10/10.2/basic-shapes/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 10/10.2/basic-shapes/src/main/java/de/javafxbuch/MainApp.java index cb18196..6431a36 100644 --- a/Kapitel 10/10.2/basic-shapes/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 10/10.2/basic-shapes/src/main/java/de/javafxbuch/MainApp.java @@ -3,24 +3,17 @@ import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; -import javafx.scene.effect.BlurType; -import javafx.scene.effect.DropShadow; import javafx.scene.paint.Color; import javafx.scene.shape.Arc; import javafx.scene.shape.ArcType; import javafx.scene.shape.Circle; -import javafx.scene.shape.ClosePath; import javafx.scene.shape.CubicCurve; -import javafx.scene.shape.CubicCurveTo; import javafx.scene.shape.Ellipse; import javafx.scene.shape.Line; -import javafx.scene.shape.MoveTo; -import javafx.scene.shape.Path; import javafx.scene.shape.Polygon; import javafx.scene.shape.Polyline; import javafx.scene.shape.QuadCurve; import javafx.scene.shape.Rectangle; -import javafx.scene.shape.SVGPath; import javafx.scene.shape.Shape; import javafx.scene.shape.StrokeLineCap; import javafx.scene.shape.StrokeLineJoin; diff --git a/Kapitel 10/10.3/svg-path/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 10/10.3/svg-path/src/main/java/de/javafxbuch/MainApp.java index 78e3ae9..9c392c7 100644 --- a/Kapitel 10/10.3/svg-path/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 10/10.3/svg-path/src/main/java/de/javafxbuch/MainApp.java @@ -3,30 +3,11 @@ import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; -import javafx.scene.effect.BlurType; -import javafx.scene.effect.DropShadow; -import javafx.scene.paint.Color; -import javafx.scene.shape.Arc; -import javafx.scene.shape.ArcType; -import javafx.scene.shape.Circle; import javafx.scene.shape.ClosePath; -import javafx.scene.shape.CubicCurve; import javafx.scene.shape.CubicCurveTo; -import javafx.scene.shape.Ellipse; -import javafx.scene.shape.Line; import javafx.scene.shape.MoveTo; import javafx.scene.shape.Path; -import javafx.scene.shape.Polygon; -import javafx.scene.shape.Polyline; -import javafx.scene.shape.QuadCurve; -import javafx.scene.shape.Rectangle; import javafx.scene.shape.SVGPath; -import javafx.scene.shape.Shape; -import javafx.scene.shape.StrokeLineCap; -import javafx.scene.shape.StrokeLineJoin; -import javafx.scene.text.Font; -import javafx.scene.text.Text; -import javafx.scene.text.TextAlignment; import javafx.stage.Stage; public class MainApp extends Application { diff --git a/Kapitel 13/13.2/webview-js/src/main/java/de/javafxbuch/Series.java b/Kapitel 13/13.2/webview-js/src/main/java/de/javafxbuch/Series.java index 09d76c5..84c9e56 100644 --- a/Kapitel 13/13.2/webview-js/src/main/java/de/javafxbuch/Series.java +++ b/Kapitel 13/13.2/webview-js/src/main/java/de/javafxbuch/Series.java @@ -1,8 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package de.javafxbuch; import java.util.Arrays; diff --git a/Kapitel 13/13.2/webview-js/src/main/java/de/javafxbuch/WebViewCharts.java b/Kapitel 13/13.2/webview-js/src/main/java/de/javafxbuch/WebViewCharts.java index 4bd56d6..b93535b 100644 --- a/Kapitel 13/13.2/webview-js/src/main/java/de/javafxbuch/WebViewCharts.java +++ b/Kapitel 13/13.2/webview-js/src/main/java/de/javafxbuch/WebViewCharts.java @@ -1,8 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package de.javafxbuch; import javafx.application.Application; diff --git a/Kapitel 13/13.3/webview-js-callback/src/main/java/de/javafxbuch/WebViewForms.java b/Kapitel 13/13.3/webview-js-callback/src/main/java/de/javafxbuch/WebViewForms.java index d9ffb68..0ea310e 100644 --- a/Kapitel 13/13.3/webview-js-callback/src/main/java/de/javafxbuch/WebViewForms.java +++ b/Kapitel 13/13.3/webview-js-callback/src/main/java/de/javafxbuch/WebViewForms.java @@ -1,8 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package de.javafxbuch; import javafx.application.Application; diff --git a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/HomeTimeline.java b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/HomeTimeline.java index 537289d..2ec0da2 100644 --- a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/HomeTimeline.java +++ b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/HomeTimeline.java @@ -1,13 +1,7 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package de.javafxbuch.tweetalot; import javafx.concurrent.ScheduledService; import javafx.concurrent.WorkerStateEvent; -import javafx.event.EventHandler; import javafx.scene.control.ScrollPane; import javafx.util.Duration; import twitter4j.ResponseList; diff --git a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/MainApp.java b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/MainApp.java index 1b5a259..258feab 100644 --- a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/MainApp.java +++ b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/MainApp.java @@ -1,10 +1,13 @@ package de.javafxbuch.tweetalot; -import java.io.BufferedReader; -import java.io.InputStreamReader; import java.util.logging.Level; import java.util.logging.Logger; import java.util.prefs.Preferences; + +import org.w3c.dom.Document; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; + import javafx.application.Application; import javafx.application.Platform; import javafx.beans.value.ChangeListener; @@ -21,9 +24,6 @@ import javafx.scene.web.WebEngine; import javafx.scene.web.WebView; import javafx.stage.Stage; -import org.w3c.dom.Document; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; import twitter4j.Twitter; import twitter4j.TwitterException; import twitter4j.TwitterFactory; @@ -41,8 +41,7 @@ public void start(Stage stage) throws Exception { Twitter twitter = TwitterFactory.getSingleton(); Preferences prefs = Preferences.userNodeForPackage(MainApp.class); RequestToken requestToken = twitter.getOAuthRequestToken(); - Font.loadFont(getClass().getResource("fontawesome-webfont.ttf"). - toExternalForm(), 12); + Font.loadFont(getClass().getResource("fontawesome-webfont.ttf").toExternalForm(), 12); root = new BorderPane(); StackPane stackPane = new StackPane(root); final WebView webView = new WebView(); diff --git a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/ObservableTimelineList.java b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/ObservableTimelineList.java index 8a6759e..b371af0 100644 --- a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/ObservableTimelineList.java +++ b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/ObservableTimelineList.java @@ -1,8 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package de.javafxbuch.tweetalot; import javafx.collections.ObservableListBase; diff --git a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/RefreshService.java b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/RefreshService.java index 17b48af..fa42436 100644 --- a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/RefreshService.java +++ b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/RefreshService.java @@ -1,9 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ - package de.javafxbuch.tweetalot; import javafx.concurrent.Task; diff --git a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/RefreshTask.java b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/RefreshTask.java index 0222c81..9204fdd 100644 --- a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/RefreshTask.java +++ b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/RefreshTask.java @@ -1,9 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ - package de.javafxbuch.tweetalot; import javafx.concurrent.Task; diff --git a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/StatusView.java b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/StatusView.java index 3b5677b..93c3022 100644 --- a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/StatusView.java +++ b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/StatusView.java @@ -1,8 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package de.javafxbuch.tweetalot; import javafx.geometry.Insets; diff --git a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/TimelineView.java b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/TimelineView.java index a3e1e45..dd912d4 100644 --- a/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/TimelineView.java +++ b/Kapitel 13/13.4/tweetalot/src/main/java/de/javafxbuch/tweetalot/TimelineView.java @@ -1,8 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package de.javafxbuch.tweetalot; import javafx.collections.ObservableList; diff --git a/Kapitel 14/14.1/media-miniplayer/src/main/java/de/javafxbuch/MiniPlayer.java b/Kapitel 14/14.1/media-miniplayer/src/main/java/de/javafxbuch/MiniPlayer.java index e73b06f..d26e2c6 100644 --- a/Kapitel 14/14.1/media-miniplayer/src/main/java/de/javafxbuch/MiniPlayer.java +++ b/Kapitel 14/14.1/media-miniplayer/src/main/java/de/javafxbuch/MiniPlayer.java @@ -11,7 +11,6 @@ import javafx.scene.paint.Color; import javafx.stage.Stage; import javafx.stage.StageStyle; -import javafx.util.Duration; /** * diff --git a/Kapitel 14/14.2/media-video/src/main/java/de/javafxbuch/VideoPlayer.java b/Kapitel 14/14.2/media-video/src/main/java/de/javafxbuch/VideoPlayer.java index fe0b397..73608a4 100644 --- a/Kapitel 14/14.2/media-video/src/main/java/de/javafxbuch/VideoPlayer.java +++ b/Kapitel 14/14.2/media-video/src/main/java/de/javafxbuch/VideoPlayer.java @@ -2,7 +2,6 @@ import javafx.animation.FadeTransition; import javafx.application.Application; -import static javafx.application.Application.launch; import javafx.application.Platform; import javafx.scene.Scene; import javafx.scene.control.Button; diff --git a/Kapitel 3/3.1.6/read-only-properties/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 3/3.1.6/read-only-properties/src/main/java/de/javafxbuch/MainApp.java index 1204bfe..bbc5575 100644 --- a/Kapitel 3/3.1.6/read-only-properties/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 3/3.1.6/read-only-properties/src/main/java/de/javafxbuch/MainApp.java @@ -3,9 +3,6 @@ import javafx.application.Application; import javafx.application.Platform; import javafx.beans.property.StringProperty; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class MainApp extends Application { diff --git a/Kapitel 3/3.2.6/binding-bidirectional/src/main/java/de/javafxbuch/BidirectionalStringBinding.java b/Kapitel 3/3.2.6/binding-bidirectional/src/main/java/de/javafxbuch/BidirectionalStringBinding.java index 841cea8..0477ac1 100644 --- a/Kapitel 3/3.2.6/binding-bidirectional/src/main/java/de/javafxbuch/BidirectionalStringBinding.java +++ b/Kapitel 3/3.2.6/binding-bidirectional/src/main/java/de/javafxbuch/BidirectionalStringBinding.java @@ -8,7 +8,6 @@ import javafx.application.Application; import javafx.beans.binding.Bindings; import javafx.beans.property.DoubleProperty; -import javafx.beans.property.SimpleDoubleProperty; import javafx.beans.property.StringProperty; import javafx.scene.Scene; import javafx.scene.control.Slider; diff --git a/Kapitel 3/3.3.3/binding-listeners/src/main/java/de/javafxbuch/PerformanceChangeListener.java b/Kapitel 3/3.3.3/binding-listeners/src/main/java/de/javafxbuch/PerformanceChangeListener.java index cafc53f..0935c23 100644 --- a/Kapitel 3/3.3.3/binding-listeners/src/main/java/de/javafxbuch/PerformanceChangeListener.java +++ b/Kapitel 3/3.3.3/binding-listeners/src/main/java/de/javafxbuch/PerformanceChangeListener.java @@ -1,7 +1,6 @@ package de.javafxbuch; import javafx.application.Application; -import javafx.application.Platform; import javafx.beans.binding.Bindings; import javafx.beans.binding.NumberBinding; import javafx.beans.property.DoubleProperty; diff --git a/Kapitel 3/3.5/binding-lazy/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 3/3.5/binding-lazy/src/main/java/de/javafxbuch/MainApp.java index 914712d..a7f33f2 100644 --- a/Kapitel 3/3.5/binding-lazy/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 3/3.5/binding-lazy/src/main/java/de/javafxbuch/MainApp.java @@ -1,7 +1,6 @@ package de.javafxbuch; import javafx.application.Application; -import static javafx.application.Application.launch; import javafx.application.Platform; import javafx.stage.Stage; diff --git a/Kapitel 4/4.2.3/controls-button/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 4/4.2.3/controls-button/src/main/java/de/javafxbuch/MainApp.java index b640264..dfd9e93 100644 --- a/Kapitel 4/4.2.3/controls-button/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 4/4.2.3/controls-button/src/main/java/de/javafxbuch/MainApp.java @@ -4,8 +4,6 @@ import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.ContentDisplay; -import javafx.scene.control.Label; -import javafx.scene.control.Tooltip; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.StackPane; diff --git a/Kapitel 4/4.2.9/controls-treetableview/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 4/4.2.9/controls-treetableview/src/main/java/de/javafxbuch/MainApp.java index 2bd5f70..242dc1c 100644 --- a/Kapitel 4/4.2.9/controls-treetableview/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 4/4.2.9/controls-treetableview/src/main/java/de/javafxbuch/MainApp.java @@ -2,14 +2,10 @@ import javafx.application.Application; import javafx.scene.Scene; -import javafx.scene.control.TableCell; import javafx.scene.control.TreeItem; import javafx.scene.control.TreeTableColumn; import javafx.scene.control.TreeTableView; import javafx.scene.control.cell.TreeItemPropertyValueFactory; -import javafx.scene.image.Image; -import javafx.scene.image.ImageView; -import javafx.scene.layout.HBox; import javafx.scene.layout.StackPane; import javafx.stage.Stage; diff --git a/Kapitel 5/5.10/tweetalot/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 5/5.10/tweetalot/src/main/java/de/javafxbuch/MainApp.java index 3361883..a3cef12 100644 --- a/Kapitel 5/5.10/tweetalot/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 5/5.10/tweetalot/src/main/java/de/javafxbuch/MainApp.java @@ -2,25 +2,16 @@ import java.util.logging.Level; import java.util.logging.Logger; + import javafx.application.Application; -import javafx.collections.ObservableList; import javafx.geometry.Orientation; import javafx.scene.Scene; import javafx.scene.control.Button; -import javafx.scene.control.ListCell; -import javafx.scene.control.ListView; import javafx.scene.control.ToolBar; import javafx.scene.layout.BorderPane; -import javafx.scene.layout.VBox; import javafx.scene.text.Font; -import javafx.scene.text.Text; import javafx.stage.Stage; -import javafx.util.Callback; -import twitter4j.ResponseList; -import twitter4j.Status; -import twitter4j.Twitter; import twitter4j.TwitterException; -import twitter4j.TwitterFactory; public class MainApp extends Application { @@ -52,7 +43,6 @@ public void start(Stage stage) throws Exception { stage.setScene(new Scene(root, 400, 640)); stage.setTitle("Tweetalot"); stage.show(); - } } diff --git a/Kapitel 5/5.8/layout-unmanaged/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 5/5.8/layout-unmanaged/src/main/java/de/javafxbuch/MainApp.java index 7c8b980..4cdee74 100644 --- a/Kapitel 5/5.8/layout-unmanaged/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 5/5.8/layout-unmanaged/src/main/java/de/javafxbuch/MainApp.java @@ -3,7 +3,6 @@ import javafx.application.Application; import javafx.collections.FXCollections; import javafx.collections.ObservableList; -import javafx.scene.Group; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.chart.LineChart; diff --git a/Kapitel 5/5.9/layout-custom/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 5/5.9/layout-custom/src/main/java/de/javafxbuch/MainApp.java index 52a5f0e..a46ff18 100644 --- a/Kapitel 5/5.9/layout-custom/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 5/5.9/layout-custom/src/main/java/de/javafxbuch/MainApp.java @@ -1,13 +1,13 @@ package de.javafxbuch; import java.net.URISyntaxException; + import javafx.application.Application; import javafx.event.EventHandler; import javafx.geometry.Insets; import javafx.scene.Node; import javafx.scene.Parent; import javafx.scene.Scene; -import javafx.scene.control.Label; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.input.MouseEvent; @@ -16,7 +16,6 @@ import javafx.scene.layout.CornerRadii; import javafx.scene.layout.VBox; import javafx.scene.paint.Color; -import javafx.scene.text.Font; import javafx.stage.Stage; /** diff --git a/Kapitel 8/8.3.3/charts-bar/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 8/8.3.3/charts-bar/src/main/java/de/javafxbuch/MainApp.java index 79afea5..e77c667 100644 --- a/Kapitel 8/8.3.3/charts-bar/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 8/8.3.3/charts-bar/src/main/java/de/javafxbuch/MainApp.java @@ -2,7 +2,6 @@ import javafx.application.Application; import javafx.collections.FXCollections; -import javafx.collections.ObservableList; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.chart.BarChart; diff --git a/Kapitel 9/9.2.2/task-simple/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 9/9.2.2/task-simple/src/main/java/de/javafxbuch/MainApp.java index 27a32f4..e7eb10e 100644 --- a/Kapitel 9/9.2.2/task-simple/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 9/9.2.2/task-simple/src/main/java/de/javafxbuch/MainApp.java @@ -3,14 +3,12 @@ import javafx.application.Application; import javafx.beans.binding.Bindings; import javafx.concurrent.Task; -import javafx.concurrent.WorkerStateEvent; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.stage.Stage; -import static javax.management.Query.value; public class MainApp extends Application { diff --git a/Kapitel 9/9.3.1/progressbar/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 9/9.3.1/progressbar/src/main/java/de/javafxbuch/MainApp.java index 020336b..dab1108 100644 --- a/Kapitel 9/9.3.1/progressbar/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 9/9.3.1/progressbar/src/main/java/de/javafxbuch/MainApp.java @@ -1,13 +1,10 @@ package de.javafxbuch; import javafx.application.Application; -import javafx.beans.binding.Bindings; -import javafx.concurrent.ScheduledService; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; -import javafx.scene.control.Label; import javafx.scene.control.ProgressBar; import javafx.scene.layout.VBox; import javafx.stage.Stage;