Results 1 to 2 of 2
- 05-18-2007, 10:09 PM #1
Member
- Join Date
- May 2007
- Posts
- 1
- Rep Power
- 0
- 05-18-2007, 11:01 PM #2levent Guest
Hi noisepoet,
Welcome to Java Forums. You are our 100th member ;)
There is a setEnabled(boolean value) method for JButtons. you should call this method of the buttons you want to disable.
For example for button named as myButton, you use the following code:
Java Code:myButton.setEnabled(false);
Similar Threads
-
TicTacToe
By Thomas Covington in forum New To JavaReplies: 1Last Post: 04-10-2008, 04:51 AM -
2D Array of JButtons
By stevemcc in forum AWT / SwingReplies: 1Last Post: 02-16-2008, 11:42 PM -
TicTacToe Game
By Ebtihal in forum New To JavaReplies: 0Last Post: 01-09-2008, 11:01 AM -
JButtons
By fgasimzade in forum SWT / JFaceReplies: 1Last Post: 12-25-2007, 05:39 AM -
TicTacToe
By Joe3161 in forum New To JavaReplies: 4Last Post: 11-25-2007, 06:47 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks