controlsfx

ControlsFX Notification Graphic corrupted

谁说胖子不能爱 提交于 2019-12-25 06:11:58
问题 I am using ControlsFX Notification to display a group of messages. Text is not perfect way for me, so I present data in TableView. import org.controlsfx.control.Notifications; ...... TableView<NotificationModel> notificationTable = new TableView(); ...... Notifications notification = Notifications.create() .title("Transaction Notifications") .text(null) .graphic(notificationTable) .position(Pos.BOTTOM_RIGHT) .hideAfter(Duration.minutes(1)); notification.show(); In normal case, notification

ControlsFX Notification Graphic corrupted

大兔子大兔子 提交于 2019-12-25 06:11:24
问题 I am using ControlsFX Notification to display a group of messages. Text is not perfect way for me, so I present data in TableView. import org.controlsfx.control.Notifications; ...... TableView<NotificationModel> notificationTable = new TableView(); ...... Notifications notification = Notifications.create() .title("Transaction Notifications") .text(null) .graphic(notificationTable) .position(Pos.BOTTOM_RIGHT) .hideAfter(Duration.minutes(1)); notification.show(); In normal case, notification

ControlsFX 8.20.7 Wizard examples - getting Wizards to work

眉间皱痕 提交于 2019-12-24 03:13:02
问题 I am trying to develop a wizard using the new ControlsFX 8.20.7 release. I have taken a look at the following example: BitBucket ControlsFX, and especially the method showLinearWizard() I simply can't understand how to use this API, can anyone help me get going or link to some examples? This is my code right now, full of errors: public class WizardTest extends Application { private final ComboBox<StageStyle> styleCombobox = new ComboBox<>(); private final ComboBox<Modality> modalityCombobox =

How to implement AutoComplete TextField using ControlsFX

时光总嘲笑我的痴心妄想 提交于 2019-12-23 15:29:10
问题 I'm using the latest version(8.0.5) of ControlsFX and I think I need a little help with the AutoComplete TextField because I'm very new at this. I got this code from here AutoCompletionTextFieldBinding.createBinding( MyTxtField, SuggestionProvider.create("Hey", "Hello", "Hello World", "Apple", "Cool", "Costa", "Cola", "Coca Cola") ); But it show a error: method SuggestionProvider is not applicable. Any advice to implement this autocomplete in order to have an array like a dictionary with ID

Validate JavaFX form only after submission using ValidationSupport

拈花ヽ惹草 提交于 2019-12-14 02:00:06
问题 I'm trying to validate a javafx form using ValidationSupport, the validation is working, but when I access the form the "errors decorations" are already shown, even before the form is submitted or the textfield is focused. ValidationSupport validationSupport = new ValidationSupport(); validationSupport.registerValidator(textField, Validator.createEmptyValidator("Text is required")); The following image shows an example of the form in its initial state. How can I force the decoration to show

Controls FX Progress Dialog Modality & Alert Modality

大憨熊 提交于 2019-12-13 03:55:03
问题 I have run into a little bit of an issue that I am not real sure on what to do. My application will have a general application stage which will present the users with their options for work - i.e. a task list, or something like that. When the users selects one of these options, I am to navigate to window to perform the work. They would like to have the general stage open always and open a another stage for the work to be done. I can do that with: FXMLLoader loader = new FXMLLoader(); Parent

Is there a way to include JavaFX controlsFX in Intellij Scene Builder?

放肆的年华 提交于 2019-12-13 03:42:23
问题 I was wondering if there is a way to include controlsfx into the Scene Builder inside JetBrains Intellij. I tried to google it but I did not find anything relevant or updated. 回答1: just add the controlsfx jar file to the project libraries. then you can use the controls in it in the built-in scene builder If you create user control in your project intellij will allow you to use it directly in the built-in scene builder just as you use external controls. 来源: https://stackoverflow.com/questions

How to rotate values inside a cell in spreadsheet controlsfx when setting values from a list?

独自空忆成欢 提交于 2019-12-13 03:31:30
问题 I tried using this approach for the Name label and it worked great. Now, I am trying to set values to other cells from a method using the code below: List<String> values = new ArrayList<>(); values.add("test1"); values.add("test2"); values.add("test3"); values.add("test4"); values.add("test2"); values.add("test5we"); values.add("test5we"); values.add("test5we"); values.add("test5qq"); values.add("test5gf"); values.add("test5v"); values.add("test5s"); values.add("test5a"); for (int column = 3;

How to change text in cells (SpreadsheetView by ControlsFX)?

一曲冷凌霜 提交于 2019-12-11 07:16:25
问题 I have the SpreadsheetView class in my programm: SpreadsheetView table; gridBase = new GridBase(rowCount, columnCount); ObservableList<ObservableList<SpreadsheetCell>> rows = FXCollections.observableArrayList(); for (int row = 0; row < gridBase.getRowCount(); ++row) { final ObservableList<SpreadsheetCell> list = FXCollections.observableArrayList(); for (int column = 0; column < gridBase.getColumnCount(); ++column) { SpreadsheetCell cell = SpreadsheetCellType.STRING.createCell(row, column, 1,

Set Items Selected in a CheckComboBox

僤鯓⒐⒋嵵緔 提交于 2019-12-11 04:03:37
问题 I´m using the CheckComboBox by ControlsFX for a Project and I want to set some of the Items Checked from the Start so I tried this Code in my initialize-Methode, but when i start the program, nothing is set Selected/Checked. checkBox.getCheckedModel.check(1); I´m using an ObservableList of Strings for the Box and got it build into my FXML file and everything works fine, but the CheckModel-thing refuses to work. Thanks in advance! 回答1: Hi you can try use the folllowing CheckComboBox