Tuesday Sep 30, 2014

JavaOne 2014: Using Type Annotations to Improve Code Quality

Today, Geertjan Wielenga (Principal Product Manager, Oracle) and Werner Dietl (Assistant Professor, University of Waterloo) hosted the session Using Type Annotations to Improve Code Quality. This session discussed how you can use type annotations to improve code quality through fine-grained documentation and support for pluggable type systems.

For more information, see Type Annotations and Pluggable Type Systems in the Java Tutorials.

JavaOne 2014: You’ve Got Your Streams on My Collections!

Today, Mike Duigou (Principal Member of Technical Staff, Oracle), Stuart Marks (Principal Member of Technical Staff, Oracle), and Paul Sandoz (Software Engineer, Oracle) hosted the community discussion You’ve Got Your Streams on My Collections! Topics discussed included the state of the Java Collection and Streams APIs and some of the best third-party libraries.

For more information about the Collections and Streams API, see Aggregate Operations and the Collections trail in the Java Tutorials.

JavaOne 2014: Understanding Java Garbage Collection

Today, Gil Tene, CTO, Azul Systems, presented the conference Understanding Java Garbage Collection. The conference classifies various garbage collection techniques currently available in JVMs such as generational, parallel, stop-the-world, incremental, and concurrent algorithms, and defines terms and metrics common to all collectors.

See the Java SE HotSpot Virtual Machine Garbage Collection Tuning Guide for more information.

Monday Sep 29, 2014

JavaOne 2014: Nashorn: JavaScript for the JVM

Today, Jim Laskey, multi-languages lead at Oracle, presented the conference Nashorn: JavaScript for the JVM. Nashorn is a JavaScript engine implemented fully in Java on the JVM.

For more information, see the Nashorn User's Guide.

Tuesday Jul 15, 2014

JDK 8u11 and JDK 7u65 released!

JDK 8u11 and JDK 7u65 are now available.

You can download the latest JDK releases from Java SE Downloads page.

For information on features included in this release, see JDK 8u11 Release Notes and 7u65 Release Notes.

Wednesday May 28, 2014

JDK 7u60 Released

JDK 7u60 is Released! You can download the latest JDK 7 release from Java SE Downloads page.

This release includes Java Mission Control 5.3 and other updates. See JDK 7u60 Release Notes for more information.

Tuesday Apr 15, 2014

JDK 8u5 and JDK 7u55 Documentation Updates

The Java Development Kit 8 Update 5 (JDK 8u5) and JDK 7u55 releases are available and can be downloaded from the Java SE Downloads page. For information about these releases, see the JDK 8u5 Release Notes and the JDK 7u55 Release Notes.

JDK 8u5 and 7u55 enhancements include the following:

  • The frequency of some security dialogs has been reduced on systems that run the same Rich Internet Application (RIA) multiple times.
  • If a stand-alone asterisk (*) is specified as the value for the Caller-Allowable-Codebase attribute, then calls from JavaScript code to RIA will show a security warning, and users have the choice to allow the call or block the call. For more information, see JAR File Manifest Attributes for Security (or the JDK 7 version of this section).

Friday Feb 07, 2014

Restructured Deployment Information

The deployment guide for Rich Internet Applications (RIAs) has been reorganized and relevant information from the obsolete pre-6u10 deployment and plugin guides has been updated and included. The obsolete guides have been removed from the JDK 7 documentation set and replaced with pages that direct you to the Java Rich Internet Applications Guide.

Due to the reorganization, the URL for some pages has changed. If you get a Page Not Found error, please use the Table of Contents for the Java Rich Internet Applications Guide to locate the page.

The pre-6u10 Deployment Guide and Plug-in Guide are available in the JDK 6 documentation set.

Friday Sep 20, 2013

JavaFX 8 Developer Preview Documents Released!

JavaFX Documentation

JavaFX 8 Developer Preview Documents were published today on http://docs.oracle.com/javafx. They comprise Getting Started with JavaFX 3D Graphics, Adding HTML Content to JavaFX Applications, and Embedding Swing Content in JavaFX Applications.

3D Graphics

A new document, Getting Started with JavaFX 3D Graphics, introduces the 3D graphics features that are included in the upcoming JavaFX 8 APIs. The features include 3D shapes, camera, lights, subscene, materials, and picking. The document also steps you through the creation of a simple 3D sample application, MoleculeSampleApp, that uses some of the 3D features discussed in the document.

WebView

The JavaFX WebView tutorial was extended to highlight the new features and improvements in the JavaFX 8 Web component. Review Supported Features of HTML5 for more information about additional HTML5 features including Web Sockets, Web Workers, and Web Fonts. Make the most of your WebView based applications with the new printing capabilities covered in Printing HTML Content.

Embedding Swing Content

The ability to embed JavaFX content in Swing applications has existed since the JavaFX 2.0 release. This tutorial introduces the SwingNode class available in the JavaFX 8 APIs that provides reverse integration. A new document describes how to embed Swing components in JavaFX applications and provides working applications that illustrate Swing buttons with HTML content embedded in a JavaFX application and interoperability between Swing and JavaFX buttons.

Tuesday Sep 10, 2013

JavaFX 2.2.40 Documentation Introduces the New Deployment Features

The JavaFX Deployment Guide was updated for the JavaFX 2.2.40 release to describe the new User JVM Arguments in the Ant tasks. Now you can create applications that allow users to override jvm options. For example, users can change the heap size for the application.

