Rectangle has an intersects() method that you can use.
Type: Posts; User: GregBrannon
Rectangle has an intersects() method that you can use.
The reason you're not seeing 2 of anything added to a JFrame is because the default layout manager for a JFrame is BorderLayout, and components added to BorderLayout are added to BorderLayout.CENTER...