Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有多个按钮的 JavaFx 应用程序可供单击。在应用程序的某些时候,单击其中一些是没有意义的。
控制何时应该允许某个动作(即按下按钮)以及何时不允许的最佳方法是什么?