I'm creating a java interface with swing. The theme is the following, I have 9 Jbuttons and a textfield, every time I press a button, a different text appears, something simple. Well you see, I can not find the way to do that every time I press a new button, the previous button that I pressed is disabled definitively, so on. Does someone give me a hand? Thanks in advance ^^