I have created this game for just learning purpose during my MCA I have used Netbean IDE.
Most important thing is that you have to change below path based on you plateform
I have used mac os so my path is like below
b = new ImageIcon("/Users/Amit/Desktop/My Netbean Projects/battlefield/src/battlefield/a.png");
Screenshots
Above three are enemy tank, and below is your tank, you can play with up down right and left aerrow