@@ -0,0 +1,780 @@
+package ryanafzal.window;%0A%0Aimport javax.imageio.ImageIO;%0Aimport javax.swing.*;%0Aimport java.awt.event.*;%0Aimport java.awt.image.*;%0Aimport java.io.*;%0A%0A@SuppressWarnings(%22serial%22)%0Apublic class ApplicationWindow extends JFrame %7B%0A%09%0A%09public static boolean running = true;%0A%09public BufferedImage icon;%0A%09%0A%09public ApplicationWindow(String name,String filename) %7B%0A%09%09super(name);%0A%09%09init_images(filename);%0A%09%09init_close();%0A%09%7D%0A%09%0A%09public void init_close() %7B%0A%09%09addWindowListener(new WindowAdapter() %7B%0A%09%09%09public void windowClosing(WindowEvent e) %7B%0A%09%09%09%09running = false;%0A%09%09%09%7D%0A%09%09%7D);%0A%09%7D%0A%09%0A%09public void init_images(String file) %7B%0A%09%09try %7B%0A%09%09    icon = ImageIO.read(new File(file));%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09System.out.println(%22ApplicationWindow %22 + getName() + %22 failed to load image!%22);%0A%09%09%7D%0A%09%7D%0A%09%0A%7D%0A

Create ApplicationWindow.java