View Single Post
Old 05-07-2010, 07:10 AM   #6
Tumaini
Junior Member
Tumaini began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2010
Device: Bebook One (Hanlin v3)
Here's a small update.
I've managed to run some test classes on the V3, writing some text to the screen, but I'm stuck at some very strange behaviour regarding key events.

In your HelloWindow.java class you have the following code:

Code:
class HelloWindowKeyAdapter extends KeyAdapter {
		public void keyPressed(KeyEvent keyevent) {
			// led.resume();

			if (keyevent.getCh() == KeyEvent.KEY_CANCEL)
				System.exit(0);

			if (keyevent.getCh() == KeyEvent.KEY_OK)
				runLua();

			// led.resume();
		}
	}
This throws a java.lang.VerifyError when I try to run it on the V3.
I've tried different methods to see what might be wrong.

I was able to print out both the char and respective int from keyevent.getCh() to the screen, so there's no error there.

I've even tested different if-statements without keyevent.getCh() and they work fine. I only get the error when I use if and keyevent.getCh() (or the instance variable ch) together.

Have you got any insights into this or any clues as to why it might throw this error here?
Tumaini is offline   Reply With Quote