Skip to content

GehadAshry/Bouncing-Logo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🎾 Bouncing Logo Animation (Java Swing)

πŸ“Œ Project Overview

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.

πŸš€ Features

  • βœ… 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.

πŸ“‚ Project Structure

BouncingLogo
β”œβ”€β”€ πŸ“„ BouncingFrame.java # Main class that creates JFrame
β”œβ”€β”€ πŸ“„ LogoBouncePanel.java # JPanel with animation logic
└── πŸ–ΌοΈ dvd.png # Image used for the bouncing logo

πŸ› οΈ How to Run

  1. Clone the repository
    git clone https://github.com/GehadAshry/Bouncing-Logo.git
  2. Open the project in any Java IDE (Eclipse, IntelliJ, NetBeans, or VS Code).
  3. Ensure dvd.png is in the correct directory (same folder as .java files or specify the correct path).
  4. Compile and run the project
23-58-05.mp4

About

A java based bouncing logo project resemble the one that where in "the office"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages