package com.teamdev.jxmaps.demo;


import javax.swing.*;
import java.awt.*;

class AboutDialog extends JDialog{
    private static Component parentFrame;

    public AboutDialog() {
        AboutPanel panel = new AboutPanel();
        setModal(true);
        setResizable(false);
        setTitle("About JxMaps Demo");
        setSize(new Dimension(400,panel.getPreferredHeight() - 60));

        setLayout(new BorderLayout());
        add(panel);
    }

    public static void initHandler(Component frame) {
        parentFrame = frame;
        com.apple.eawt.Application.getApplication().setDockIconImage(Toolkit.getDefaultToolkit().getImage(SampleDescriptor.class.getResource("res/jxmaps32x32.png")));
        com.apple.eawt.Application.getApplication().setAboutHandler(new com.apple.eawt.AboutHandler() {
            @Override
            public void handleAbout(com.apple.eawt.AppEvent.AboutEvent aboutEvent) {
                AboutDialog dlg = new AboutDialog();
                dlg.setLocationRelativeTo(parentFrame);
                dlg.setVisible(true);
            }
        });

    }
}

@@ -1,8 +1,124 @@
+%0A/*%0A * Copyright (c) 2000-2016 TeamDev Ltd. All rights reserved.%0A * Use is subject to Apache 2.0 license terms.%0A */%0A
 package 
@@ -143,17 +143,16 @@
 .demo;%0A%0A
-%0A
 import j

Add copyright header