A new <fx:jvmuserarg> attribute has been added to <fx:platform>. This new attribute explicitly defines an attribute that can be overridden by users. For instance:

    <fx:platform>
        <fx:jvmuserarg name="-Xmx" value="768m" />
    </fx:platform>

For this specific case, -Xmx768m is passed as a default value for the heap size. The user can override this value in a user configuration file (on Linux and Mac) or in the registry in Windows.

For more information see the Deploying JavaFX Applications guide.

Thursday Jul 18, 2013

Learn Java Over The Summer

Hello Students! Hope you are enjoying your summer vacation! Summer trips are done, and I bet you've asked your parents the question they dread most - "I am bored. What do I do now?" :-)

If you are looking for ways to get the brain's juices flowing or just getting a head start on a high school AP computer science course, Java Tutorials are a great resource!

The following learning paths are perfect for students in middle school or high school.

Get set, go!

See the trails mentioned next for information about installing an IDE, learning the basics, and writing code with the help of code examples.

  • Getting Started – An introduction to Java technology and lessons on installing Java development software and using it to create a simple program.
  • Learning the Java Language – Lessons describing essential concepts such as classes, objects, inheritance, datatypes, conditions, loops, control flow, and more. You can skip over the generics lesson at the beginning and come back to it later after you feel comfortable with the language.
  • Essential Java Classes – Lessons on exceptions, basic input/output, concurrency, regular expressions, and the platform environment.

I am a visual person!

Check out JavaFX and SceneBuilder documentation to learn about developing animations and cool new apps!

I love it! What's next?

See the Java Tutorials Learning Paths page to learn more!

Good luck!

- Sowmya

Wednesday Mar 06, 2013

Java Tutorials Fifth Edition Book

The JDK documentation team is happy to announce that The Java® Tutorial, Fifth Edition book is now available on Amazon in printed book and kindle formats. The fifth edition is based on JDK 7 and contains tutorials and code samples for the following features and more:
  • New file I/O API (NIO.2) and migrating legacy code to the new API
  • Fork Join pool
  • Project Coin: try-with-resources statement, binary literals, diamond syntax
  • Updates to Generics tutorial
  • Expanded deployment coverage (applets, java web start applications)
  • Preparing for Java Programming Language Certification - A mapping of Java certification objectives to sections of the Java Tutorials.

- Sowmya

Thursday Dec 13, 2012

JavaFX 2.2.4 Documentation

JavaFX 2.2.4 and JDK 7u10 were released on Tuesday. In addition to the release documentation, the following new information is provided:

  • A new document, Using the Image Ops API, describes how to read and write raw pixel data to and from JavaFX images.
  • The Handling JavaFX Events document has been updated with more information on touch events. The Working with Touch Events chapter and Touch Events sample provide information about handling individual touch points to provide sophisticated responses to touch actions.
  • The Implementing Best Practices document has been updated to include information about running tasks on background threads.
  • The Troubleshooting section of Deploying JavaFX Applications now includes a section about disabling the automatic proxy configuration in your application code.

Other documents were updated to reflect minor bug fixes.

You can download JavaFX 2.2.4 from OTN. For all tutorials and API documentation, see http://docs.oracle.com/javafx.

Friday Aug 24, 2012

Take a snapshot with JavaFX!

JavaFX 2.2 has a "snapshot" feature that enables you to take a picture of any node or scene. Take a look at the API Documentation and you will find new snapshot methods in the javafx.scene.Scene class.

The most basic version has the following signature:

public WritableImage snapshot(WritableImage image)

The WritableImage class (also introduced in JavaFX 2.2) lives in the javafx.scene.image package, and represents a custom graphical image that is constructed from pixels supplied by the application.

In fact, there are 5 new classes in javafx.scene.image:

  • PixelFormat: Defines the layout of data for a pixel of a given format.
  • WritablePixelFormat: Represents a pixel format that can store full colors and so can be used as a destination format to write pixel data from an arbitrary image.
  • PixelReader: Defines methods for retrieving the pixel data from an Image or other surface containing pixels.
  • PixelWriter: Defines methods for writing the pixel data of a WritableImage or other surface containing writable pixels.
  • WritableImage: Represents a custom graphical image that is constructed from pixels supplied by the application, and possibly from PixelReader objects from any number of sources, including images read from a file or URL.

The API documentation contains lots of information, so go investigate and have fun with these useful new classes!

-- Scott Hommel

Tuesday Jun 19, 2012

JavaFX 2.1.1 Documentation

JavaFX 2.1.1 released on June 12, and few documents were updated on the docs.oracle.com/javafx website.

Besides a new set of release documentation, the Concurrency in JavaFX article was updated with a discussion of how to cancel a task, with a code sample to illustrate that. A new section describes the WorkerStateEvent class and how to use the convenience methods such as cancelled, failed, running, scheduled, and succeeded, which are invoked when the Worker implementation state changes.

Other documents were updated to reflect minor bug fixes, many of them contributed by JavaFX readers using the feedback alias in the sidebar of all of our documentation. Yes, we do respond and pay attention to what you say and at least try to point you in the right direction if we can't solve a problem you're having with a tutorial. We appreciate your feedback!

About

Blog about Java technology documentation and news about Java releases.

Search

Categories
Archives
« September 2015
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today