JDK 6…, improvement over JDK 5…, not

For example, following issues seem to be persistently existing: Bug ID: 6566201 JNLP ClassLoader performance degraded in 1.6 significantly for the signed(?) jar Bug ID: 6532373 xcb_xlib.c:50: xcb_xlib_unlock: Assertion ’c->xlib.lock’ failed. First issue means huge slow down in webstart application startup. When doing some profiling in webstart started application, it’s consuming huge amount of memory…

Read more

Detecting from where code is called

Detect if current piece of code is called by own classes: [code lang=”java”] /** * @return True if current execution points originates from own classes */ public static boolean isOwn() { StackTraceElement[] stack = Thread.currentThread().getStackTrace(); int len = stack.length; for (int i = 2; i < len; i++) { if (stack[i].getClassName().startsWith("org.kari.")) { return true; }...

Read more

Linux x86_64 is hell

Not so surprisingly, Linux x86_64 is pure hell. Namely after trying to configure it to have all multimedia capabilities. At this point of time hell comes loose, and everything starts to break down due to dependency hell. And end result is just twisted sick compromise of possibilities. Thus if one is wanting to be able…

Read more

Calculating JTextComponent -height

Problem: Let’s assume that we know the available width and we should determine what is the required height for JTextComponent within that limitation. This problem arises immediately, at least in three cases in java: Variable row height table cells Tooltip size Message dialog size In all of these cases, it is necessary sometimes to know…

Read more

Alive

Havent really been able to update travel log, which just tells that we have haoe plenty of things to do . :):)

Read more