Archive for the ‘java’ Category

They Killed Kenny!

October 3, 2008

And me killed GX WebManager :) And have no idea how to fix it yet. Discussing it here.

Search in CMS GX WebManager

September 24, 2008

Almost a day I spent trying to setup a search engine of GX WebManager 9.5.2 Community edition on my Windows XP local environment.  The solution is easy.

(more…)

NB and java combo-box issue in ubuntu

August 15, 2008

I have got the following issue with combo-box drawing in java applications (including NetBeans IDE):

I have Ubuntu 8.04.1 with “human” theme and “extra” visual effects turned on. Java version is jdk 1.6.0_10-rc. I don’t remember for sure but it seems I had the same issue on my previous Ubuntu installation 7.10 with jdk 6u02.

Any ideas how to fix it? Everywhere in operating system interface everything is OK with combos.

Update. The solution seemed to lay on the surface. The idea was to change the default jvm look and feel and force NetBeans use it. Default look and feel for swing applications can be changed as described here in j2se tutorial. In my case the path of swing.properties file was the following: /opt/jdk1.6.0_10/lib/swing.properties. All the swing applications I ran had the specified look and feel. But not NetBeans itself. That’s because the IDE uses a UIManager to specify look and feel and to override it I need to dive deeper. I don’t need it. But if you wish - take a look at this discussion. Here you can find some some ideas.

i18n bug in NetBeans is fixed

July 2, 2008

As a result of my previous post concerning i18n problem in Matisse I’ve reported about this issue in community. It was clear that code was refactored by IDE by introducing java.util.ResourceBundle bundle variable but something went wrong with it and as a result we have synax errors. After a couple of letters between me and one of the developers (I’ve explaned steps to reproduce, sent some sources and given my estimates) they’ve fixed the issue:

Code string contains: java.util.ResourceBundle.getBundle(”com/sandlex/svr/resource/Application”, new Locale(Configurator.getInstance().getLocale())).getString(”Show_list_button”).

To workaround this problem we need to change code slightly by adding a dummy space after ‘getInstance()’ e.i. replace ’getInstance().’ by ‘getInstance() .’.

This issue was fixed in current build and will be released: http://www.netbeans.org/issues/show_bug.cgi?id=138802

NetBeans Matisse

July 2, 2008

Why I’m going to avoid Matisse.

(more…)

Issue: NetBeans cannot load my plugin

June 20, 2008

Today I faced the problem with NetBeans: it couldn’t load my plugin I’m developing.
I have a plugin representing a toolbar for IDE. If I do some changes in code and want to run a plugin invocing “Install/Reload in targed platform” command I always get an exception:

(more…)

NetBeans podcast

April 3, 2008

Yesterday I found the another one podcast for me to listen - the NetBeans podcast. This podcast is about my favorite java IDE - NetBeans and describes new features of IDE, upcoming events and other topics from NetBeans-world. RSS-feed is http://feeds.feedburner.com/netbeanspod. Show notes are also available. Enjoy.

Some thougths

March 15, 2008
My Windows died again and I didn’t managed to make it run within an hour, so I decided start using Ubuntu for programming. I’ve downloaded NetBeans 6.0.1 and it works prefectly. WTK works fine as well so I haven’t any reasons to attemts other efforts for restoring Windows.
As for VocRecaptor I’ve started using SVN for subversioning. I will try wiki and other services which assembla.com provides. I think it will be much convinient to use their bug tracking systems instead of FreeMind which I used to use before (and still using now).
This week I have to solve the problem with VocRecaptor - it doesn’t work on MacOS X and some versions of Linux (for example on Ubuntu with all visual effects switched on). So I was given a piece of advise - why should I always use system tray if it causes all mentioned problems? So this week I have to fix it and make a release.

How to enable touchscreen support in WTK

March 11, 2008
To enable support of the touchscreen in WTK:
WTK2.5.2\wtklib\devices\DefaultColorPhone\
DefaultColorPhone.properties
and set touchscreen support parameter to true:
touch_screen=true
Here WTK2.5.2 depends on your WTK home directory and DefaultColorPhone directory and the name of property file depends on you emulator device.

JSP, Logging, OSGI

January 14, 2008

These days I faced the problem related with JSPs on OSGi framework. The main problem was with log4j and it described here - http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.technology.equinox/msg03325.html .
The solution was found here - http://www.slf4j.org/manual.html.