diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-06-29 18:34:21 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-06-29 18:34:21 +0000 |
commit | c878647e62ec4efe210ded6e00bbcf8c72bd1eb6 (patch) | |
tree | 8b252d74519ea6e3b441cff6d27b92aec87d6af0 /java/src/IceGridGUI/LicenseDialog.java | |
parent | Removed GPL_BUILD; readline is no longer used by default on Linux (diff) | |
download | ice-c878647e62ec4efe210ded6e00bbcf8c72bd1eb6.tar.bz2 ice-c878647e62ec4efe210ded6e00bbcf8c72bd1eb6.tar.xz ice-c878647e62ec4efe210ded6e00bbcf8c72bd1eb6.zip |
Removed GPL notices from IceGrid GUI
Diffstat (limited to 'java/src/IceGridGUI/LicenseDialog.java')
-rwxr-xr-x | java/src/IceGridGUI/LicenseDialog.java | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/java/src/IceGridGUI/LicenseDialog.java b/java/src/IceGridGUI/LicenseDialog.java deleted file mode 100755 index 303a6cf9e07..00000000000 --- a/java/src/IceGridGUI/LicenseDialog.java +++ /dev/null @@ -1,82 +0,0 @@ -// **********************************************************************
-//
-// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-package IceGridGUI;
-
-import java.awt.BorderLayout;
-import java.awt.Dimension;
-import java.awt.Frame;
-
-import java.awt.event.ActionEvent;
-
-import javax.swing.JDialog;
-import javax.swing.JEditorPane;
-import javax.swing.JPanel;
-import javax.swing.JScrollPane;
-
-import javax.swing.text.html.HTMLDocument;
-import javax.swing.text.html.HTMLFrameHyperlinkEvent;
-
-import javax.swing.event.HyperlinkEvent;
-import javax.swing.event.HyperlinkListener;
-
-import com.jgoodies.forms.factories.Borders;
-
-//
-// Shows Ice license and warranty
-//
-public class LicenseDialog extends JDialog
-{
- public LicenseDialog(Frame parentFrame)
- {
- super(parentFrame, "License - IceGrid Admin", false);
- setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
-
- try
- {
- _pane = new JEditorPane(Utils.class.getResource("/license.html"));
- }
- catch(java.io.IOException e)
- {
- _pane = new JEditorPane();
- _pane.setText("Cannot find license.html");
- }
- _pane.setEditable(false);
-
- _pane.addHyperlinkListener(new HyperlinkListener()
- {
- public void hyperlinkUpdate(HyperlinkEvent e)
- {
- if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
- {
- _pane.scrollToReference(e.getURL().getRef());
- }
- }
- });
- Dimension prefSize = new Dimension(700, 500);
- _pane.setPreferredSize(prefSize);
-
- JScrollPane scrollPane = new JScrollPane(_pane);
- scrollPane.setBorder(Borders.DIALOG_BORDER);
- getContentPane().add(scrollPane, BorderLayout.CENTER);
- pack();
- }
-
-
- public void show(String ref)
- {
- setLocationRelativeTo(null);
- setVisible(true);
- _pane.scrollToReference(ref);
- }
-
- JEditorPane _pane;
-}
-
-
-
|