controlsfx

CheckComboBox(ControlsFX) set to read only [JavaFX]

北战南征 提交于 2021-02-10 07:27:09
问题 I have been trying to figure out how to set CheckComboBox to read-only. I do not want to disable the CheckComboBox because I want the user to be able to scroll and look through the already checked items, however I want to disallow the ability of checking/unchecking an item. Is there a way to do this? 回答1: Hacky and fragile, but works: public class CheckComboReadOnlySkin<T> extends CheckComboBoxSkin<T> { public CheckComboReadOnlySkin(CheckComboBox control) { super(control); ((ComboBox)

Java Swing Version of ControlsFx ListSelection View

僤鯓⒐⒋嵵緔 提交于 2020-07-10 07:47:17
问题 I am looking for a Java Swing Version of 2 JLists that interact with one another. An "available" list and a "selected" list. You can move elements from one list to the other. I also would like to be able to move items in the "selected" list up and down... 回答1: Been looking all over for this and couldn't find it so I decided to code it myself and share it.. This is a Dual JList which allows moving elements from one to the other via buttons or mouse double click. I used the example here to come

javafx NullPointerException with controlsfx Notifications componnets

不打扰是莪最后的温柔 提交于 2020-05-23 15:54:05
问题 I want to develop an application that uses controlsfx Notifications to show some notifications in system tray mode. In normal mode my application works well and notification can be shown successfully.but when I hide stage in system tray , NullPointerException occurs. I don't know how i can fix this problem. import java.awt.AWTException; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.awt.event

JavaFX : Mouse events for a PopOver Window (ControlsFX)

你说的曾经没有我的故事 提交于 2020-03-23 07:56:17
问题 I am having the following code to display a PopOver (Custom PopUp by ControlsFX - mvn repo) public class JavaFXApplication35 extends Application { @Override public void start(Stage primaryStage) { try { Label lblName = new Label("Tetsing name"); Label lblStreet = new Label("Some street name"); Label lblCityStateZip = new Label("Some city, 111111"); VBox vBox = new VBox(lblName, lblStreet, lblCityStateZip); PopOver popOver = new PopOver(vBox); Label label = new Label("Mouse mouse over me");

JavaFX 教程 (中文)

帅比萌擦擦* 提交于 2020-02-27 18:19:44
https://code.makery.ch/zh-cn/library/javafx-tutorial/part3/ JavaFX 8 教程 系列:部署 https://www.yiibai.com/javafx/ JavaFX 8 教程 (中文) code.makery 教程 http://code.makery.ch/library... JavaFX 8 教程 (中文) https://blog.csdn.net/caolaos... JavaFX的扩展控件库ControlsFX介绍 https://blog.csdn.net/qq_2305... 来源: oschina 链接: https://my.oschina.net/u/2963604/blog/3162321

Using CcontrolsFX's SpreadsheetView in Java 9

穿精又带淫゛_ 提交于 2020-01-25 07:22:06
问题 I've got an application written in Java 8 with ControlsFX 8.40.14. I run the app under Java 9 (jdk-9.0.1 to be precise) and I got the following exception when the app tries to display SpreadsheetView component. Exception in thread "JavaFX Application Thread" java.lang.NoSuchMethodError: javafx.scene.control.TableColumn.impl_setReorderable(Z)V at org.controlsfx.control.spreadsheet.SpreadsheetView.getTableColumn(SpreadsheetView.java:2216) at org.controlsfx.control.spreadsheet.SpreadsheetView

Gradle run with `--add-exports`

感情迁移 提交于 2020-01-24 18:10:28
问题 I got a java.lang.IllegalAccessError because of using a com.sun.* class in Java >9. The solution to this is to add --add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls . I'm not sure how to add this to my build.gradle , but I put run { jvmArgs = ['--add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls'] } into it and it didn't help. This is pretty much the issue I have. The error message is: java.lang.IllegalAccessError: class org.controlsfx.control.textfield

ControlsFX: CheckComboBox Popup Styling

倾然丶 夕夏残阳落幕 提交于 2020-01-23 12:15:09
问题 I am trying to style the actual popup menu (not the cells, because I believe I can style those). I have tried using the ".combo-box-popup" selector and the ".combo-box-popup .list-view" selector to no avail. I believe this is because the CheckComboBox delegates to an internal ComboBox and so the usual styling doesn't work, but I may be wrong. I have even tried (after searching through the code) to get "at" the popup itself but couldn't figure out a way to do this. I am only able to style the

TextField/Component Validation with Controls FX

微笑、不失礼 提交于 2020-01-17 04:51:30
问题 I'm trying to implement a textfield like this one : TextField Validation http://imageshack.com/a/img537/8329/FSht8P.png My goal is to identify if the text of the TextField is a Double or something else (then it appears in red). I want to use ControlsFX to learn the library and to not edit the css, but it doesn't work very well, and I'm lost in the javadoc. Does anyone have an example or can help me improve my code ? Here what I tried to do : Validator<Double> checkTextField = new Validator

Java error on CSS

做~自己de王妃 提交于 2020-01-13 06:26:11
问题 Today java is going crazy with CSS styling, I think it could be a problem of dependencies, my dependences are: <dependency> <groupId>com.jfoenix</groupId> <artifactId>jfoenix</artifactId> <version>1.11.0</version> </dependency> <dependency> <groupId>org.controlsfx</groupId> <artifactId>controlsfx</artifactId> <version>8.40.13</version> </dependency> <dependency> <groupId>de.jensd</groupId> <artifactId>fontawesomefx</artifactId> <version>8.9</version> </dependency> and the errorr is: Dic 22,