beeseven
Jul 23 2005, 05:13 PM
| | I'm making minesweeper so I have this big matrix of JButtons. I want to have it so that when you click the button is disabled and the ImageIcon is changed to whatever it should be, but when you disable a button it becomes grayscale so the pictures are hard to see/don't look like what they're supposed to.
Is there a way to disable the button and keep the images colorful, or does anyone have any other ideas?
(I've thought about just removing the ActionListener but that might get confusing to have blank buttons that do nothing. Maybe only disabling it if there's not a number or mine, but that might require a lot more code) |
Reply
Similar Topics
Keywords :
disable jbutton icon colors- Help: Disable All Buttons Inside A Div Element
- How do you write a function to disable all buttons given a div id (8)
- Double Dropdown
- Disable the second until first is selected (2)
Allright so heres the deal.. Im trying to make a 3 teir dropdown Sort, Order, User both will be
populated by a database so dont worry about the content inside of them they will be the same stuff
in both but in a diffrent order by using php (ajax i guess is what it is since its javascript with
php lol) CODE <html> <head> <script
src="selectuser.js"></script> </head> <body> <?php
$c=mysql_connect ("localhost", "database", "password") or die
('I cannot conne...
How Do You Disable Right Clicking?
- (5)
How do you disable right clicking? I have no javascript knowledge, so can someone give me the full
code? Thanks....
Looking for disable, jbutton, make, icon, colors