incompatible in unix? calculating cpu time in swing ?

I am confused about the fact that when I run my swing program in netbeans on windows xp platform. The buttons have the ability to traverse the focus around using TAB key. But when I run the program in unix, the TAB key has no effect on the focus at all. I really want the TAB key to work !!!

Also, anyone knows if java has a method to calculate cpu time? I can only use System.currentTimeMillis() to measure the wall clock time. But I will need the actual cpu time spent on that particular thread.

Can somebody help ? Thanks !!!

[547 byte] By [ch_lia] at [2007-10-1 21:42:55]
# 1

> the TAB key has no effect on the focus at all. I

> really want the TAB key to work !!!

This is an OS specific thing, not a Java thing

> Also, anyone knows if java has a method to calculate

> cpu time? I can only use System.currentTimeMillis()

> to measure the wall clock time. But I will need the

No. No such method exists. However you can use diagnostic packages like JProbe

tjacobs01a at 2007-7-13 7:45:27 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...