unable to select text by mouse down + drag on Java FX WebView control [message #1661808] |
Mon, 09 March 2015 20:08  |
Eclipse User |
|
|
|
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 #1661835 is a reply to message #1661808] |
Mon, 09 March 2015 20:20  |
Eclipse User |
|
|
|
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);
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05286 seconds