Results 1 to 3 of 3
Thread: GUI for BattleShip program
- 12-11-2012, 04:27 PM #1
Member
- Join Date
- Dec 2012
- Posts
- 1
- Rep Power
- 0
GUI for BattleShip program
Hi I am using Java via NetBeans and was looking for some help in writing a GUI for a battle ship program.
I currently have a table of grey square buttons 15X15 and an actionlistener that goes off when the user clicks a button.
I am wondering how I can make the button turn and stay black if a miss occurs and red if a hit.
Any Ideas?
- 12-11-2012, 04:40 PM #2
Re: GUI for BattleShip program
Can't you just set the background color?
How to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
-
Re: GUI for BattleShip program
Or use ImageIcons to set the button's icon.
Similar Threads
-
Battleship program
By buckbuck2 in forum New To JavaReplies: 2Last Post: 11-28-2012, 03:57 AM -
Battleship Program
By zizou001 in forum New To JavaReplies: 6Last Post: 11-15-2012, 09:21 AM -
Java Battleship Program
By zizou001 in forum New To JavaReplies: 6Last Post: 11-15-2012, 09:21 AM -
Help with Revised Battleship program
By Lucid15 in forum New To JavaReplies: 1Last Post: 04-19-2012, 08:18 AM -
Battleship 2D Array Program
By AaronHopkins in forum New To JavaReplies: 6Last Post: 04-05-2011, 05:38 AM
Bookmarks