Skip to content
Advertisement

Tag: javafx-8

Translucent blurred background in JavaFx

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

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,

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

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.

Advertisement