Move Line in java using swing components

Move Line in Java using Swing Components, JPanel, JFrame and Graphics

Move Line in java using swing components, JPanel,JFrame and Graphics. This is a Java small program that I created on jGRASP but it is possible to open it on Notepad++, notepad, jCreator and other softwares for java. Move Line either left or right by clicking on the respective button or direction key on keyboard. The display consists of two JPanels in a JFrame, arranged using BorderLayout. The top