controlsfx

How to rotate cell value in spreadsheetview controlsfx?

别说谁变了你拦得住时间么 提交于 2019-12-11 00:48:34
问题 I tried using the code below //css .spreadsheet-cell.verticalHeader{ -fx-rotate: -90; -fx-background-color: white; } //controller cell = SpreadsheetCellType.STRING.createCell(row, 2, 1,1, "Pin"); cell.getStyleClass().add("verticalHeader"); rows.add(cell); but the output is like this: 回答1: What do you want to do exactly? You are applying a rotation on the cell itself, therefore rotating the whole Node. My advice would be to set a null value in the SpreadsheetCell, and set a Label inside the

How to check and uncheck all items when checking or unckeck some of the items

蓝咒 提交于 2019-12-11 00:34:16
问题 JavaFX CheckComboBox How to check and uncheck all items when checking or unckeck some of the items. Check all when ckeck item All Uncheck all when unckeck item All ObservableList<String> list = FXCollections.observableArrayList("All","Item 1", "Item 2", "Item 3", "Item 4"); checkBoxCombo.getItems().addAll(list); checkBoxCombo.getCheckModel().getCheckedItems().addListener(new ListChangeListener<String>() { public void onChanged(ListChangeListener.Change<? extends String> c) { if(checkBoxCombo

How to reopen/prevent closing of ControlsFX LoginDialog on failed login?

百般思念 提交于 2019-12-08 07:17:11
问题 In my application, the first I do is request the user to login using the controlsFX LoginDialog. If the login is successful, I display the application, however if it fails the login window will close. I would rather the login window stay open to allow the user to attempt to login again. public void start(Stage stage) throws Exception { LoginDialog ld = new LoginDialog(new Pair<String, String>("", ""), new Callback<Pair<String,String>, Void>() { @Override public Void call(Pair<String, String>

Customize ControlsFX Notifications

一曲冷凌霜 提交于 2019-12-08 02:36:12
问题 I want to use ControlsFX Notifications class, as JavaFX seems to doesn't offer anything like it (or does it?). For me to use it I want to be able to customize the color of the notification and some other styles. Does anybody have an idea of how I can do that? Edit: Through setting Notifications.owner(...) the notification is styled the same way as my main application, but it is then shown within the main application as well and not at the bottom right corner of my screen. 回答1: Notifications

How to run ControlsFX sample application using Java 11 and JavaFX 11

痞子三分冷 提交于 2019-12-07 07:48:06
问题 ControlsFX website says: If you want to play with the ControlsFX sample application, simply download the ControlsFX release and run the following command on the command prompt (be sure to replace the * with the actual version number of FXSampler and ControlsFX-samples): java -jar controlsfx-samples-*.jar I've downloaded ControlsFX 9.0.0 which is said to be for users of Java 9 and later. When I run java -jar controlsfx-samples-9.0.0.jar I get Error: Could not find or load main class fxsampler

Customize ControlsFX Notifications

若如初见. 提交于 2019-12-06 11:52:25
I want to use ControlsFX Notifications class, as JavaFX seems to doesn't offer anything like it (or does it?). For me to use it I want to be able to customize the color of the notification and some other styles. Does anybody have an idea of how I can do that? Edit: Through setting Notifications.owner(...) the notification is styled the same way as my main application, but it is then shown within the main application as well and not at the bottom right corner of my screen. Notifications.create().title(...).text(..).action(...).position(Pos.BOTTOM_RIGHT).show(); Through using this line in Java

WizardPane : Disable 'Previous' button on a screen

▼魔方 西西 提交于 2019-12-06 11:44:25
How can I disable the 'Previous' button on my Screen of the ControlsFX WizardPane ? I am trying it with this method prev.setDisable(true) but what I have is NullPointerException . public class MainApp extends Application { Wizard wizard = new Wizard(); WizardPane1 page1 = new WizardPane1(); WizardPane page2 = new WizardPane(); WizardPane page3 = new WizardPane() { @Override public void onEnteringPage(Wizard wizard) { Node prev = lookupButton(ButtonType.PREVIOUS); prev.setDisable(true); } }; page1.setContent(page1.getInit()); wizard.setFlow(new LinearFlow(page1, page2, page3)); wizard

ControlsFX: CheckComboBox Popup Styling

狂风中的少年 提交于 2019-12-06 08:36:26
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 gray button cell by calling "setStyle()" on the internal ComboBox within my derived skin class (I

How do I change the style of Autocomplete TextField (ControlFX)?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 13:18:53
I have an Autocomplete TextField from controlsFX and I want to change the size and the color of each item. This is my part of code : TextFields.bindAutoCompletion(txt_numberOfCard_GENERAL, cardNumber); Edit : Autocomplete from ControlFX is a Popup window contains ListView ,the default css style of AutoComplete is : /** * Style based on Modena.css combo-box-popup style */ .auto-complete-popup > .list-view { -fx-background-color: linear-gradient(to bottom, derive(-fx-color,-17%), derive(-fx-color,-30%) ), -fx-control-inner; -fx-background-insets: -1 -2 -1 -1, 0 -1 0 0; -fx-effect: dropshadow(

javafx NullPointerException with controlsfx Notifications componnets

£可爱£侵袭症+ 提交于 2019-12-01 20:39:19
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.ActionListener; import javafx.application.Application; import javafx.application.Platform; import javafx