-
Java AWT Drawing rectangle, line and circle
The java.awt libraries are set of classes provided by Java in order to draw shapes on a window. The abbreviation AWT stands for Abstract Windowing Toolkit. Today, the library has been converted into a huge set of classes which allows the user to create an entire GUI based application. The visual appearance of these classes depends on the platform on which the application runs.
Date: 2019-08-17 View: 1520
-
JavaFX Animated Ball Example
The Bouncing Ball is the “Hello World” of animations in JavaFx. It’s simple to write, easy to understand and reveals the potential of JavaFx even from this primitive stage.
Date: 2019-08-11 View: 1520
-
Spring Boot non-web application example
In Spring Boot, to create a non-web application, implements CommandLineRunner and override the run method, for example :
Date: 2019-08-11 View: 1520
-
Java How to Split String by New Line
In Java, we can use regex \\r?\\n to split a String by new line.
Date: 2019-08-11 View: 1520
-
Spring Boot Run code when the application starts
In Spring Boot, we can create a CommandLineRunner bean to run code when the application is fully started.
Date: 2019-08-11 View: 1520
-
Java Add new line in String
Different operating system has a different new line or line separator string:
Date: 2019-08-11 View: 1520