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

Tuesday Jun 18, 2013

JDK 7u25 and JavaFX 2.2.25 Documentation Updates

We are pleased to announce that the Java Development Kit 7 Update 25 (JDK 7u25) release with JavaFX 2.2.25 is live. You can download it from the Java SE Downloads page. Find more information about the new features in the JDK 7u25 Release Notes.

The JDK 7u25 and JavaFX 2.2.25 releases come with various updates in the Java documentation.

Changes to the Java Rich Internet Applications Development and Deployment Guide:

  • Perform Certificate Checks and Check for Certificate Revocation Using sections describe new options for checking that a signing certificate has not been revoked before an applet or Java Web Start application is run.
  • Preventing a RIA from Being Repurposed describes the new Permissions and Codebase attributes for the JAR file manifest. These attributes are used to defend RIAs against unauthorized code repurposing. If the values in the manifest do not match the values in the JNLP file or the applet tag, the RIA is blocked.
  • Security Dialogs provides information on the prompts that are shown when a RIA is started.

Changes to the Deployment Trail of the Java Tutorials:

The File Chooser chapter of the UI Controls tutorial has become the main addition to the JavaFX documentation set. This chapter explains how to use the FileChooser class of the JavaFX API to enable navigating the file system. The document comes with several samples to explain how to open one or several files with the associated application, configure a file chooser dialog window, and save the application content. You can study the source code of the FileChooserSample application or download the NetBeans project with all the samples available in the JavaFX UI Controls tutorial. The WebView tutorial is reworked by the JavaFX 2.2.25 release to address changes in the WebViewSample application. Find the modified version at docs.oracle.com/javafx.

For all tutorials, guides, and API documentation, see Java SE Technical Documentation and JavaFX 2 Documentation

Thursday Apr 25, 2013

JavaOne Russia: First-Hand Impressions

Alla Redko from the Java Documentation team shares her impressions of the two-day developer conference in Moscow.

All the JavaOne conferences start with the keynotes and this time wasn't an exception. The conference hall was crowded with the developers from different local and international IT companies. Grigori Labzovsky and Valery Lanovenko, the directors of St. Petersburg and Moscow Oracle sites, cordially greeted the participants and set the tone of the event. They passed the baton to Nandini Ramani who launched the JavaOne Russia conference and announced Oracle strategy and roadmap for the Java technologies. Technical keynote presentations led by Stephen Chin started with the Kiosk demonstration, continued by the overview of the Embedded technologies and an excellent success story of using Java ME 3.2, and concluded with the bright JavaFX 3D presentation given by Jim Weaver.

The Java Client Technologies track started shortly after the keynote with the presentation about the new FX Features in JDK 8 by Jim Weaver. He gave an overview of the new FX capabilities, demonstrated the Metronome demo, and explained how developers could benefit from using Lambda Expressions. Being a professional technology ambassador, Jim presented with passion and enthusiasm actively encouraging developers to join the FX community and participate in the OpenJFX project.

Sergey Troshin and Andrey Petushkov from St. Petersburg Development Center gave a presentation about the Java ME Embedded technologies. They talked about the diversity of mobile devices, introduced the benefits that Java has brought to the embedded world, and provided solutions for Java optimization for embedded environments. I was particularly pleased with the fact that Sergey and Andrey named the docs.oracle.com/javame as the key source of information about Java ME technologies and products.

The second day of the conference started with Rapsberry Pi Nighthacking by Stephen Chin. Because the number of participants was relatively small, he turned the presentation into an informal discussion and live demonstration that were cordially received by the audience. Everyone in the hall was impressed with the demo run on Raspberry Pi and Chalkboard Electronics Touchscreen (tablet).

Jim Weaver continued presenting at the Java Client Technologies track and totally captivated participants with the presentation about powerful capabilities of JavaFX 3D. He showed how to create 3D primitive shapes, apply materials and textures, map images to the shapes. If you’re thinking about creating a cylindrical or cubic representation of the Earth, ask Jim!

Daniel Blaukopf, talked about Java SE on embedded devices. What impressed me the most was that his presentation had been developed totally in JavaFX (instead of traditional Microsoft Power Point) and run on a Raspberry Pi. Daniel gave an overview of the Java SE Embedded platform, demonstrated the supported devices and proof concepts, and showed a live JavaFX application running on a Raspberry Pi.

The last but not the least conference event was the hands-on-lab with the title “Playing to the Strength of JavaFX and HTML5” given by Jim Weaver. Because the hands-on-lab was based on the WebView tutorial that is part of JavaFX documentation, Jim invited me to assist. It has been a great and totally new experience helping about the lab and answering tricky but interesting questions.

