Česky   |  Deutsch   |  English   |  Español   |  Français   |  Indonesia   |  日本語   |  한글   |  Polski   |  Português (BR)   |  Türkçe   |  中文   |  正體中文   |  Your Language  
Planet NetBeans is an aggregation of NetBeans related musings from all over the Blogosphere.
[RSS 1.0 Feed] [RSS 2.0 Feed]
[FOAF Subscriptions] [OPML Subscriptions]
Do you blog about NetBeans ? Add your blog to PlanetNetBeans.
Feed Subscriptions
NetBeans Zone - The social network for developers (feed)
APIDesign - Blogs (feed)
Pandaconstantin (feed)
blogtrader - Blog (feed)
David R. Heffelfinger (feed)
Carsten Zerbst's Weblog (feed)
Winston Prakash's Weblog (feed)
Anchialas' Java Blog (feed)
markiewb's blog (feed)
Michael's blog » NetBeans (feed)
ProNetBeans (feed)
Paulo Canedo » NetBeans English (feed)
Need to find a title (feed)
Category: NetBeans | Software and Science (feed)
Roger Searjeant's blog (feed)
Optonline Webmail (feed)
Allan Lykke Christensen » NetBeans (feed)
Inspiration and Expression » Netbeans (feed)
Gualtiero Testa » Netbeans (feed)
James Selvakumar's Blog » netbeans (feed)
John O'Conner » NetBeans (feed)
Koberoi Oracle (feed)
nB gUru » NetBeans (feed)
Newsintegrator Blog » netbeans (feed)
Praxis LIVE » NetBeans (feed)
TechAshram » NetBeans (feed)
There's no place like » Netbeans (feed)
Adam Bien (feed)
Ignacio Sánchez Ginés » NetBeans (feed)
Bernhard's Weblog (feed)
Ramon.Ramos (feed)
Ozone and Programming » netbeans (feed)
Tiplite » netbeans (feed)
Arun Gupta, Miles to go ... (feed)
Geertjan's Blog (feed)
.JARa's Bilingual Weblog (feed)
JavaFX Composer (feed)
The Java Jungle (feed)
Jesse Glick (feed)
Martin Grebac (feed)
The NetBeans Community Podcast (feed)
NetBeans Profiler (feed)
NetBeans for PHP (feed)
NetBeans Web Client (feed)
Rechtacek's (feed)
Virtual Steve (feed)
My First Blog - Satyajit Tripathi (feed)
The Aquarium (feed)
Tinuola Awopetu (feed)
Insert Witty Irony Here (feed)
mkleint (feed)
Anuradha (feed)
Netbeans6/6.5 my best practices (feed)
Java Evangelist John Yeary's Blog (feed)
Neil's Dev Stuff (feed)
Computer says null; (feed)
NetBeans Adventures, Java and more (feed)
Bistro! 2.0 (feed)
NetBeans Community Docs Blog (feed)
The Netbeans Experience (feed)
NbPython/ jpydbg / pymvs (feed)
Shanbag's Blog (ರಜತ ಲೋಕ) (feed)
Wade Chandler's Programming Blog (feed)
Big Al's Blog (feed)
Code Snakes (feed)
In perfect (spherical) shape (feed)
Van Couvering Is Not a Verb (feed)
Diego Torres Milano's blog (feed)
Vroom Framework (feed)
Messages from mrhaki (feed)
Jeff's Blog (feed)
Manikantan's Netbeans (feed)
Oliver Wahlen's Blog (feed)
Shuttle between Galaxies (feed)
Welcome to my live... (feed)
Netbeans IDE Blog by Tushar Joshi, Nagpur (feed)
Devel Blog (feed)
diamond-powder (feed)
Antonio's blog (feed)
Where's my Blog?!

Powered by:    Planet

Last updated:
October 20, 2014 06:04 AM
All times are UTC

Sponsored by
sponsored by Oracle

visit NetBeans website
Adam Bien - October 20, 2014 04:16 AM
JavaFX: A Composite View with WYSIWYG

Creating a composite view in JavaFX with Scene Builder and Dependency Injection:

See also: http://afterburner.adam-bien.com and see you at http://workshops.adam-bien.com/javaee-ui.htm.

Real World Java EE Workshops [Airport Munich]>

Geertjan's Blog - October 19, 2014 09:49 AM
NetBeans Translation Tip #2: Do Not Translate USE_MNEMONICS

So you're working on the NetBeans Translators project and you run the application, with its translated bundles, and then you see this error message:

WARNING [org.openide.awt.Toolbar]: Error in AWT task
	at org.openide.awt.Actions.setMenuText(Actions.java:290)
	at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:1266)
	at org.openide.awt.Actions$Bridge.prepare(Actions.java:902)
	at org.openide.awt.Actions$MenuBridge.prepare(Actions.java:1221)
	at org.openide.awt.Actions.connect(Actions.java:201)
	at org.openide.awt.Actions$MenuItem.(Actions.java:1571)
	at org.openide.awt.DynaMenuModel.loadSubmenu(DynaMenuModel.java:138)

