Fireworks in swing

Want to show firework in swing panel, here it is a way to show something like above picture in java swing. It is done by extending JPanel class and overriding its paintComponent method. To know what it exactly looks like, give it a try and run once. Let me know your feedback. 🙂