This Java Swing project creates a bouncing logo animation inside a JFrame window. The animation uses a JPanel to move an image (dvd.png) dynamically, changing its direction when it hits the window's boundaries.
- β Smooth bouncing animation inside a JFrame.
- β
Uses Java Swing components (
JFrame,JPanel,JLabel). - β Runs in a separate thread for real-time movement.
- β Collision detection to reverse direction on window edges.
BouncingLogo
βββ π BouncingFrame.java # Main class that creates JFrame
βββ π LogoBouncePanel.java # JPanel with animation logic
βββ πΌοΈ dvd.png # Image used for the bouncing logo
- Clone the repository
git clone https://github.com/GehadAshry/Bouncing-Logo.git
- Open the project in any Java IDE (Eclipse, IntelliJ, NetBeans, or VS Code).
- Ensure dvd.png is in the correct directory (same folder as .java files or specify the correct path).
- Compile and run the project