Tuesday Feb 26, 2013

NetBeans Platform 7.3 In Other Languages

NetBeans IDE 7.3 is available in English, Brazilian Portuguese, Japanese, Russian, and Simplified Chinese. 

That means that you can create an application on top of the framework beneath NetBeans IDE, i.e., the NetBeans Platform, and without needing to do anything at all, all those languages will be automatically available and can be enabled from the .conf file of the application. Each JAR in NetBeans IDE has an equivalent JAR in all of the above languages, containing the translations for the English JAR they relate to.

However, what about other languages, e.g., German, French, Arabic, etc? Well, the good news is that the AgroSense team has published the old community translations (which were worked on until NetBeans IDE 7, with investigations still being done about how to continue that project) to Maven Central. The fact that nothing has been translated since NetBeans IDE 7 is not a problem if you're creating a NetBeans Platform application, since not much (if any) UI has been added to the NetBeans Platform since that time, i.e., most changes have been on the level of API changes and performance enhancements and, of course, in the application layer above it, for NetBeans IDE. The latter, though, is a layer that is completely irrelevant if you're interested in providing your own business application on top of the NetBeans Platform.

Include this in your NetBeans Platform application POM and add "--locale de" (or -J-Duser.language=de) to the .conf file of the application and your application will be German:


Better still, here is a Maven application I created today that (1) includes the above dependency and (2) includes the .conf file in the right place:


The screenshot you see above shows you all the JARs that will be downloaded, via the dependency shown above, just for one of the English JARs, so there'll be many other JARs for all the other JARs too.

Here's how NetBeans Platform 7.3 looks in German:

And here it is in French:

And here in Dutch:

When you are using Ant, instead of Maven, you can include all the translation JARs in your branding module:


Thanks Timon and the AgroSense project for making these translations available. 

Monday Feb 25, 2013

YouTube: Free Online CSS Templates & How to Edit Them

Sunday Feb 24, 2013

Editing Existing CSS Templates and Layouts in NetBeans IDE

On this page you can download dozens of free HTML/CSS templates:


Once you've done so, go to the New Project wizard in NetBeans IDE, and choose HTML/JavaScript and then "HTML5 Application with Existing Sources". Browse to the root folder of any of the templates you've downloaded and then NetBeans IDE will create a new HTML5 project for you.

Run the application from the IDE into the embedded browser (or into Chrome, with the installed NetBeans/Chrome plugin) and you'll find a wonderful environment for developing the template into a full blown application.

Tools for everything you need, from HTML to JavaScript to CSS, and integration between the browser and the tools are all available out of the box:

And did I mention all of this is open source? And extensible? And free? Well, in case I didn't, all of the above is open source and extensible and free.

Friday Feb 22, 2013

YouTube: Handy Tools for CSS Rules in NetBeans IDE 7.3

The meaty part of the "Working with CSS Style Sheets in an HTML5 Application" tutorial is where you start working with tools for CSS rules.

When you follow the instructions and call up the Edit CSS Rules dialog from the CSS Styles window, you may find that your CSS file isn't shown there. Instead, you can open that same dialog from the Navigator, as shown in the (soundless) YouTube movie below, which always correctly shows all the available CSS files, so that you can use the tools to write rules into those files:

Related issues:



Thursday Feb 21, 2013

Bloomberg.tv: NetBeans Platform Application Tracks Down Chinese Hackers

In the background of the Bloomberg.tv item below, you see Joe Stewart from Dell Secureworks using a colorful graphy visualizer of network connections. Guess what that application is?


Answer: That's Maltego, the open source Java based forensics application created on the NetBeans Platform, with a fantastic NetBeans visual library implementation as its main feature, by Paterva in South Africa!

Great work, Paterva guys!

Wednesday Feb 20, 2013

Keanu Reeves Is Also Right When Applied to the Future of Software

Keanu Reeves seems a lot more thoughtful than the characters he portrays, in Keanu Reeves Is Right About the Future of Cinema:

The debate isn’t about whether digital is better than celluloid. It’s about giving an artist the choice … about the individual’s style. It’s not pining for the past, nor championing a digital revolution. It’s arguing that it’s an exciting time for the industry.

In the same way, the debate in the software industry isn't about whether mobile is better or web is better or desktop is better. It's about giving choice to users and letting hybrid solutions become dominant, replacing single-platform solutions.

A great example of that is provided by Propylon, the award winning legislative software provider, which uses everything from the browser to the Java desktop to tablets and mobile solutions, as described here.

New technologies don't foretell the end of existing technologies. Instead, they enrich and enhance them, filling them out with new potential and drawing solutions closer to new audiences.

Monday Feb 18, 2013

Simplified & Beefed Up Memory Profiler in NetBeans IDE 7.3

In NetBeans IDE 7.2.1, here's what you need to fill out before you can begin profiling an application's memory usage:

That's quite a bit of work you need to do, and understanding you need to have, before you can begin your memory profiling. In NetBeans IDE 7.3, that's been improved, such that getting started with memory profiling is much easier:

In other words, what you see above is the same as what you see when you start doing CPU profiling, a simple screen that lets you get started immediately.

Just click the Quick (sampled) memory profiling option, the application will automatically be deployed, and you can immediately begin analyzing the information that the Profiler returns. You're getting sampled memory results with no overhead in setting up the profiling environment.

