well I got it to delete things that are right-clicked so I'm on new problems now.

Is there a way to make a specific action not apply to a specific area of a JFrame?

I described how my program draws rectangles, and my JFrame is 600 long and 500 tall. Is there a way I can make it so it restricts the drawings to the 500 on the right, ( so if the user clicks a spot somewhere within the first 100 to the left on the JFrame, it does not draw a rectangle)

Yes. Don't draw directly in the JFrame and don't have the mouselistener attached directly to the JFrame. Better to do this interacting in a JPanel and then layout the JPanel exactly where you want it in the JFrame using an effective mix of layout managers.