java - MacBook multi-touch pad, MouseEvent and JavaNativeExceptions -


i have java program wrote kids allows them paint circle on jpanel left mouse button, , remove circle clicking right mouse button within circle created. here code mouselistener:

addmouselistener(new mouseadapter() {             @override             public void mouseclicked(mouseevent e) {                 switch (e.getbutton()) {                 case mouseevent.button1:                     addcircle(e.getpoint());                     break;                 case mouseevent.button2:                     // nothing                     break;                 case mouseevent.button3:                     removecircle(e.getpoint());                     break;                 default:                     // no default action                 }             }         }); 

the program works fine regular mouse, when using macbook multi-touch pad, 4 finger swipe throws javanativeexception:

java[15233:507] lookup: unhandled exception 'javanativeexception' caught in __57+[lulookupdefinitionmodule _focustermusingqueue:handler:]_block_invoke 

i tried wrapping in generic exception, javanativeexception still getting through.

is can resolved without third-party multi-touch library? doesn't terminate program, kids don't care. it's more of academic question me.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -