Adding frame counter to swt (jruby)