blob: e8625b7b4f88822267629ab14f8522a303618a8e [file] [log] [blame]
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
= NetBeans Platform Learning Trail
:jbake-type: tutorial
:jbake-tags: tutorials
:jbake-status: published
:icons: font
:syntax: true
:source-highlighter: pygments
:toc: left
:description: NetBeans Platform Learning Trail - Apache NetBeans
:keywords: Apache NetBeans, Tutorials, NetBeans Platform Learning Trail
:reviewed: 2022-01-14
== What is the NetBeans Platform?
The NetBeans Platform is a broad Java framework on which you can base large desktop applications.
See link:[a list of NetBeans based applications]
that have been built on top of the NetBeans platform.
NOTE: The fact that we use the NetBeans Platform to build the NetBeans IDE does not mean that
you can only build IDEs with it. People design planes, manage airports and harbors, manage satellite
earth stations, build passenger information systems, design radar systems, play music, paint complex
graphs and more using the NetBeans Platform.
The NetBeans Platform contains APIs that simplify the handling of windows,
actions, files, user selection and many other things typical in desktop based
applications. This greatly makes things easier for you, reducing the
time-to-market required to create great applications.
Of course great power comes with great responsiblity, so you have to learn
how to use the NetBeans Platform before taking advantage of its full potential.
This page may be of help.
== Reference
This section contains links to books, refcards, blogs and videos that you
may consider useful while learning the NetBeans Platform.
=== Books
This is a list of books that may help you get started. Some of them are
somewhat old, but NetBeans main concepts have not evolved that much, and most
of them are still up to date.
* link:[+"Apache NetBeans Platform for Beginners"+]
* link:[+"The Definitive Guide to NetBeans Platform 7"+]
* link:[+"NetBeans Platform 6.9 Developer's Guide"+]
* link:[+"The Definitive Guide to NetBeans Platform 6.5"+]
* link:[+"Rich Client Programming: Plugging into the NetBeans Platform"+]
=== Reference cards
The dzone link:[Essential NetBeans Platform Refcard] may be of interest to you.
=== Wiki
Our wiki's link:[+NetBeans Developer FAQ+] has interesting "tricks" you may want to take a look at.
link:[NetBeans APIs idioms] is also useful to know the answers to many frequent questions.
=== Blogs
Some blogs you may find of interest:
* The link:[Apache NetBeans blog].
* link:[] by Jaroslav Turach, NetBeans main architect.
* link:[+Geertjan Wielenga+] (archived)
* link:[+Tonny Kohar+].
=== Videos
We have a link:[YouTube channel] with many videos
you may want to check.
=== Screencasts
* link:[+Slides: Free NetBeans Platform Crash Course+]
* link:[+Video: Top 10 NetBeans APIs+]
=== Community-Contributed Docs
The community has also contributed documentation along the years. Let us know if you want yours included here!
* link:[] by Jaroslav Turach, NetBeans main architect.
* link:[+DDL Visualizer: Visualize SQL Script with NetBeans+], by Damir Tesanovic
* link:[+Customize the Splash Screen and About Dialog+], by Tonny Kohar
* link:[+Quick Start: Creating Language Tools In NetBeans IDE+], by Jordi R. Cardona
* link:[The NetBeans Platform on Standalone Swing Applications], by Antonio Vieiro, explains how to use some NetBeans APIs in a plain Swing application.
=== API documentation
<<API,We've moved the API list to the end of this page>>.
== NetBeans Platform Tutorials
=== Contributing
We have ported the NetBeans Tutorials to this site, but some of the tutorials need a review.
You can help us improve the tutorials following link:[these contribution guidelines].
* For historical reasons, the link:[NetBeans Platform Learning Trail] has also a list of tutorials you may want to check.
=== Introductory tutorials
* The link:[+Runtime Container Tutorial+] explains how NetBeans works internally.
* link:[+Top 10 NetBeans APIs (Videos)+] explains the "top 10" NetBeans APIs.
* link:[+NetBeans Plugin Quick Start+]
* link:[+NetBeans Platform Quick Start+]
* link:[+NetBeans Platform Plugins with DukeScript+]
* link:[+Porting Swing Components+]
* link:[+Porting JavaFX Components+]
* link:[+Part 1: Selection Management Tutorial+]
* link:[+Part 2: Selection Management Tutorial IIā€”Using Nodes+]
* link:[+Part 3: Nodes API Tutorial+]
* link:[+Part 4: Property Editor API Tutorial+]
=== Extending the NetBeans Platform
The NetBeans module system is very extensible, meaning that you can add
features through different mechanisms: the Java's service provider interface, the
Lookup API (that also works with the service provider interface) and the
concept of "layers" (that works in a similar way to the Windows registry).
* For an introduction to the Java Service Provider mechanism see Oracle's link:[+Creating Extensible Applications With the Java Platform+]
* For an introduction to the NetBeans Lookup API see link:[+NetBeans Lookups Explained!+].
* You may also find link:[+How Do NetBeans Extension Points Work?+] of interest.
* The link:[+How to Create a Pluggable Photo Album in Java+]
* The link:[+Description of Layer Registrations in NetBeans APIs+] explains how each module
in NetBeans registers files, documents, classes and more in a global registry that you can query.
=== Using Maven to build applications
You can use Maven and the NetBeans Platform to build great applications. Here're some
tutorials to get you started:
* link:[+Maven Best Practices in NetBeans IDE+]
* link:[+About the NetBeans Module Maven Plugin+]
* link:[+NetBeans Platform Maven Command Line Tutorial+]
* link:[+NetBeans Platform Quick Start Using Maven+]
* link:[+NetBeans Platform File Type Tutorial Using Maven+]
* link:[+NetBeans Platform Selection Tutorial Using Maven+]
* link:[+NetBeans Platform CRUD Tutorial Using Maven+]
* link:[+Mavenized NetBeans Platform Runtime Container+]
* link:[+How to Create a Custom Project Type in a Mavenized NetBeans Platform Application+]
* link:[+How to Create JavaHelp in a Mavenized NetBeans Platform Application+]
=== Using OSGi modules with the NetBeans Platform
You can use OSGi modules within a NetBeans Platform.
*[OSGi and NetBeans]
* link:[+NetBeans Platform Quick Start Using OSGi+]
* link:[+NetBeans Platform EMF Integration Tutorial+]
=== Testing and diagnostics
When building applications on top of the NetBeans Platform you want, of course, to test things. Also to diagnose what's going on. These are of help:
* link:[+NetBeans Platform Test Infrastructure Tutorial+]
* link:[+NetBeans Platform Gesture Collection Infrastructure Tutorial+]
=== Sample applications.
* link:[+Paint Application Tutorial+]
* link:[+Feed Reader Tutorial+]
* link:[+HTML Editor Tutorial+]
* link:[+POV-Ray Renderer Tutorial+]
* link:[+Create/Read/Update/Delete (CRUD)+]
* link:[+Geospatial+]
* link:[+Workflow+]
* link:[+Development Environment+]
=== How to develop editors
Of course, the NetBeans Platform has many features to build top-noch editors (that's because
we build the NetBeans IDE on top of the platform :-)). Here's a list of tutorials
that you can use to build your own editors.
* link:[+File Type Integration Tutorial+]
* link:[+JavaCC Lexer Generator Integration Tutorial+]
* link:[+JavaCC Parser Generator Integration Tutorial+]
* link:[+Java Language Infrastructure Tutorial+]
* link:[+Code Generator Integration Tutorial+]
* link:[+Code Completion Integration Tutorial+]
* link:[+Mark Occurrences Module Tutorial+]
* link:[+Code Snippet Tutorial+]
* link:[+Editor Component Palette Module Tutorial+]
* link:[+XML Editor Extension Module Tutorial+]
* link:[+Hyperlink Navigation Tutorial+]
* link:[+Java Hints Tutorial+]
* link:[+Code Templates Tutorial+]
=== NetBeans APIs for Visualizing Data
The NetBeans Platform has a powerful library (called the "NetBeans Visual Library") that you can use
to build complex user-interactive visualizations.
* link:[+Visual Library Tutorial+]
* link:[+Visual Library Tutorial for Java Applications+]
* link:[+Visualize SQL Scripts with the NetBeans Platform+]
* link:[+A Visual Database Explorer for NetBeans+]
* link:[+How to Create Visual Applications in Java?+]
* link:[+How to Add Resize Functionality to Visual Applications in Java?+]
* link:[+Creative Uses of the Visual Library+]
=== Building custom project types
Since we use the NetBeans Platform to build the NetBeans IDE, we use objects known as "Projects" to represent
Java, PHP or C/C++ "projects".
You can use "projects" to represent a set of files or concepts organized in a hierarchy. Be either the list of
rails in a train station, or a hierarchy of parts of a component you're designing.
These tutorials explain how to extend existing project types or to create your own.
* link:[+Project Sample Module Tutorial+]
* link:[+Project Type Extension Module Tutorial+]
* link:[+Project Type Module Tutorial+]
=== Templates
We use "templates" to create files with some predefined content.
* link:[+File Template Module Tutorial+]
=== Installers
* link:[+Installer Integration Tutorial+]
=== Options window
* link:[+Options Window Module Tutorial+]
=== Property editors
When you select an object in your application, the "Property Editor" window automatically shows
the properties of the object. Be it a plane, a train or a satellite.
* link:[+Property Editor Integration Tutorial+]
* link:[+System Properties Module Tutorial+]
=== Quick search, Ribbon bars, Wizards
The IDE has specific components that help you create quick search fields, ribbon bars and wizards.
* link:[+Quick Search Integration Tutorial+]
* link:[+Ribbon Bar Tutorial+]
* link:[+Wizard Module Tutorial+]
=== Ant and Maven
These are tutorials on how to use Ant and Maven with the NetBeans Platform.
* link:[+Ant+]
* link:[+Maven+]
== API Reference
This is a list of most frequently used APIs in the NetBeans Platform.
* link:[+NetBeans API Javadoc+]
* link:[+Module System API+]
* link:[+Window System API+]
* link:[+Filesystems API+]
* link:[+Datasystems API+]
* link:[+Nodes API+]
* link:[+Explorer API+]
* link:[+Property Sheet Customization+]
* link:[+Visual Library API+]
* link:[+Utilities API+]
* link:[+Branding+]
* link:[+Description of Layer Registrations in NetBeans APIs+]
* link:[+Latest NetBeans API Changes+]