The organizers of JavaOne Russia are going to publish the conference materials at the Content Catalog. Watch for updates at http://www.oracle.com/javaone/ru-en/index.html.

— Alla Redko

Monday Apr 22, 2013

New documentation: Using Scene Builder with Java IDEs

A new JavaFX Scene Builder 1.1 developer preview documentation, Using Scene Builder with Java IDEs, has been published on http://docs.oracle.com/javafx. It describes how you can use NetBeans IDE, Eclipse, and IntelliJ IDEA to easily create a JavaFX project and edit an FXML file with Scene Builder to build your application's UI.

You can download the latest Scene Builder 1.1 developer preview build from the JavaFX Scene Builder Developer Preview Download page. Use the Scene Builder 1.1 Developer Preview Release Notes for information about system requirements, installation information, and new or modified features.

Tuesday Apr 16, 2013

Documentation Updates with JDK 7u21 and JavaFX 2.2.21 Releases

The Java Development Kit 7 Update 21 (JDK 7u21) release, which includes JavaFX 2.2.21, is now live. You can download it from the Java SE Downloads page.

For information about this release, see the JDK 7u21 Release Notes, and the JavaFX 2.2.21 Release Notes.

With 7u21, it is recommended that all applications be signed, and it is possible to restrict signed applications to the security sandbox. Therefore, the use of "unsigned" to mean an application that ran in the security sandbox and "signed" to mean an application that ran with extended permissions, is no longer meaningful. The terminology in the Java Tutorials and the Java SE Guides has been changed to use "sandbox application" for applications that are restricted to the security sandbox, and "privileged application" for applications that have extended permissions.

In addition, the Java Tutorials contain the following changes:

  • With 7u21, users are prompted for permission to run applets and Java Web Start applications, called Rich Internet Applications or RIAs. The prompts contain information to help users make a more informed decision about whether to run an RIA. See User Acceptance of RIAs for more information.

  • Signed applets can be restricted to the security sandbox by using the permissions attribute for the <applet> or <object> element when the applet is invoked. See Deploying with the Applet Tag for more information.

  • Signing RIAs with a certificate from a trusted certificate authority is recommended, so Deploying an Applet and Deploying a Java Web Start Application include a step for signing the JAR file.

  • JavaScript code that calls code within an applet that has permission to run outside the security sandbox is treated as mixed code, which could cause additional warnings to be shown to the user. See Invoking Applet Methods From JavaScript Code for information.

The Java Rich Internet Applications Development and Deployment Guide, including the Deployment ebook (both MOBI and EPUB formats), contains the following changes:

  • The Security Level setting in the Java Control Panel can be used to automatically block some types of RIAs. The default setting of High permits all but local applets to run on a secure JRE. If the user is running an insecure JRE, only RIAs that are signed with a certificate issued by a recognized certificate authority are allowed to run. See Security for information.

  • Screen shots and other information about the Java Control Panel have been updated. See Java Control Panel for information.

The Java Remote Method Invocation (RMI) Guide contains information on the java.rmi.server.useCodebaseOnly property, which is now set to true by default. See RMI Enhancements for information.

Deploying JavaFX Applications contains changes related to the policy of signing applications and working with applications that are restricted to the security sandbox or have extended permissions.

 

JDK 8 Updates

 

For all tutorials, guides, and API documentation, see Java SE Technical Documentation and JavaFX 2 Documentation

.

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.

Tuesday Oct 16, 2012

JavaFX 2.2.3 Documentation

JavaFX Documentation

JavaFX 2.2.3 and JDK 7u9 were released today. In addition to the release documentation, the following new information is provided:

  • Learn about some of the "behind the scenes" work for an application, such as threads, events, and binding with the new learning trail on the landing page.
  • Learn how to use cell editors with the List View component. The new example in the UI Controls tutorial shows how to build a list of names by selecting them from a combo box.

Other documents were updated to reflect minor bug fixes.

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

Other News:

JavaFX Scene Builder 1.1 Developer Preview was released during the week of JavaOne and is available from OTN. This version contains support for the Linux and Mac OS X 10.8 platforms, and a preview of the new CSS Analyzer feature. See the release notes for more information.

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 Aug 14, 2012

JavaFX 2.2 Documentation

JavaFX Documentation

The JavaFX documentation has been updated. A new learning trail is available on the landing page to help you manage the look and feel of your JavaFX application. Besides this addition, you can find the following changes:

  • Deploying JavaFX Applications has been heavily revised to incorporate several new deployment features in JDK 7u6/JavaFX 2.2. See What's New for more information.
  • Hybrid applications that use both SWT and JavaFX libraries can benefit from the improved packaging support available in JDK 7u6. For information about how to package SWT-JavaFX applications, see JavaFX Interoperability with SWT.
  • Handling JavaFX Events has been updated with information on touch and gesture events. The Working with Events from Touch-Enabled Devices chapter and sample provide information on handling events from touch-enabled devices.
  • The Deployment chapter in Getting Started with JavaFX introduces self-contained applications, which are explained in more detail in the Deployment Guide.
  • Two chapters were added to Using JavaFX UI Controls to introduce the Color Picker and Pagination controls. The Color Picker chapter, provides the design overview of the control, and explains how to use it in JavaFX applications. The Pagination chapter teaches how to add a pagination control to your application, manage its page items, and style the elements of the control with CSS styles.
  • Mastering FXML has been updated to include the following chapters:
  • JavaFX for Swing Developers has been updated to include the following chapter:
    • Implementing a Swing Application in JavaFX - a tutorial that shows how to implement a typical Swing application in JavaFXand provides the comparison of some standard implementation patterns in Swing and JavaFX
  • Study Working with Canvas to learn about a new custom image that you can freely draw on. To use it, you simply obtain its GraphicsContext and invoke its methods to render the shapes. You can even use this component to define a simple layer system.
  • Implementing JavaFX Best Practices points out some best coding practices as found in the Henley Sales application. The concepts translate to JavaFX programming in general, so users should keep these suggestions in mind when developing their own applications.
  • Study the modified version of Adding HTML Content to learn how to manage web history in your JavaFX applications.

Our special announcements:

  • JavaFX Scene Builder 1.0 is officially released! The Scene Builder documentation is available at docs.oracle.com/javafx. Find out more information about Scene Builder in the Overview document.
  • Starting the 2.2 release of JavaFX, the API documentation is not bundled together with the JavaFX SDK. You can download it from the Documentation section of the Oracle Technology Network.

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

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!

Tuesday May 22, 2012

JavaFX Scene Builder Docs Updated

JavaFX Scene Builder 1.0 Developer Release documentation has been updated with the promotion of development build 38.

  • Getting Started with JavaFX Scene Builder has been modified to use the latest JavaFX 2.2 development build and demonstrate the integration that is now available with the latest NetBeans IDE 7.2 development build. You can create your FXML layout file using the NetBean's New wizard and use the Scene Builder visual tool to continue designing the user interface for your JavaFX application. Simply drag and drop UI components to a work area,modify their properties, apply style sheets, and the FXML code for the layout is automatically generated in the background. The changes are immediately reflected with your project that is opened in the NetBeans IDE.

  • JavaFX Scene Builder User Guide has been modified to reflect the latest UI modifications made with build 38.

Use the JavaFX Scene Builder Installation Guide to help you download, install, and start using JavaFX Scene Builder. All the available JavaFX Scene Builder documentation can be found at http://docs.oracle.com/javafx.

Thursday Apr 26, 2012

New Docs and Updates with JavaFX 2.1

