swing - How to grey out JButton in Java -


How do I gray in / out swing pocket? What method can I use? Also, how can I create it in Netbeans by default?

  button.Set enabled (false);   

The above should fix a button properly. I'm sure you have this document bookmarks or will be downloaded and read a bit about it

Edit

My impression is that you are using a GUI constructor in Netbeans, I would recommend reading on swing and learning the language instead of IDE (There may be times when you have Netbeans Compared to using a different IDE The Hta and how GUIs, it does not have a clue)

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -