java - How can I enable left click drag or right click in swt.browser -


i trying embed web browser inside java application. unfortunately has in application , not open browser.

i have found org.eclipse.swt.browser. using browser display 3d models , when click in browser , drag mouse should able rotate it. there option enable or can fix this?

you can use site example: https://a360.autodesk.com/viewer

when open site there models can rotated left click or moved right click. example site

but when open same page using swt.browser can't neither rotate or drag model.

import org.eclipse.swt.swt; import org.eclipse.swt.browser.browser; import org.eclipse.swt.widgets.display; import org.eclipse.swt.widgets.shell;   public class browserclass {   public static void main(string[] args) {     display display = new display();     final shell shell = new shell(display);     shell.settext("browser example");     shell.setsize(1300, 800);       final browser browser = new browser(shell, swt.none);     browser.setbounds(5, 5, 1275, 750);      shell.open();     browser.seturl("https://a360.autodesk.com/viewer");     while (!shell.isdisposed()) {       if (!display.readanddispatch())         display.sleep();     }     display.dispose();   } } 

enter image description here

i have attempted removing display.sleep() , have tried using settouchenabled(true) can use on shell , browser. display has set false issue here?

using swt.none style of browser on windows use internet explorer default. looks ie doesn't support whatever magic used show animation.

try using swt.mozilla force swt use xulrunner backend.

here's more information on how that:

how explicitly use mozilla browser's underlying renderer?


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -