Wednesday, September 2, 2015

Introducing JavaFX 8 Programming (Oracle Press)


Learn the Fundamentals of JavaFX 8 from Programming Guru Herb Schildt

Introducing JavaFX 8 Programming provides a fast-paced, practical introduction to JavaFX, Java’s next-generation GUI programming framework. In this easy-to-read guide, best-selling author Herb Schildt presents the key topics and concepts you’ll need to start developing modern, dynamic JavaFX GUI applications. The book begins with the fundamentals, including the general form of a JavaFX program. You then advance to event handling, controls, images, fonts, layouts, effects, transforms, animations (including 3-D animations), menus, and more. Numerous complete examples are included that put key topics and techniques into action. Designed for Java programmers, the book’s focus is on the JavaFX API and all examples are written entirely in Java. Best of all, the book is written in the clear, crisp, uncompromising style that has made Herb Schildt the choice of millions worldwide.

  • Learn the general form of a JavaFX program
  • Work with scenes and stages
  • Understand the fundamentals of JavaFX event handling
  • Explore several controls, such as buttons, list views, sliders, trees, tables, scroll panes, and more
  • Work with images, fonts, and layouts
  • Explore the JavaFX menu system
  • Use visual effects and transforms
  • Incorporate 2-D and 3-D animation
  • Present data in JavaFX charts
  • Display Web-based content using WebView and WebEngine

Saturday, August 29, 2015

JavaFX on Mobile

When JavaFX Script was released, the mobile component was an important part. It was also one of the reasons many people and analysts believed in JavaFX as a real cross-platform client-side framework. For a number of reasons, JavaFX on mobile disappeared from the official Java roadmap. Fortunately, the OpenJFX team at Oracle made all the required sources available, and the JavaFXPorts initiative worked on providing JavaFX SDK's for the mobile platforms. In this session, it will show the current state of JavaFX on Mobile. This video will show how to create a real cross-platform JavaFX Application using an IDE, and how easy it actually is to deploy that application on Android and iOS devices. Also will show some of the features and limitations, and talk about the eco-system that is starting to take shape.

Get info of running jvm, os and cpu - tested on Windows 10

Java example to display information of running jvm, os and cpu:

package java_systemproperties;
 
/**
 * @web http://java-buddy.blogspot.com/
 */
public class Java_SystemProperties {
 
    public static void main(String[] args) {
        System.out.println("java.vm.name:\t" 
                + System.getProperty("java.vm.name"));
        System.out.println("java.vm.specification.name:\t" 
                + System.getProperty("java.vm.specification.name"));
        System.out.println("java.vm.specification.version:\t" 
                + System.getProperty("java.vm.specification.version"));
        System.out.println("java.vm.specification.vendor:\t" 
                + System.getProperty("java.vm.specification.vendor"));
        
        System.out.println("os.name:\t" + System.getProperty("os.name"));
        System.out.println("os.version:\t" + System.getProperty("os.version"));
        System.out.println("os.arch:\t" + System.getProperty("os.arch"));
        System.out.println("sun.arch.data.model:\t" 
                + System.getProperty("sun.arch.data.model") + " bit");
        
        System.out.println("PROCESSOR_IDENTIFIER:\t" 
                + System.getenv("PROCESSOR_IDENTIFIER"));
        System.out.println("PROCESSOR_ARCHITECTURE:\t" 
                + System.getenv("PROCESSOR_ARCHITECTURE"));
        System.out.println("NUMBER_OF_PROCESSORS:\t" 
                + System.getenv("NUMBER_OF_PROCESSORS"));

    }
}


Run on Windows 10, with Intel i5 64 bit CPU
Related: Get system properties with System.getProperties()