New documentation has been added with the JavaFX 2.1 release.

  • The Getting Started guide has grown into a series of introductory tutorials.
    • Hello World, JavaFX Style introduces you to the basic structure of a JavaFX application. An added benefit of this tutorial is that enables you to test that your JavaFX technology is installed properly.
    • Creating a Form in JavaFX teaches the basics of screen layout, how to add controls to a layout pane, and how to create input events.
    • Fancy Forms with JavaFX CSS is all about making your JavaFX application look attractive by adding a Cascading Style sheet.
    • Using FXML to Create a User Interface shows the benefits of JavaFX FXML in action. Here you use FXML to create the same login user interface as in the earlier section, but this time separating the application design from the application logic.
    • Animation and Visual Effects is the original Colorful Circles tutorial, which shows how to create transparent, colorful circles that move on a black background.
    • Deploying your First JavaFX Application shows how to deploy the Getting Started tutorials.
  • New Tree Animation Example chapter in the Creating Transitions and Timeline Animation in JavaFX document. The chapter describes the Tree animation sample application and provides some tips and tricks regarding animation in JavaFX.
  • Working with Layouts in JavaFX has a new chapter that describes how CSS can be used to style the different types of layout panes. Source code and NetBeans projects have also been added to each chapter to provide the code used in the examples.
  • Getting Started with FXML has been expanded to include the following chapters:
    • FXML—What’s New in JavaFX 2.1 — a list of FXML enhancements in JavaFX 2.1 and incompatibilities with previous releases.
    • Creating an Address Book with FXML — a tutorial that shows how to populate a table with data, sort the data at application startup, align the data in the table cells, and add rows to the table.
    • Deployment of FXML Applications — a description as to why some FXML applications need digital signatures. An alternative to signing the application is also presented.
  • The JavaFX for Swing Developers tutorial provides an overview of JavaFX benefits available to GUI developers, illustrates the JavaFX–Swing interoperability, and shows how to enrich an existing Swing application by taking advantage of JavaFX functionality.
    Send us your feedback to let us know which topics and use cases you would like to be discussed in this document to help Swing developers adopt the JavaFX technology.
  • New Combo Box chapter was added to the JavaFX UI Controls tutorial. Read this chapter to learn how to create combo boxes in your UI, style them, and implement cell factories. All the samples of the JavaFX UI Controls tutorial are available in one NetBeans project now. Download UIControlSamples.zip to explore JavaFX UI controls in action.
  • Refer to Using JavaFX Charts to lean more about the new types of charts supported in JavaFX 2.1: stacked area chart and stacked bar chart.
  • Study the additions to the Web Component tutorial to learn how to perform upcalls from JavaScript to JavaFX.

Our special announcements:

  • JavaFX for Mac is installed with JDK 7u4. See JavaFX SDK 2.1 Installation for Mac OS X for more information.
  • JavaFX Scene Builder 1.0 Developer Release documentation is now available as part of the JavaFX documentation offerings. JavaFX Scene Builder is a visual layout tool that lets you quickly design user interfaces for a JavaFX application.  Simply drag and drop UI components to a work area, modify their properties, apply style sheets, and the FXML code for the layout is automatically generated in the background. You can then bind that UI layout to your Java application's logic. Learn more by reading the JavaFX Scene Builder User Guide and also by creating a simple issue-tracking application using the Getting Started with JavaFX Scene Builder document.

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

Tuesday Feb 14, 2012

New Docs and Updates with JavaFX 2.0.3

New articles and improvements have been added to the documentation for JavaFX 2.0.3 update.

  • Concurrency in JavaFX describes the capabilities provided by the javafx.concurrent package to create multithreaded applications. You learn how to keep your JavaFX application user interface responsive by delegating time-consuming task execution to background threads.

  • JavaFX Interoperability with SWT describes using JavaFX to add visual appeal to your SWT application. The code example shows how easy it is to add a JavaFX scene graph to an SWT application anywhere you can use an SWT canvas, and how an SWT control and JavaFX control can interoperate.

  • Refer to the Tree View chapter of the JavaFX UI Controls tutorial to learn how to build hierarchical structures in your user interfaces and apply the cell factory mechanism. Try the TreeViewSample application to create a simple HR tool and explore basic features of the TreeView and TreeItem classes in action.

  • Handling JavaFX Events has a new chapter that provides an overview of the event processing system and describes the event system classes and the event delivery process. Also added are sample applications that show how event filters and event handlers can be used.

  • A new introduction in Getting Started with FXML provides a basic description of FXML and the benefits of using it to create user interfaces.

As of this release, the PDF downloads that are linked from each JavaFX article have a new look, more like a book. They contain the same content as the HTML pages but pack more information into a page than the previous PDFs, using less paper if you are printing.

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

Thursday Dec 22, 2011

JavaFX 2.0.2 supports interoperability with the Standard Widget Toolkit (SWT)

JavaFX 2.0.2 includes support for SWT!

Eclipse and Eclipse RCP developers can now mix and match SWT and JavaFX, which means that SWT developers can now access the advanced graphics capability provided by JavaFX. SWT and JavaFX share the same apartment threading model seamlessly, so applications just work. The two toolkits can call each other directly, cooperating to show data to the user. I see an interesting future where SWT is used for the native trimming, task bar, alert boxes and other aspects of deep integration, while JavaFX is used to display advanced content.

You can see the API documentation at
http://docs.oracle.com/javafx/2.0/api/index.html

Look for the javafx.embed.swt package.

See also Richard Bair's blog on SWT at
http://fxexperience.com/2011/12/swt-interop/

Steve Northover

Monday Dec 12, 2011

New Docs with JavaFX 2.0.2

Overview of the new and changed documentation for the JavaFX 2.0.2 release.[Read More]
About

Blog about Java technology documentation and news about Java releases.

Search

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