package com.github.aureliano.edocs.app;

import javax.swing.SwingUtilities;

import com.github.aureliano.edocs.app.gui.AppFrame;

public class EdocsApp {

	private AppFrame frame;
	
	public EdocsApp() {
		this.frame = new AppFrame();
	}
	
	public AppFrame getFrame() {
		return this.frame;
	}
	
	public static void main(String[] args) {
		final EdocsApp application = new EdocsApp();
		
		SwingUtilities.invokeLater(new Runnable() {
			
			@Override
			public void run() {
				application.getFrame().showFrame();
			}
		});
	}
}
@@ -161,137 +161,59 @@
 ate 
-AppFrame frame;%0A%09%0A%09public EdocsApp() %7B%0A%09%09this.frame = new AppFrame();%0A%09%7D%0A%09%0A%09public AppFrame getFrame() %7B%0A%09%09return this.
+static EdocsApp instance;%0A%09private AppFrame 
 frame;%0A
-%09%7D%0A
 %09%0A%09p
@@ -433,16 +433,16 @@
 );%0A%09%09%09%7D%0A
-
 %09%09%7D);%0A%09%7D
@@ -442,9 +442,246 @@
 %09%7D);%0A%09%7D%0A
+%09%0A%09public static EdocsApp instance() %7B%0A%09%09if (instance == null) %7B%0A%09%09%09instance = new EdocsApp();%0A%09%09%7D%0A%09%09%0A%09%09return instance;%0A%09%7D%0A%09%0A%09public EdocsApp() %7B%0A%09%09this.frame = new AppFrame();%0A%09%7D%0A%09%0A%09public AppFrame getFrame() %7B%0A%09%09return this.frame;%0A%09%7D%0A
 %7D

Make main frame visible by other components.