This is great for identifying leaks, because you can immediately see live instances that shouldn't be allocated or the number of live instances increasing in time.

The next step is to take a heap dump, to see which objects are preventing the instances from being GCed. Or you can switch to instrumented memory profiling to see from where in the code the instances are being allocated.

Further new features in the NetBeans Profiler in NetBeans IDE 7.3:


Thanks to Jiri Sedlacek for help with this info.

Wednesday Feb 13, 2013

YouTube: Making & Managing Surveys on the NetBeans Platform

The movie above shows many interesting features, such as the integration of several editors from NetBeans IDE into the application. The application is built for making and managing surveys. And here's a screenshot of the main window of the application:

The team behind this application is Netquest, in Barcelona. Netquest specializes in online fieldwork services and state-of-the-art technology for researchers to conduct studies through the internet.

Saturday Feb 09, 2013

Superseding NetBeans Platform Status Line Element Providers

When you've included the Plain Editor modules, so that you can for example create basic code completion (as discussed here in this blog), you automatically end up with status line elements, which maybe you don't want.

Here's how to fix that:

import java.awt.Component;
import javax.swing.JLabel;
import org.openide.awt.StatusLineElementProvider;
import org.openide.util.lookup.ServiceProvider;

        service = StatusLineElementProvider.class,
        supersedes = {
public class DemoStatusLineElementProvider implements StatusLineElementProvider {

    public Component getStatusLineElement() {
        return new JLabel("hello");

You may not want to suppress all of the above, e.g., suppressing the progress bar is probably not smart, but at least now you know how to do so. Hope this helps, Henry, and the rest of the cool development team at Björn Lundén Information in Sweden.

Friday Feb 08, 2013

Display JavaHelp In Browser Instead Of JavaHelp Window

Thanks to Henry Arousell and Jaroslav Havlin:

import java.net.URL;
import javax.swing.event.ChangeListener;
import org.netbeans.api.javahelp.Help;
import org.openide.awt.HtmlBrowser.URLDisplayer;
import org.openide.util.HelpCtx;
import org.openide.util.lookup.ServiceProvider;
import org.openide.util.lookup.ServiceProviders;

    @ServiceProvider(service = HelpCtx.Displayer.class,
            supersedes = {"org.netbeans.modules.javahelp.JavaHelp"}),
    @ServiceProvider(service = Help.class,
            supersedes = {"org.netbeans.modules.javahelp.JavaHelp"})
public class BrowserHelpDisplayer extends Help implements HelpCtx.Displayer {

    public boolean display(HelpCtx hc) {
        try {
                    new URL("http://www.google.com?q=" 
                    + hc.getHelpID()));
        } catch (Exception ex) {
            return false;
        return true;

    public Boolean isValidID(String id, boolean force) {
        return true;

    public void showHelp(HelpCtx ctx, boolean showmaster) {

    public void addChangeListener(ChangeListener l) {

    public void removeChangeListener(ChangeListener l) {

The above puts the help ID into Google search. Not helpful in itself, but a starting point for publishing help topics on line, instead of in the JavaHelp window.

Thursday Feb 07, 2013

NetBeans IDE 7.3 RC 2: Improved Stability & Speed

The second Release Candidate of NetBeans IDE 7.3 is out and can be downloaded now:

Go to download page of NetBeans IDE 7.3 RC 2

In other words, the final release of NetBeans IDE 7.3 is not far away.

Even while NetBeans IDE 7.3 is currently still going through the last test cycles, we're feeling pretty good about it! Several serious issues and performance problems have been fixed over the past weeks, so if you have been using an older build of NetBeans IDE 7.3, please install NetBeans IDE 7.3 RC 2 and benefit from (and blog/twitter about!) the improved stability and speed.

Saturday Feb 02, 2013

US Air Force Imaging Software on the NetBeans Platform

Pursuer is a US Air Force "government-off-the-shelf" system based on NASA's World Wind software package. Pursuer provides an intuitive interface for viewing several different layers of imagery, including pre-existing maps, reference imagery, and recently collected imagery, all placed within geographical context (similar to Google Earth).

Pursuer was developed by the Sensors Directorate of the Air Force Research Laboratory and is built upon the NetBeans Platform and NASA World Wind.

An interesting paragraph from the article referenced here (published May 1, 2012), about the relevance of the NetBeans Platform, is as follows:

While Pursuer has intrinsic support for many types of geodetic data, Pursuer was also designed to be modular, making it easy to add new capabilities. Leveraging the power of the NetBeans Platform, Pursuer is designed as a set of modules that each add capabilities to Pursuer. Therefore, to add a new capability to Pursuer, a new module simply needs to be made and linked into the overall Pursuer platform. This simple model enabled us to quickly add support for video frames within Pursuer, without worrying about the effect that our display has on all of the other, pre-existing capabilities within Pursuer.




Friday Feb 01, 2013

YouTube: Java Instead Of JavaScript In The Browser

Recorded today in Prague, Czech Republic, with Jaroslav Tulach, NetBeans founder and NetBeans API designer:

Related info: http://wiki.apidesign.org/wiki/Bck2Brwsr


Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« February 2013 »