You also, assuming you're translating into French and have already translated the text in the error dialog below, see this dialog, once the application has started:

And you're unable to access any of the menu items in the menubar.

An error message that contains "setMenuText(Actions.java:290)" is one that can be figured out by thinking about where menus are defined, in the NetBeans Platform source code. This is done in the UI Utilities API module, which is org-openide-awt.jar.

When I went there, in "LocalizedNetBeans", I found that there are two translated bundle files there, both in French:

Notice the one in blue above. Through a process of trial and error, I discovered that the key "USE_MNEMONICS" should NOT be translated. If you translate USE_MNEMONICS, the error described above occurs. Simply do not include it in the bundle file shown in blue above, in the 'branding/modules/org-openide-awt.jar' folder. Delete it from there, as I did (which is why the file is shown in blue) if you have it there.

And then the problem is solved: the error message above is not shown and menu items can be accessed again, as normal.

PS: Also see tip #1.

Geertjan's Blog - October 18, 2014 07:32 AM
Fixing the Ribbon Bar Integration Tutorial

The NetBeans Platform Ribbon Bar Integration Tutorial has an Installer class that needs to be rewritten if you're using it with NetBeans Platform 8.0 and 8.0.1.

In the Flamingo Integration module, delete the content of the Installer class, in the modules.flamingo package, and replace it with the code shown below:


The problem with the original Installer class in the repo is that it is a little bit hacked together, i.e., it uses the ModuleInstall class, registered in the Manifest, but then delays loading via SwingUtilities.invokeLater. So, when the loading sequence in the NetBeans Platform changes, even slightly, as it does from release to release, with performance enhancements and so on, the hacked code stops working correctly... and the rewritten components, i.e., the ribbon, is loaded incorrectly.

UIDefaults.getUI() failed: no ComponentUI class for: org.pushingpixels.flamingo.internal.ui.ribbon.appmenu.JRibbonApplicationMenuButton[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=16777216,maximumSize=,minimumSize=,preferredSize=]
    at javax.swing.UIDefaults.getUIError(UIDefaults.java:732)
    at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:130)
    at javax.swing.UIDefaults.getUI(UIDefaults.java:762)
    at javax.swing.UIManager.getUI(UIManager.java:1016)
    at org.pushingpixels.flamingo.internal.ui.ribbon.appmenu.JRibbonApplicationMenuButton.updateUI(JRibbonApplicationMenuButton.java:124)
    at org.pushingpixels.flamingo.api.common.JCommandButton.<init>(JCommandButton.java:433)
    at org.pushingpixels.flamingo.internal.ui.ribbon.appmenu.JRibbonApplicationMenuButton.<init>(JRibbonApplicationMenuButton.java:110)

Until you do the rewrite described in the link above, you'll see the error above when running the application and find the icon in the top left missing, as shown below.

The changed code in the link above fixes the problem.

If you feel the Ribbon application menu button, the big one top left above, is taking up too much space, you can take a look at the com.pinkmatter.modules.flamingo.LAFConfiguration class, and replace one statement with two statements, to use Bruce Schubert's rewritten application menu:

Adam Bien - October 18, 2014 04:31 AM
Setting The Classpath For Nashorn Script in jjs / Java 8

The Java 8 jjs interpreter accepts the -cp / -classpath argument. After setting the classpath, all the classes become available from within the executable script.

A utility class com.airhacks.naslib.Inspector in the naslib.jar (this is an sample jar) becomes available for Nashorn after setting the jjs classpath:

#!/usr/bin/jjs -cp ./naslib/target/naslib.jar -fv
//built-in variable
var args = $ARG;

var Inspector = com.airhacks.naslib.Inspector;
//class from jar, calling a static method

In case this post looks a bit crazy to you, you should join the Java 8 / Java EE 7 "More Power with Less Code" workshop :-).

Real World Java EE Workshops [Airport Munich]>

Adam Bien - October 17, 2014 10:15 AM
Java 8, Nashorn, Nanoservices, JavaFX On-Stage Hacking and Airhacks -- End Of Year Events

See also the the Java EE Microservices workshop in January 2014.

Real World Java EE Workshops [Airport Munich]>

NetBeans Zone - The social network for developers - October 17, 2014 10:02 AM
Taudo Wenzel: My Five Favorite NetBeans IDE Features!

Continuing a series of articles focusing on NetBeans users and their five favorite NetBeans IDE features, here's the next part, by Taudo Wenzel. -- NetBeans team. Preview Text:  "Most devs I know do their Maven builds from the command line (using Eclipse as an IDE) because of unexpected Maven errors that only occur when building inside...

