I all.I have started developing a ball breaker game using swings and i am posting the code for the same.
I am not able to move the user controlled base used for avoiding the ball from falling(controlling is to be done using the arrow keys i.e
left and right)
Please check if there is any error in calling the "paint" method and please suggest any changes if to be done.
Thanks in advance.
THE CODE :
-----------------------------------------------------------------------------------------------------
OuterFrame.java
-------------------------------------------------------------------------------
Wall.java
------------------------------------------------------------------------------------------
BaseBoard.java
The output which i am getting is just the ball and the baseboard painted inside the frame but there is no movement
when ever i press the keyboard arrow keys(left arrow key and right arrow key).