0

is possible increase the size of the buttons in dialog. enter image description here

I need to be bigger.

Thanks

Marco R
  • 306
  • 2
  • 11

1 Answers1

0

You can achieve it by accessing the ButtonBar of the dialog you created and then customize the buttons in it.

First get the ButtonBar instance:

ButtonBar buttonBar = (ButtonBar)yourDialogInstance.getDialogPane().lookup(".button-bar");

Then get all buttons applied to the dialog pane and set the style for them via a string containing css. For example:

buttonBar.getButtons().forEach(b->b.setStyle("-fx-font-size: 18px;"));

A lot more detail: Customizing Dialogs

Community
  • 1
  • 1
grahan
  • 2,148
  • 5
  • 29
  • 43
  • Thanks grahan, but so sending buttons Actions.OK, to this Actions is possible change style?? thanks. – Marco R Sep 28 '15 at 16:26
  • No Problem :) I am sorry, but i do not understand your new question complety. You want to change the style of these buttons with actions like clicking on other buttons of your program? – grahan Sep 28 '15 at 19:18