Geertjan's Blog - October 17, 2014 07:37 AM
NetBeans + Java: FIRST Robotics Competition

Seeing this Tweet earlier this week, I had to investigate!

Matt responded: "I attached the only pic I took during our workshop last night with the students first being introduced to Java and NetBeans by Ross Etchells and Briana Hoffman (in the right of the photo) who are software engineers with a local software development company Innovative Software Engineering (ISE) and Mentors on our FIRST Robotics Competition Team. And you can actually see last year's robot in the far background with the big blue ball."

And look really closely and you'll see a few laptops with NetBeans IDE installed!

The group above is using NetBeans IDE as a tool to learn Java as a programming language to control a robot for the FIRST Robotics Competition this coming season.

Below are some links with info on FIRST and FRC, West Branch High School, Team 5041 (which is the above FRC Team), and ISE below.

West Branch, Iowa Schools
Team 5041 Website
Innovative Software Engineering

Watch this space on more around the above group, and others, in the coming months!

NetBeans Zone - The social network for developers - October 16, 2014 08:10 AM
Jonas Felix: My Five Favorite NetBeans IDE Features!

Continuing a series of articles focusing on NetBeans users and their five favorite NetBeans IDE features, here's the next part, by Jonas Felix. -- NetBeans team. Preview Text:  Focusing on Cordova and the Ionic Framework, Jonas Felix describes the key features of NetBeans IDE that make him productive as a Java and JavaScript developer. ...

Geertjan's Blog - October 16, 2014 07:00 AM
YouTube: Profile That PiDrone!

Forget all the small command line tools you typically need to access a remote device, such as a Raspberry Pi. NetBeans IDE connects to the Pi for you and lets you run your application. But... you can also debug the application within NetBeans, while the application is running on the Pi. And, even more impressively, you can use the NetBeans Profiler together with your Pi.

Below, Mark Heckler shows this feature in action with his PiDrone!

&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;span id=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;span id=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;span id=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;

Gualtiero Testa » Netbeans - October 15, 2014 07:00 PM
Tips: NetBeans on Ubuntu

Ubuntu Linux is a very nice software development platform and NetBeans fit very well in it.

Nevertheless few tips can make our developer life easier. These tips can be applied to other Linux distributions.

1. Do not use apt-get

Apt-get is the Ubuntu/Debian tool to download and install programs from the repositories.

It should not be used to install the tools you need for development, NetBeans included.


  • Repositories contains old versions
  • Dependencies force you to install not needed or incompatible software

Get installation files from the main sources and install them manually in a common dir like /opt.

2. Install NetBeans on a user writable dir

NetBeans needs to update files in its own installation directory during software updates. I suggest to use /opt as the main installation dir.

If /opt is now user writable, execute the following command

sudo chmod 777 /opt

3. Watch the /tmp size

NetBeans use /tmp for temporary operations like, for example, updating Central Maven repository information. While doing this update, NetBeans saves big temporary dirs under /tmp and the update fails if /tmp has no space available.

The /tmp dir is usually small when it is mounted on a dedicated partition.

Reserve at least 1.5GByte free space on the /tmp.

See Bug 162313 for more details.

4. Save NetBeans cache in RAM

NetBeans saves configuration, user preferences and project files status in the NetBeans user dir which is located in $HOME/.netbeans/<version>.

Part of this information, mainly related to projects is considered to be a cache (= it can be recreated if deleted); the cache can be located in a separated dir with the command line –cachedir.

With at least 4 GByte RAM, we can map the cache dir to a temporary RAM on disk using Ubuntu native ram filesystem.

My preferred approach is to

- mount the /tmp to a tmpfs type filesystem, by adding the following line in the /etc/fstab

tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=2048M 0 0

