Skip to content

Instantly share code, notes, and snippets.

View nguthiru's full-sized avatar
💭
Bored

Edwin Ndiritu nguthiru

💭
Bored
  • WordandLearn
View GitHub Profile
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.geom.Ellipse2D;
public class SpaceAnimationMain {
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> {
JFrame frame = new JFrame("Space Animation");