swing - how to get selected text from webview in java -


i using code return null,

string selection;  selection= (string) webview.getengine()                  .executescript("window.getselection().tostring()"); system.out.println(selection); 

i trying selected text html page displaying on webview in java enabled javascript in code through eng.setjavascriptenabled(true);


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -