I want blurred translucent background effect in my JavaFx app like in the following image. But I cannot find any satisfactory answer anywhere. This answer provides some workaround, it takes screenshot of background and sets it as background image. But the problem is, if background changes, it remain as it is.. (see screenshot) So, I have two questions If it
Tag: javafx-8
Detect doubleclick on row of TableView JavaFX
I need to detect double clicks on a row of a TableView. How can I listen for double clicks on any part of the row and get all data of this row to print it to the console? Answer Here is a complete working example:
How to rotate the LinearGradient in a given Shape?
I try to find the way to rotate the LinearGradient object nested into e.g. Rectangle object, say: Now, I try to rotate this lg object, for example for 45 degrees to the left, but without rotating the whole rect. Is there any way to achieve that? Answer The first parameters that are given to the LinearGradient constructor are the coordinates
“No select item” on JavaFX combobox?
What is the correct way to put an item which value is null, inside a ComboBox? I tried using myComboBox.getItems().add(null);, and it works, but whenever the user selects this value on the combo box, an exception is thrown on the console: So i think maybe this is not the correct way of doing that. Any clues? Answer In my experience,
How to right align a button in Java FX toolbar
I am building a UI using Java FX scene builder and I want a button in a toolbar to float towards the right side of the toolbar. I have tried changing the node orientation of the parent(toolbar) and also the button but both seem to be ignored. Answer Add a pane with no content which always grows to fit available
Show Tooltip on disabled Control in JavaFX
It is possible to show a Tooltip on a disabled Control? I have the following code and this doesn’t work: Has anyone a solution for that problem? Thx Answer The answer is no. Currently you cannot show a tooltip on disabled Node, for the simple reason that disabled Nodes do not receive any MouseEvents. You can see the issue being
Copy image from JavaFX application and paste it using Windows
I am working on a JavaFX application. I want to copy image from application using context menu and paste it using Windows feature of paste. For example, like shown below in images. And want to paste at location from using of Windows features menu. Answer Use the Clipboard and ClipboardContent, e.g. as: For the “Paste” operation of Windows context menus
How perform task on JavaFX TextField at onfocus and outfocus?
I am working on JavaFX project. I need to perform some task on a JavaFX TextField. For example on the “on focus” event for the TextField I want to print and on the “out focus” event it should print Answer I thought it might be helpful to see an example which specifies the ChangeListener as an anonymous inner class like
JavaFX 2.1 TableView refresh items
I have this common issue, as it appears to be. My table view wont refresh my items after I reset them. I have checked the data and it’s the new one. I tried multiple solution from internet but no success. Can’t reset all the columns because it adds one empty one extra (dont know why) and the resize just breakes.