I'm in the midst of my first independent Java project, and I have a limited knowledge of all the libraries at my disposal, but feel pretty comfortable with the language. This project requires a GUI interface with a JTextArea that displays instructions for user guidance on the left side, and a JPanel with some buttons on the right side. On my panel, I want to include a component with a simple drawing -- say, three rectangles of different sizes and different colors -- and add different actionListeners to each rectangle. How should I start implementing this? What kind of component can I add to my JPanel that will allow me to achieve this?
Any advice is greatly appreciated.