Feeds:
Posts
Comments

Archive for July, 2009

image The truth is that there is no direct way to remove the maximize button off the  Resizable JFrame as it is created by Windows and it is not painted using Swing so U can’t touch this.

Still many posts on the net are giving “creative” suggestions on how to remove the maximize button of “JFrame”. The simplest and yet effective solution is to replace JFrame with JDialog as the latter does not have a maximize button. Other feasible “Java-based” solution is  remove the title bar and painstakingly implement customized title bar.

(more…)

Advertisements

Read Full Post »

The objective of this post talk about my little “adventure” in resolving the fatal Java error that prohibits running Java application.

Symptoms

You use to have the Java applications and Java IDE on your Windows-based system working then one fine day, out of unknown reason, all the Java application and plug-in in the IDE cease to work. Worse, no error message and the application just silently fail to run. Oh, your first thought is that this shouldn’t happen because it is not even April’s fool day or Monday’s blue because today is Wednesday in July. So your first reaction is to re-install the Java SDK or runtime assuming that they might have been damaged. However just before re-installing you confirm that the SDK/runtime is indeed the main problem so you test-run some command in Window command console. jar.exe command run fine but running java.exe on directory other it’s bin directory produce the infamous

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

What so damaging about this problem is the some plugins like Android and Grails in Intellij become non-functional as well. You know why very soon.

So here I go trying to resolve the issue. Running Java.exe produce error in other directories (since the SDK’s bin is added to path.)

image

However running in it’s bin directory, it runs fine.

image

(more…)

Read Full Post »

Geezer: A whiter shade of pale (S2)

image  image

A Whiter Shade of Pale is a popular classic song by Procol Harum.  It has a haunting melody and very “nostalgic” feel to it.

(more…)

Read Full Post »

This is a follow-up to my post: Android: Zip download of Cupcake Android v1.5 source code

There is a popular quote which says

image Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.

That’s definitely true for most developers using Windows as the main development platform and will want to get the latest Android Source code without installing any prerequisite software (Cygwin, repo, git etc) to obtain the latest source code, and hence the fastest way to do so is to obtain the zip Android Source code uploaded by some kind souls. However, it is always best not to depend on someone else in the long run and therefore it will be beneficial to learn how to obtain the latest source code. Although it is unnecessary to periodically getting the latest entire source code, it is good to know that one can easily obtain the latest source code just as easy as saving a file (albeit with much patience) . In addition, the source code may even more valuable if it can be easily accessible in the IDE. So the objectives for this post is

This post will split into two main sections: Downloading the Source Code and Configuring the Source Code for use in Intellij.

(more…)

Read Full Post »