com.sprhibrad.generator.ShrgFrame Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sprhibrad-generator Show documentation
Show all versions of sprhibrad-generator Show documentation
The generator of the SprHibRAD suite - Stefano Pizzocaro - 62
The newest version!
/*
Copyright (c) 2017, Stefano Pizzocaro. All rights reserved. Use is subject to license terms.
This file is part of SprHibRAD 1.0.
SprHibRAD 1.0 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SprHibRAD 1.0 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with SprHibRAD 1.0. If not, see .
*/
package com.sprhibrad.generator;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class ShrgFrame extends JFrame {
private JPanel contentPane;
final public String version="1.0.3";
SprHibRadGen mainWindow;
/**
* Create the frame.
*/
public ShrgFrame(SprHibRadGen mainWindow) {
super();
this.mainWindow = mainWindow;
this.setTitle("SprHibRAD Generator v. " + version + " .");
this.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
mainWindow.onClosing();
}
});
}
}