controlsfx

Is there a way to change the built-in controlfx notification popup color?

 ̄綄美尐妖づ 提交于 2020-01-07 04:22:49
问题 [Edit] here is an exemple of use of the notification popup I'm talking about: Notifications.create().title(...).text(...).hideAfter(Duration).show(); in this case the notification popup follow the modena style (a little bit gray) if we add dark style like this: Notifications.create().darkStyle().title(...).text(...).hideAfter(Duration).show(); It's shown with dark color So I just want to know if there is a way to change these default style, I already know about the notification pane and I am

Is there a way to change the built-in controlfx notification popup color?

倾然丶 夕夏残阳落幕 提交于 2020-01-07 04:22:25
问题 [Edit] here is an exemple of use of the notification popup I'm talking about: Notifications.create().title(...).text(...).hideAfter(Duration).show(); in this case the notification popup follow the modena style (a little bit gray) if we add dark style like this: Notifications.create().darkStyle().title(...).text(...).hideAfter(Duration).show(); It's shown with dark color So I just want to know if there is a way to change these default style, I already know about the notification pane and I am

WizardPane : Disable 'Previous' button on a screen

故事扮演 提交于 2020-01-02 09:58:52
问题 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); } };

WizardPane : Disable 'Previous' button on a screen

被刻印的时光 ゝ 提交于 2020-01-02 09:58:26
问题 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); } };

JavaFX PopOver From ControlFX

有些话、适合烂在心里 提交于 2019-12-30 17:56:11
问题 Can someone write a short JavaFX example of a Popover from ControlFX ? I haven't been able to get it to work. Any help is greatly appreciated! 回答1: you must google out for that many sites are available nowadays https://bitbucket.org/controlsfx/controlsfx/commits/dca9619e05de26d176aaafe785c3b94f022562ef https://bitbucket.org/controlsfx/controlsfx/pull-request/158/initial-commit-of-popover-control/activity and etc. just Google out. Here we have program known as "HelloPopOver". import javafx

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

对着背影说爱祢 提交于 2019-12-30 10:09:12
问题 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); 回答1: 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(

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

岁酱吖の 提交于 2019-12-30 10:09:07
问题 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); 回答1: 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(

Action Buttons css style in JavaFX ControlFX dialog

纵饮孤独 提交于 2019-12-29 08:01:57
问题 I've been using ControlsFX dialogs to show information, but the style of my application is not blue, and does not match dialog style (color, borders) is there a way to change the button color or styles? 回答1: Note In a more recent question, this time regarding the new Dialog API bundled with JDK8u40 early releases, I came with a less hacky and more clean solution, using stylesheets instead of inline styles and lookups. So I'm updating this question, as openjfx-dialogs is still the way to have

Action Buttons css style in JavaFX ControlFX dialog

时光毁灭记忆、已成空白 提交于 2019-12-29 08:01:29
问题 I've been using ControlsFX dialogs to show information, but the style of my application is not blue, and does not match dialog style (color, borders) is there a way to change the button color or styles? 回答1: Note In a more recent question, this time regarding the new Dialog API bundled with JDK8u40 early releases, I came with a less hacky and more clean solution, using stylesheets instead of inline styles and lookups. So I'm updating this question, as openjfx-dialogs is still the way to have

Notification in a JavaFX app

北城余情 提交于 2019-12-25 07:08:38
问题 I would like to add a notification to some actions in my JavaFX application. Such as a successful connection to a server, a disconnection to a server, etc ... I tried the NotificationPane from ControlsFX but I can't hide the bar after a short time delay. It seems that you can only hide it after an user interaction. If you know another library who does something similar or even better, I'm looking forward to it. Plus I would like to make my notifications look like that : so it doesn't take the