package gui;

import gui.window.listener.GraphyWindowListener;

import java.awt.BorderLayout;

import javax.swing.ImageIcon;
import javax.swing.JFrame;

public class MainWindow extends JFrame
{
  private static MainWindow instance = null;

  public static MainWindow get_instance()
  {
    if (instance == null) { instance = new MainWindow(); }
    return instance;
  }

  private MainWindow()
  {
    super("Graphy");
    this.setSize(1000, 600);
    this.setLocationRelativeTo(null);
    this.setJMenuBar(new MenuBar());
    this.add(new TopPanel(), BorderLayout.NORTH);
    this.add(new RightPanel(), BorderLayout.EAST);
    this.add(new BottomPanel(800, 600), BorderLayout.SOUTH);
    this.add(new LeftPanel(), BorderLayout.WEST);
    this.add(new CenterPanel(), BorderLayout.CENTER);
    this.setVisible(true);
    this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);

    ImageIcon img = new ImageIcon("images/Logo.png");
    this.setIconImage(img.getImage());

    addWindowListener(new GraphyWindowListener());

  }
}

@@ -111,44 +111,9 @@
 ing.
-ImageIcon;%0Aimport javax.swing.JFrame
+*
 ;%0A%0Ap
@@ -366,16 +366,233 @@
   super(
+);%0A%0A    try%0A    %7B%0A      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());%0A      SwingUtilities.updateComponentTreeUI(this);%0A    %7D%0A    catch (Exception e) %7B e.printStackTrace(); %7D%0A%0A    this.setTitle(
 %22Graphy%22

Use the system default LAF.