Workaround BooleanStateAction in Mac OSX Global Menu

June 18th, 2012

If you are using BooleanStateAction and bitten by this bug #207477.
And interestingly this bug is start to creep into Ubuntu Unity Global Menu as well (using Java Ayatana plugins).

Below is the workaround. The idea is to maintain the JMenuItem reference ourselves and set the appropriate (checked/enabled) state.
So you can inherit from WorkaroundBooleanStateAction instead of original BooleanStateAction

Read the rest of this entry »

Tags: ,

Netbeans and Ubuntu Unity

June 11th, 2012

If you are developing application with Netbeans in Ubuntu Unity environment, most likely the Netbeans menu is black (hard to spot) and in bold text (ugly). And this things effecting all java program. It is due to the ambience theme employed by Ubuntu which result in menu black and bold. And not only that, because the new Unity is using Unity Launcher and Global menu, all java application will looks weird on that environment eg: no global menu, wrong launcher icon, not integrated into Unity HUD, etc

So how to fix that. The menu black things can be solved by changing the ambience theme into another theme or you can edit the ambience theme resources definition file. But the global menu and HUD integration is harder to workaround.

Luckily if you are using Netbeans you can just use Java Ayatana plugin which solve all the problem above. Java Ayatana will integrate Netbeans nicely with Ubuntu Unity eg: Ubuntu global menu, Ubuntu HUD integration, Unity launcher fix, etc.

Read the rest of this entry »

Tags: , , ,

How to build and sign Android APK using JDK 7 with Netbeans

June 7th, 2012

If you build and sign android application using jdk 7, the result apk could not be installed on physical device,
see http://code.google.com/p/android/issues/detail?id=19567

It is because the default digest algorithm for Java 7 is SHA-256,
see http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html

So one of the easiest way to sign android apk using jdk 7 is by adding the following to the build.xml

<presetdef name="signjar">
    <signjar sigalg="MD5withRSA" digestalg="SHA1" />
</presetdef>

note: the above example is using Netbeans 7.1.2 with NbAndroid plugins.
Other IDE should adjust accordingly.

Tags: , ,

Netbeans and Android Development with NbAndroid

August 12th, 2011

If you haven’t aware that Netbeans support android development, please check out NbAndroid, it is a plugins for Netbeans IDE that provide support for the whole development cycle of Android applications.

  1. You just need to download the latest NbAndroid plugins from NbAndroid
  2. The Goto Menu – Tools – Options,
    on Miscellaneus – Android,
    and set your android sdk there.
  3. You are done.

Read the rest of this entry »

Tags: , ,

Oracle Java Roadmap for Client Side

October 28th, 2010

Finally, Oracle speak about Java Roadmap especially for the client side at JavaOne 2010 JDK BOF session which you can see from Amy Fowler blog. From what I can understand, it boils down to several things:

Read the rest of this entry »

Tags: , , ,

Book Review: Netbeans Platform 6.9 Developer’s Guide

September 15th, 2010

Netbeans Platform 6.9 Developer’s Guide by Jürgen Petri comes with 273 pages. This is not Java beginner book or learning Java book, and not about Netbeans IDE as well. The author assumes zero Netbeans Platform knowledge. This book is written for developers who are comfortable with Java and Swing, and who would like to use a framework (Netbeans Platform) as the basis of their Swing applications.

Read the rest of this entry »

Tags: , ,

Packt launch 5th annual Open Source Awards

August 26th, 2010

I just received an email from Packt Publishing regarding its Open Source Awards, so I just posted here to anyone who interested.

Packt launch 5th annual Open Source Awards

Birmingham, UK. 9th August 2010

The 2010 Open Source Awards was launched today by Packt, inviting people to visit www.PacktPub.com and submit nominations for their favorite Open Source project. Now in its fifth year, the Award has been adapted from the established Open Source CMS Award with the wider aim of encouraging, supporting, recognizing and rewarding all Open Source projects.

Read the rest of this entry »

Tags:

Finally! Microsoft will support native SVG in IE9

March 18th, 2010

Yesterday (March 16, 2010) at Microsoft’s MIX10 Conference in Las Vegas, IE General Manager Dean Hachamovitch announced that native SVG is to be included in IE9. And not only that, it is also the first browser to provide hardware-accelerated SVG support.

http://blogs.msdn.com/ie/archive/2010/03/16/html5-hardware-accelerated-first-ie9-platform-preview-available-for-developers.aspx

This is great news for SVG designers or developers, because soon all major browsers will or already support SVG. Some already support SVG (Firefox, Google Chrome, Opera) and Microsoft Internet Explorer will follow the suit.

Tags: ,

Netbeans Platform RTL (Right To Left) Component Orientation

October 21st, 2009

If you haven’t aware Java have support for RTL (Right-To-Left) for the User Interface, and thank to Netbeans Platform based on Swing, it is easy as well to make Netbeans Platform application to support RTL (Right-To-Left) as well

Step 1: Create ComponentOrientation support class

This step is optional, but make the testing easier, because it use the value component orientation from System.getProperty(“..”), and use auto (based on Locale.getDefault() if nothing specified.

Read the rest of this entry »

Tags: , ,

Who are using Netbeans Platform ?

October 14th, 2009

Did you ever wondering who (companies or developers) are using Netbeans Platform as their platform of choice ? You will be surprised if you check this Netbeans Platform Screenshot Showcase.

There are a lot of them from various categories: Aerospace & Defence, Oil & Gas Services, Geospatial, Bio & Chemoinformatics, Scientific Modelers, Monitors, & Analyzers, Healthcare, Network Management & Communications Systems, Retail, Graphic Design & Image Manipulation, Music & Entertainment, Software Development.

Read the rest of this entry »

Tags: ,