JButton在Java中摇摆

Har*_*ish 1 java swing jbutton

有没有办法检查是否通过代码将按钮启用设置为true或false?

obj*_*cts 5

boolean enabled =按钮.的IsEnabled()