Archives for Java - Page 2

Java

Create your first JavaFX 8 Application with Eclipse

Directly integrated in the JDK of Java 8, JavaFX is the new recommended way to create and deliver desktop applications and rich internet applications (RIA) in Java. JavaFX must replace Swing as the standard GUI library for Java SE. However, both technologies will continue to be integrated in the JDK. You can have a preview of the JavaFX Architecture in…
Continue Reading
Java

Calculate shortest paths in Java by implementing Dijkstra’s Algorithm

Conceived by Edsger W. Dijsktra in 1956 and published three years later, Dijkstra’s algorithm is a one of the most known algorithms for finding the shortest paths between nodes in a graph. This algorithm is applied in a lot of domains. For example, once you have represented road networks in a graph, it becomes easy to calculate shortest paths inside…
Continue Reading
Java

Learn to make a MVC application with Swing and Java 8

The Model-View-Controller is a well known software architectural pattern ideal to implement user interfaces on computers by dividing an application intro three interconnected parts. Main goal of Model-View-Controller, also known as MVC, is to separate internal representations of an application from the ways information are presented to the user. Initially, MVC was designed for desktop GUI applications but it’s quickly…
Continue Reading
Java

Implement the Adapter Design Pattern in Java

In software engineering, a design pattern is a general reusable solution to a commonly occurring problem with a given context in software design. In that new serie of articles, you're going to discover how to implement some of the most known design patterns in Java. To start the serie, you're going to study the Adapter Design Pattern. The Adapter Design…
Continue Reading
Articles

Use your Java classes in the browser with JavaPoly.js

Java has always been usable in the browser since its creation. However, the browser needed the specific Java plugin to execute Java applications that was packaged inside applets. Then, a more flexible solution was created with Java Web Start but finally, it was always based on the applet technology. With the end announced of plugins support in browsers like Chrome…
Continue Reading
Articles

Discover Top 5 new features expected in Java 9

Java 8 has been released in 2014 and can be considered as a major version for Java Platform with introduction of Lambdas and Streams for example. But, one essential feature was missing ! Modular system, aka Jigsaw, has been postponed to Java 9. Originally planned for 2016, Java 9 has been reported to March 2017. It will be 3 years…
Continue Reading
Android

Oracle claims $9.3 billion damages from Google for use of Java API in Android

Latest twist in the Oracle / Google battle around Android, Oracle now claims $ billion damages from Google for use of Java API in Android. Oracle sued Google six years ago, claiming that Google needs a license to use Java API in Android that is become the market-leading mobile OS. Crucial question is to know if Google’s use of Java…
Continue Reading
Java

Learn to create a Tetris game in Java with Swing

Released in 1984, Tetris is a Russian tile-matching puzzle video game originally designed and programmed by Alexey Pajitnov. Tetris is based on usage of Tetrominoes. Where as we are in 2016, Tetris stays the most known game of history. In the following article, we're going to create a Tetris game in Java with Swing and Java 2D API. Programming Tip…
Continue Reading
Java

Easiest way to create a built-in Java HTTP Server

Introduced in JDK , package enables implementation of embedded HTTP servers. Oracle official Javadoc tells the following : "Provides a simple high-level HTTP server API, which can be used to build embedded HTTP servers". However, it’s important to consider that * packages are not part of the supported, public interface and may even disappear in upcoming Java releases. There is…
Continue Reading