Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » unable to select text by mouse down + drag on Java FX WebView control
unable to select text by mouse down + drag on Java FX WebView control [message #1661808] Mon, 09 March 2015 20:08 Go to next message
Danny Ju is currently offline Danny JuFriend
Messages: 14
Registered: July 2009
Junior Member
We have a JavaFX WebView embedded in Eclipse editor part.
Notice there is no easy way to select text in the WebView,
the usual mouse down + drag does not highlight the text.

The only way to select text is by clicking at the beginning of
the text and then Shift clicking at the end of the text.

The code to create the WebView looks like below:

FXCanvas fxCanvas = new FXCanvas(this, SWT.NONE);
fxCanvas.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).align(SWT.FILL, SWT.FILL).create());
fxCanvas.setLayout(GridLayoutFactory.fillDefaults().create());

browser = new WebView();
browser.setVisible(false);

BorderPane border = new BorderPane();
Scene scene = new Scene(border);
border.setCenter(browser);
fxCanvas.setScene(scene);

Re: unable to select text by mouse down + drag on Java FX WebView control [message #1661810 is a reply to message #1661808] Mon, 09 March 2015 20:10 Go to previous messageGo to next message
Danny Ju is currently offline Danny JuFriend
Messages: 14
Registered: July 2009
Junior Member
BTW, text selection in the WebView embedded in Stand-alone JavaFX App works fine.
Re: unable to select text by mouse down + drag on Java FX WebView control [message #1661835 is a reply to message #1661808] Mon, 09 March 2015 20:20 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Please remote this bug to Oracle in the JavaFX JIRA

Tom

On 09.03.15 13:08, Danny Ju wrote:
> We have a JavaFX WebView embedded in Eclipse editor part.
> Notice there is no easy way to select text in the WebView,
> the usual mouse down + drag does not highlight the text.
>
> The only way to select text is by clicking at the beginning of the text
> and then Shift clicking at the end of the text.
>
> The code to create the WebView looks like below:
>
> FXCanvas fxCanvas = new FXCanvas(this, SWT.NONE);
> fxCanvas.setLayoutData(GridDataFactory.fillDefaults().grab(true,
> true).align(SWT.FILL, SWT.FILL).create());
> fxCanvas.setLayout(GridLayoutFactory.fillDefaults().create());
>
> browser = new WebView();
> browser.setVisible(false);
>
> BorderPane border = new BorderPane();
> Scene scene = new Scene(border);
> border.setCenter(browser);
> fxCanvas.setScene(scene);
>
>
Previous Topic:org.eclipse.fx.javafx export conflict
Next Topic:Example plugin fails. No workbench3 plugin found
Goto Forum:
  


Current Time: Thu Jan 23 15:10:37 GMT 2025

Powered by FUDForum. Page generated in 0.02982 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top