• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Disable all buttons when one button is in action using JavaFx

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to disable all other buttons when one button(suppose button A) is set on action. And once that button A is done with its action, then all buttons should be enabled.



What this is doing, once button1 is done with its action, then button2 is being disabled.

Could anyone please help me with this?

Thanks
 
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ramesh Kjes wrote:I want to disable all other buttons when one button . . . is set on action. And once that button A is done . . . all buttons should be enabled. . . .

Why? Are you ever going to be able to click two buttons simultaneously? Won't the action complete before the user has a chance to click the other button?

Moving to our FX forum.
 
Ramesh Kjes
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Idea was to force user to click buttons in sequential orders. I have done that with the help of  "buttonName.setDisable" function.
reply
    Bookmark Topic Watch Topic
  • New Topic