Read the api for the graphics class. There are all kinds of methods which you can use in the paintCompnent method to paint your custom JFrame.