This will “map” the /tmp dir into RAM up to 2GByte (see tip #3).

- map the cachedir to a /tmp/ subdir, by creating a NetBeans invocation script as the following:

export VERSION=netbeans-8.0.1
export RAMDISK=/tmp/$VERSION
export OPTIONS=" --cachedir $RAMDISK --laf Nimbus "
/opt/$VERSION/bin/netbeans $OPTIONS &

The script will invoke NetBeans with the appropriate options.

Note: I like Nimbus on Ubuntu Unity user interface.

5. Use a SSD drive

SSD drives are an impressive speed improvement. Software development requires reading and writing hundred of files. Speed is essential to have quick feedback during our test and compilations cycles.

The SSD drive can be your main hard drive or an external one (possibly on a fast USB connections). Just place both NetBeans installation dir and your projects files on the SSD unit.

Remember to add noatime option on the mount instructions (see /etc/fstab) to avoid useless write access to the disk.

Filed under: Netbeans, Tools Tagged: debian, installation, java, jdk, jre, linux, netbeans, oracle, ubuntu

NetBeans Zone - The social network for developers - October 15, 2014 05:27 PM
Ken Fogel: First Time Attending JavaOne

Ken Fogel is the Program Coordinator and Chairperson of the Computer Science Technology program at Dawson College in Montreal, Canada. He is also a Program Consultant to and part-time instructor in the Computer Institute of Concordia University's School of Extended Learning. Preview Text:  This was my first time attending JavaOne. I...

Adam Bien - October 15, 2014 04:19 PM
Star 7 feat. James Gosling: The Origins of Java ...and iPhone?

Connected and portable touch devices and color screens in ...1992. Java's origins and probably the first appearance of the duke:

Real World Java EE Workshops [Airport Munich]>

Geertjan's Blog - October 15, 2014 07:00 AM
NetBeans in the Latest JAX Magazine

Get the latest JAX Magazine here, with a new article on RESTful Web Services and how trivial it is to create them directly from your database.

NetBeans Zone - The social network for developers - October 15, 2014 05:30 AM
The Best of DZone: Oct. 8 - Oct. 15

THIS WEEK'S TOP LINKS Check out the most popular links shared on DZone from the past week. Be sure to share the best developer links from across the web at DZone.com. Preview Text:  If you missed anything on DZone this week, now's your chance to catch up! This week's best include a tutorial for getting started building mobile apps...

Geertjan's Blog - October 14, 2014 07:55 AM
Oracle Labs to Sponsor R Plugin in NetBeans IDE

Oracle Labs have recently posted a new master thesis description for R support for NetBeans.


If you happen to be or to know a talented student that could do the job, please respond. Either drop a response in the comments to this blog entry, reach me some other way, or contact the initiator of this thesis, Thomas Wuerthinger (thomas dot wuerthinger at oracle dot com) directly.

However, note that you really need to be a very talented and self-motivated programmer. You're not going to focus on simple tasks and you shouldn't be someone who needs constant support and guidance. The bar is pretty high. You should be more or less an expert in R and you should be able to figure out how to provide deep NetBeans features for R, such as syntax highlighting, compilation and running of R code, error reporting, as well as code completion and debugger integration.

Oracle Labs will pay 20h/week for the student working on the master thesis outlined above.

Great news! Looking forward to seeing R take off in NetBeans IDE.

Adam Bien - October 14, 2014 03:39 AM
Named Parameters in Java 8

With Java 8 and the compiler flag: javac -parameters method parameter names are available via reflection. For example: the parameter names of the method hello:

public class Boundary {

    public void hello(String name, int age) {


become accessible to the following code:

    public static void main(String[] args) {
        Method[] methods = Boundary.class.getMethods();
        for (Method method : methods) {
            System.out.print(method.getName() + "(");
            Parameter[] parameters = method.getParameters();
            for (Parameter parameter : parameters) {
                System.out.print(parameter.getType().getName() + " " + parameter.getName() + " ");

Compilation with javac -parameters produces the following output:

hello(java.lang.String name int age )

Without the -parameters flag the names are not available:

hello(java.lang.String arg0 int arg1 )

Real World Java EE Workshops [Airport Munich]>

Geertjan's Blog - October 13, 2014 08:45 PM
Exercise 3 of "Exercises in Porting to the NetBeans Platform"

Pretty awesome! The long-awaited third exercise of "Exercises in Porting to the NetBeans Platform" has been published. The authors start off with the Stocks Monitor application found here and then, step by step, with a lot of explanations and code and screenshots, migrate it to a NetBeans Platform application with all the same functionality as the original application. 

At the end of the exercise, you have an application that looks like this, which monitors financial data from Yahoo Finance.

As always, the authors are looking for your feedback and interaction. The stocks monitoring application will be the basis of subsequent exercises. Right now, it consists of a single module in the application. Subsequent exercises will focus on breaking the application into multiple modules, as well as the integration of the Nodes API and the Explorer & Property Sheet API, among other topics.

I imagine JavaFX charts, and other cool looking JavaFX components, will be integrated into this application in future exercises too! 

You're very highly recommended to get the book, if you're interested in the NetBeans Platform in any way at all:


Required reading for getting started with the above is "NetBeans Platform for Beginners":


The two can be bought together, at a discounted price, here:


markiewb's blog - October 13, 2014 07:29 PM
New version of “Eclipse Code Formatter for Java” plugin –

Breakpoints will now be preserved – that is the major change. Unfortunately linebreakpoints are not supported, but better than nothing and better than the previous state. I also updated the embedded eclipse formatter engine to 4.4.


Here the full list of changes.

  • [Feature 47]: Preserve Class/Method/Field breakpoints (experimental, can be disabled in options)
  • [Bugfix 53]: Fixed: Do not remove linebreakpoint, if line is not included in selection
  • [Bugfix 52]: Fixed: Cannot assign shortcut for “Format with Eclipse Formatter” action
  • [Task 46]: Update to use eclipse formatter libs from eclipse 4.4
  • [Task 48]: Support only NetBeans 7.4 and above
  • [Task 49]: Add donation button
  • [Task 50]: Add link to github/homepage

Downlad it from the plugin center http://plugins.netbeans.org/plugin/50877/ or install it directly from your IDE (Tools/Plugins).
You can file issues at https://github.com/markiewb/eclipsecodeformatter_for_netbeans/issues

I am looking forward for your feedback.

Adam Bien - October 12, 2014 06:11 AM
Java Mission Control--Development / Pricing and Unlocking

Java Mission Control is free for development (see: Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX ("B. SOFTWARE INTERNAL USE FOR DEVELOPMENT LICENSE GRANT").

For development you can use the: -XX:+UnlockCommercialFeatures -XX:+FlightRecorder flag to unlock the Flight Recorder.

If you would like to use Java Mission Control in production, you will have to buy the Java SE Advanced (Desktop / Advanced / Suite) license: http://www.oracle.com/us/corporate/pricing/technology-price-list-070617.pdf

Real World Java EE Workshops [Airport Munich]>

NetBeans Zone - The social network for developers - October 10, 2014 11:08 AM
Carl Mosca: My Five Favorite NetBeans IDE Features!

Continuing a series of articles focusing on NetBeans users and their five favorite NetBeans IDE features, here's the next part, by Car Mosca. -- NetBeans team. Preview Text:  "I use Subversion, Git, and Maven and I do a variety of work in Java and this stuff just works." Carl Mosca, an IT director for the U.S. Courts, discusses the top 5...

Adam Bien - October 10, 2014 01:25 AM
7th Airhacks Q & A Uploaded--JavaOne, Microservices, Scopes and JPA

Thanks for watching live--we got a new live audience record: >100 attendees. We discussed all the prepared questions in addition to many more from the IRC #airhacks channel and twitter.

Any questions left? Then join the conversation at each first Monday of the month at 6 P.M. live, comment / ask on github or this blog.

Also checkout: "Timisoara JUG Session: Hacking Opinionated JavaFX / Java 8 Apps" at 16th October, 5.30 P.M CET and Nashorn ...In Enterprise Applications (JavaDayKiev), 18th October, 10.10 AM CET: http://www.ustream.tv/channel/adambien.

See you at Java EE Workshops at MUC Airport or on demand and in a location very near you: airhacks.io!

Real World Java EE Workshops [Airport Munich]>

Geertjan's Blog - October 09, 2014 03:06 PM
YouTube: Quick Tips for AngularJS in NetBeans IDE 8.0.1

Assuming you're able to run Node and Bower from the command line, follow the steps in this screencast to get started with AngularJS in NetBeans IDE 8.0.1:

&amp;amp;amp;amp;amp;lt;span id=&amp;amp;amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;span id=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;span id=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;

Geertjan's Blog - October 08, 2014 07:00 AM
YouTube: From Alice 3 to NetBeans IDE

Alice is a really cool tool to use as a teaching device, comparable to BlueJ and GreenFoot. Here you're shown how to map an Alice project to a NetBeans project, i.e., Java objects are generated from your Alice objects, and the flow of the Alice project is mapped to a Java class, all of which is packed into a Java project in NetBeans IDE. A handy plugin created by the Alice team makes all this possible:

&amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;span id=&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;span id=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;span id=&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;XinhaEditingPostion&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;

NetBeans Zone - The social network for developers - October 07, 2014 02:31 PM
Max Calderoni: My Five Favorite NetBeans IDE Features!

Continuing a series of articles focusing on NetBeans users and their five favorite NetBeans IDE features, here's the next part, by Max Calderoni. -- NetBeans team. Preview Text:  Maven tools, the NetBeans debugger, and more! Max Calderoni from VMware discusses his 5 favorite NetBeans features! What are yours? Share them with the NetBeans...

Adam Bien - October 07, 2014 11:13 AM
JavaOne 2014 Afterglow and Feedback

This year JavaOne officially started with a technical keynote in the Moscone center. There were no great, breaking news, but in an open ecosystem it is hard to keep anything secret.The keynote was a bit too formal and the most interesting part was postponed to the community keynote at Thursday.

Unofficially JavaOne started with the NetBeans Party at Saturday which was crowded and a perfect place to ask NetBeans questions or give feedback to the engineers.

The technical content was excellent. I spent 14h at the first both days (8 A.M - 10 P.M.) and really enjoyed all sessions. There was appreciation event at Wednesday (which I did not attended and preferred hacking in hotel). No BOFs were delivered at Wednesday or Thursday.

The community keynote at Thursday was excellent:

  1. James Weaver @JavaFXpert was a great moderator. Professional, funny and engaging.
  2. Intel joins OpenJDK
  3. @johanvos ports JavaFX on android and wins Duke Choice Award
  4. RoboVM presents JavaFX on iOS
  5. Johan Vos and RoboVM will join forces and deliver Java 8 (JavaFX) with Lambdas on both platforms. http://javafxports.org
  6. http://dukescript.com (a Java -> JavaScript bridge) also wins the Duke Choice awards
  7. James Gosling explains the early days of Java.
  8. There was a twitter Q&A with top engineers. #1qa was top 7 trending hashtag in USA.
  9. The JavaOne video is nice.

Also the JavaFX related sessions were very popular. The session Productive JavaFX was very well attended. I got lots of specific questions from the project, so JavaFX seems to gain momentum on desktop. I got the same feedback from other speakers.

JavaOne was really good, there was no dead time, content was compressed and the attendees very passionated. There were also more attendees than last year. I got lots of questions between the sessions. The organization was good, the food was better than last and in Parc 55 there was always enough coffee. Only the Starbucks at Hilton was constantly overloaded...

Check my twitter account for pictures: https://twitter.com/AdamBien.

The only suggestion: BoFs at Wednesday would be nice as an option for the appreciation event. Also I missed more sessions delivered by Oracle speakers--I would like to hear more from the core Java / JavaEE committers.

In case my sessions get accepted -- see you next year!

Real World Java EE Workshops [Airport Munich]>

NetBeans Zone - The social network for developers - October 07, 2014 07:33 AM
Reflections on JavaOne 2014 by the NetBeans Community

NetBeans Day 2014 was even more spectacular than in previous years. Demo-driven lightning talks on key features, in particular the native integration of Maven, and the seamless deployment, debugging, and profiling of IoT embedded devices via Java and NetBeans, to packed out rooms, defined the day, with a lot of chatter in the corridors in between the sessions. Preview Text:  ...

Geertjan's Blog - October 07, 2014 07:00 AM
JavaScript at JavaOne 2014

I participated as a speaker in two sessions that related to JavaScript at JavaOne this year:

Coding for Desktop and Mobile with HTML5 and Java EE 7 [CON3143]. A session with JB Brock, where he created a KnockoutJS front-end on top of a Java EE back-end that I generated from NetBeans IDE 8.0.1. He also deployed the front-end to the Chrome browser on his iPhone, enabling him to debug the running app from NetBeans, after which I showed how to use Cordova, integrated within NetBeans, to generate a hybrid app, which I deployed to the Genymotion Android emulator.

Simplifying JavaScript/HTML5 Rich Clients with Java EE [CON6170]. A session with Johannes Weigend, where he started with Yeoman on the command line, generating the starting point for a front-end, which he connected to a Java EE back-end that I generated in NetBeans IDE 8.0.1.

In both cases, RESTful Web Services were used to expose the data that the front-ends consumed. 

In both cases, the room was totally packed out, standing room only. For example, here's a pic I took from behind JB's head, to give an impression of the crowd he saw while doing his presentation:

A lot of people were interested in the source code, since both sessions were very heavily code driven.

Here's the code for the session with JB:


Here's the code for the front-end that Johannes created:


The above give you access to the front-ends only, since the back-ends are simple to create via the relevant code generators in NetBeans IDE. 

A key message in both sessions was that a central problem in doing hybrid JavaScript/Java development, especially when you need to develop for and deploy to multiple different kinds of devices, is that you need a set of tools that can seamlessly work with both of these development platforms, as well as all of the deployment targets. And that set of tools is named "NetBeans IDE"

Geertjan's Blog - October 06, 2014 01:59 PM
@Hack Annotation

During JavaOne 2014, I suddenly realized I was talking with Collin Fagan, who has been of great help to me over the years via his blogs and articles relating to Java Swing development, such as this one. We were chatting at the end of Werner Dietl's BOF on type annotations, where I had presented some experimental work done in this area by Jan Lahoda for NetBeans IDE. More on that another time.

However, Collin mentioned his idea of a @Hack annotation. Often, when you're creating a library or framework of some kind, you're aware that your users will be using or implementing some kind of hack that you haven't had the time to clean up. You're going to come back to it later, in a future release. In the meantime, it would be pretty handy for the user of your code, i.e., another developer building on top of your library or framework, to know that they're using or implementing a hack. And, for you yourself, it will also be handy to know where to go to find your own hacks. Sure, you could add that info to the javadoc or use 'todo' comments, but it would be far more effective if you'd be able to annotate your method with a specific annotation, which could then be used by tools, such as NetBeans IDE, for code analysis, e.g., how many hacks have you, as the user of the library or framework, used or implemented? And to what extent does the library or framework you've spent years working on hang together precariously by means of a series of interconnected hacks?

Let's say for example that you're either using or implementing the Printer class above and you see hints in your IDE, such as this:

That's pretty useful. Even better than a hint would be editor annotations, i.e., a special icon in the left sidebar that marks hacks that you're working with.

Then various actions can be performed throughout your source code, e.g., search through all your applications for work you're doing with other people's hacks:

And then you'd see throughout your code where the hacks are being used.

A further enhancement could be to enforce a "reason" attribute in the annotation, so that the provider of the hacked code would need to explain in a few words why the hack is a hack and what the impact might be, e.g., performance problem or reflection code used, or something like that.

Pretty useful! It implies, though, that authors of libraries and frameworks need to be honest about their hacks. In fact, I'm calmly waiting to be excoriated for suggesting that (1) hacks exist in production code or (2) that an annotation such as this one would encourage hacks. More than likely, I'll be flayed alive in public for both. Should you be one of the flayers-to-be, please include a reference to your GitHub repo.

Note: For those wanting to see the implementation of the @Hack annotation... well... it's kind of... hacked together... at the moment.

Geertjan's Blog - October 05, 2014 09:18 AM
Top 10 NetBeans Highlights at JavaOne 2014

Back home in Amsterdam again after a wild and crazy week at JavaOne 2014 in San Francisco. Off the top of my head, without too much thinking, here's what I consider to be, in no particular order, the top 10 of the cool things happening over the past week in the context of NetBeans IDE.

  1. EPIK (Encouraging Programming in Kids). I'd never heard of EPIK, a UK-based community-driven programming group, until a few weeks ago and now they're an indelible part of the NetBeans community. I attended one of their community sessions on Saturday and it was brilliant to help little kids install NetBeans IDE! And then to see them hack the Java code of Minecraft. Looking forward to a lot of activity around the Minecraft/NetBeans combination, since the most logical choice for an IDE to use with Minecraft is NetBeans, since it is so easy to get started with, i.e., just download it, install it, and start it up, no hassles and configurations required, get hold of the EPIK Minecraft ModKit, open it in NetBeans, and then run Minecraft. Excellent work by Luke Mayell from EPIK for making this all possible and by Dorine Flies for being an amazing and inspiring organizer.

  2. Full Rooms Throughout NetBeans Day. Each session was full, or almost full, which created a really satisfying experience for speakers, as well as attendees. The panel discussion format worked even better than last year, with even more speakers than last year, and more topics addressed. It was jam packed, the whole day, in terms of everything, as well as the NetBeans party the day before. A key highlight for me was having Martijn Verburg and Ben Evans involved for the first time, as well as several other new, as well as returning, speakers, such as performance super-guru Kirk Pepperdine, Java EE and Maven rockstar Adam Bien, key community leader Markus Eisele from Red Hat, the amazing Josh Juneau, as well as Stephen Reinert from Microchip. To name just a few. We definitely need a bigger location for the NetBeans party, as well as for NetBeans Day itself.

  3. James Gosling. He's simply awesome and likes NetBeans even more than I do, which is saying something. He hosted two panel sessions, one during NetBeans Day and one later during the main JavaOne conference, on IoT and NetBeans (where IoT deployment, debugging, and profiling is supported out of the box for free), while also praising NetBeans during the community keynote on Thursday morning. (And on Facebook, his review of NetBeans includes the words: "I live in NetBeans. I use it more than email.") Do you want to debug and profile robots out at sea, in the same tool as where you're doing JavaFX development and Java EE development, while integrating with Maven natively, and all for free? No IDE other than NetBeans offers this combination of breadth of technology with shallowness of wallet. If you're interested in the technology/wallet continuum, NetBeans IDE is simply the best. And having James, as founder of Java, as the unofficial chief ambassador of this proposition is awesome!

  4. NetBeans Teachers. The newly formed "NetBeans Teachers" Google+ Group is great and it was especially cool to meet Ken Fogel, a super enthusiastic NetBeans teacher (i.e., he uses NetBeans to teach Java) from Canada, as part of a great NetBeans Day panel, which included Zoran Sevarac, the Andersons, Johannes Weigend, and Andreas Stefik. If you're a teacher using NetBeand IDE in one way or another, join the NetBeans Teachers community and share lesson plans, tips, insights, etc!

  5. IDR Solutions. Mark Stephens and his JavaFX PDF crew from IDR Solutions are turning out to be truly brilliant NetBeans partners. With the EPIK group, they've been working on the next NetBeans podcast together, i.e., we're now moving towards community-driven NetBeans podcasts (watch for a podcast driven by Codename One and others with NetBeans Dream Team members too), which will renergize and communetize the NetBeans podcast, which is something I'm really looking forward to. They've recorded several short clips already during JavaOne, so watch this space for an announcement around the release of the first community-driven NetBeans podcast!

  6. Duke's Choice Award Winners. Several of the Duke's Choice Award winners are NetBeans users. Aside from DukeScript, run by NetBeans Dream Team member Toni Epple, there was also the Field Book project from Mexico, represented at JavaOne by Tito Sanchez, as well as the PiDome project, represented by Marcel Wiebenga. In addition, there's also Mohamed Taman, who won a Duke's Choice Award for a Java EE project created in NetBeans IDE. The IoT Challenge, the awards for which were also announced during JavaOne, also featured interesting projects using NetBeans IDE, one of which was ePot Smart Gardening, which I'd like to find out a lot more about. 

  7. Oracle Partners. Several key Oracle partners were part of NetBeans Day, as well as being heavily involved in sessions dealing with NetBeans throughout JavaOne. In particular, engineers working for Boeing, NATO, and NASA played leading roles and inspired everyone by the significance of the research work they're able to do thanks to NetBeans IDE and the NetBeans Platform. For example, Sean Phillips turned up together with three of his colleagues and, together, they presented an incredible sessions on a range of NASA space missions that are being powered by NetBeans technology. If we ever figure out whether there's life on Titan, it'll probably be at least partly thanks to Java and NetBeans, how cool is that.

  8. Reuniting With 'Old' Friends. I really enjoy the community-aspect of working in the Java community at large and the NetBeans community in particular. So many friends made over the years were there again, too many to name, David Heffelfinger, Johannes Weigend, and at least about 50 others, probably closer to 100, where do I begin. Not to mention the heaps of new friends, especially those that I've been mailing with, in some cases for years, such as Bernd Ruelicke and Rajmahendra Hegde, and others such as Jens Deters (with his brilliant YouTube clips on Raspberry Pi development with NetBeans). Really, too many to mention. Looking forward to seeing everyone again, plus more, next year!

    If you want to experience 20 seconds of the NetBeans party, start by turning your audio down low, since it is very loud, as you'll find out, when you go here: https://www.youtube.com/watch?v=kLfDw11MXUs

  9. "JavaFX Programming on the NetBeans Platform". It was so great to see the physical book (more info on it here) and hold it in my hands and page through it! Gail and Paul have done an amazing job. They started with no knowledge of the NetBeans Platform, two years ago, and have built up so much knowledge between themselves, and shared it all over the world, literally, they did presentations not only in San Francisco this year and last, but also in Shanghai and Moscow! I know. I was there. Their book will stand the test of time and remain meaningful for many years to come, as long as users need reliable software, in every imaginable domain, from science to military war game planning to logistics to programming tools to whatever you can think of in the business software domain.

  10. The Many Cool Ideas For Next Year! Based on the success of the NetBeans community over the past week, there's a heap of ideas to make it even more interesting next year. Off the top of my head (as well as the heads of a few others, especially Zoran Sevarac and Sven Reimers), it would be great to -- have a bigger room for the NetBeans party, for NetBeans Day itself, have a NetBeans plugin development hands on lab, record all the NetBeans Day sessions in small clips and post them on-line, have attendees Tweet questions during all the NetBeans Day sessions just like in the community keynote, think of ways of actively integrating attendees into the sessions even more, have a "100 NetBeans Tips" session with 5 speakers from the community each doing 20 tips on specific areas of NetBeans, have a "NetBeans Platform BOF" and prepare for it by making one YouTube movie that combines about 20 different NetBeans Platform apps together and then discuss those at the BOF, make a list of demos available at the NetBeans booth in a list and let anyone who stops by request a specific demo to be done for them, integrate a simple NetBeans plugin development session with the Hackergarden, place more focus on cool community plugins, such as Gradle, WildFly, and the JPA Modeler...
And the list goes on and on. Anyway. It was awesome! Onwards to more awesomeness.

Adam Bien - October 04, 2014 06:31 AM
JavaOne News, EntityManagers, SessionScoped Stateful or 7th AIrhacks Q & A

  1. JavaOne news and coverage
  2. Different ways to reference an EntityManager from an Entity
  3. What are @SessionScoped @Stateful Beans?
  4. @RequestScoped EntityManager and web frameworks
  5. Should @OneToMany JPA relationships be avoided?
  6. Storing JPA entities and persistence by reachability
  7. Is Jenkins a microservice?
  8. "...how many SLSB that can be added in my application, can i create as many as possible SSLB, like let say, one for each entity class..." [tejo]

The questions above are going to be answered during the next "Airhacks Q & A" http://airhacks.io live. You can subscribe to the channel and / or for the next event: http://www.ustream.tv/channel/adambien (both is optional, no registration required to watch this event live).

If you miss a question, comment this post, tweet your question with the hashtag "#airhacks" or mention @AdamBien on twitter.

The best of all: you can ask the questions live using twitter (hashtag "#airhacks") or (the best option): using channel ##airhacks on http://freenode.net.

See you at Java EE Workshops at MUC Airport or on demand and in a location very near you: airhacks.io!

Real World Java EE Workshops [Airport Munich]>