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.
有没有办法通过代码检查按钮是否启用设置为真或假?
布尔启用 = 按钮。启用()
以防万一您不知道 Sun 已将其 Java 类的所有文档放到网上。这应该是您对 Java SDK 类的问题的第一站。有关JButton的文档。显然也欢迎您在这里提问:)