How To Make Your Own JavaScript Editor

Code completion is the key feature you need when adding support for your own JavaScript framework to NetBeans IDE.

Above you see a new item I added by means of a simple starting point, which starts like this:

package org.demo;

import java.util.ArrayList;
import java.util.List;
import org.netbeans.modules.csl.api.CodeCompletionContext;
import org.netbeans.modules.csl.api.CompletionProposal;
import org.netbeans.modules.csl.api.ElementHandle;
import org.netbeans.modules.csl. (more...)

Kendo UI in NetBeans IDE

Johan Borchers, from Crimson Wing in the Netherlands, was one of the people at the Blue4IT event where I talked about the JavaScript landscape. He mentioned that the only tools he's found for Kendo UI Core, his favorite JavaScript toolkit, is Visual Studio:

Here you can see there's code completion in Visual Studio for Kendo UI components, together with documentation showing you the options you can add to the argument object.

Displaying the classes (more...)

“Everything a Java developer should know about the JavaScript landscape”

For a few months I've been working on a presentation aimed at Java developers, to introduce them to the brave new world of JavaScript, not JavaScript the language, but JavaScript the constantly changing ecosystem.

The story starts by looking at new enhancements in HTML (thanks to HTML5) and CSS (thanks to CSS3) and then in more detail at all the different kinds of JavaScript solutions (core libraries, build tools, application frameworks, testing frameworks, and component (more...)

HTML5 Fun Pack for NetBeans IDE (Part 2)

The HTML5 Fun Pack for NetBeans IDE, first announced in part 1 of this series, is now updated to include HTML5 code snippets for drag & drop, range, color, and e-mail. Click to enlarge the image below and notice the HTML5 Palette in the Component Palette on the right of the screenshot:

All the tags and code from line 10 to line 32 above magically appear when you drag and drop the 'Range' palette (more...)

HTML5 Fun Pack for NetBeans IDE

What better way to get familiar with the new HTML5 elements and attributes than to have them integrated into the Component Palette in NetBeans IDE?

Below, when you look in the palette on the right side of the screenshot, you see a new HTML5 category, which currently contains four new palette items, for audio, data list (code completion), required (validation), and video: 

When you double-click an item, or drag it into the HTML editor, new (more...)