📄 about.java
字号:
/* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: About.java * * Copyright (c) 2003 Sun Microsystems and Static Free Software * * Electric(tm) is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Electric(tm) 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Electric(tm); see the file COPYING. If not, write to * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, Mass 02111-1307, USA. */package com.sun.electric.tool.user.dialogs;import com.sun.electric.database.text.Version;import com.sun.electric.tool.user.Resources;import java.awt.Frame;import javax.swing.DefaultListModel;import javax.swing.JButton;import javax.swing.JComboBox;import javax.swing.JLabel;import javax.swing.JList;import javax.swing.JPanel;import javax.swing.JScrollPane;import javax.swing.ListSelectionModel;/** * Class to handle the "About" dialog. */public class About extends EDialog{ private JList list; private DefaultListModel model; static private CastOfThousands [] showingCast = null; private static class CastOfThousands { private String name; private String work; private CastOfThousands(String name, String work) { this.name = name; this.work = work; } static CastOfThousands [] javaTeam = new CastOfThousands[] { new CastOfThousands("Jake Baker", "Thin Film technology"), new CastOfThousands("Robert Bosnyak", "Pads library"), new CastOfThousands("Prashanth Busa", "Thin Film technology"), new CastOfThousands("Stephen Friedman", "NCC"), new CastOfThousands("Jonathan Gainsley", "User interface, Simulation, Logical effort"), new CastOfThousands("Gilda Garret\u00F3n", "DRC, ERC, 3D, technologies, fill generation"), new CastOfThousands("David Harris", "ROM generator, Color printing"), new CastOfThousands("Jason Imada", "ROM generator"), new CastOfThousands("Russell Kao", "NCC, generators, Hierarchy enumeration, Regressions"), new CastOfThousands("Frank Lee", "ROM generator"), new CastOfThousands("Ivan Minevskiy", "NCC display"), new CastOfThousands("Dmitry Nadezhin", "Database, Networks, Libraries, Simulation, Optimizations"), new CastOfThousands("Bob Reese", "DEF input"), new CastOfThousands("Ivan Sutherland", "Inspiration, NCC"), new CastOfThousands("Thomas Valine", "GDS output"), new CastOfThousands("Brian van Essen", "Icon generation"), new CastOfThousands("Andrew West", "Technology Creation Wizard"), }; static CastOfThousands [] theCast = new CastOfThousands[] { new CastOfThousands("Philip Attfield", "Box merging"), new CastOfThousands("Brett Bissinger", "Node extraction"), new CastOfThousands("Ron Bolton", "Mathematical help"), new CastOfThousands("Robert Bosnyak", "Pads library"), new CastOfThousands("Mark Brinsmead", "Mathematical help"), new CastOfThousands("Stefano Concina", "Polygon clipping"), new CastOfThousands("Jonathan Gainsley", "User interface, Simulation, Logical effort"), new CastOfThousands("Peter Gallant", "ALS simulator"), new CastOfThousands("R. Brian Gardiner", "Electric lifeline"), new CastOfThousands("Gilda Garret\u00F3n", "DRC, ERC, 3D, technologies"), new CastOfThousands("T. J. Goodman", "Texsim output"), new CastOfThousands("Gerrit Groenewold", "SPICE parts"), new CastOfThousands("David Groulx", "Node extraction"), new CastOfThousands("D. Guptill", "X-window help"), new CastOfThousands("David Harris", "ROM generator, Color printing"), new CastOfThousands("Robert Hon", "CIF input parser"), new CastOfThousands("Jason Imada", "ROM generator"), new CastOfThousands("Sundaravarathan Iyengar", "nMOS PLA generator"), new CastOfThousands("Allan Jost", "VHDL compiler help, X-window help"), new CastOfThousands("Russell Kao", "NCC, generators, Hierarchy enumeration, Regressions"), new CastOfThousands("Wallace Kroeker", "Digital filter technology, CMOS PLA generator"), new CastOfThousands("Andrew Kostiuk", "VHDL compiler, Silicon Compiler"), new CastOfThousands("Oliver Laumann", "ELK Lisp"), new CastOfThousands("Glen Lawson", "Maze routing, GDS input, EDIF I/O"), new CastOfThousands("Frank Lee", "ROM generator"), new CastOfThousands("Neil Levine", "PADS output"), new CastOfThousands("David Lewis", "Flat DRC checking"), new CastOfThousands("Erwin Liu", "Schematic and Round CMOS technology help"), new CastOfThousands("Dick Lyon", "MOSIS and Round CMOS technology help"), new CastOfThousands("John Mohammed", "Mathematical help"), new CastOfThousands("Mark Moraes", "Hierarchical DRC, X-window help"), new CastOfThousands("Dmitry Nadezhin", "Database, Networks, Libraries, Simulation, Optimizations"), new CastOfThousands("Sid Penstone", "SPICE, SILOS, GDS, Box merging, technologies"), new CastOfThousands("J. P. Polonovski", "Memory allocation help"), new CastOfThousands("Kevin Ryan", "X-window help"), new CastOfThousands("Nora Ryan", "Compaction, technology conversion"), new CastOfThousands("Miguel Saro", "French translation"), new CastOfThousands("Brent Serbin", "ALS simulator"), new CastOfThousands("Ivan Sutherland", "Inspiration, NCC"), new CastOfThousands("Lyndon Swab", "HPGL output, SPICE output help, technologies"), new CastOfThousands("Brian W. Thomson", "Mimic stitcher, RSIM interface"), new CastOfThousands("Burnie West", "Bipolar technology, EDIF output help"), new CastOfThousands("Telle Whitney", "River router"), new CastOfThousands("Rob Winstanley", "CIF input, RNL output"), new CastOfThousands("Russell Wright", "SDF input, miscellaneous help"), new CastOfThousands("David J. Yurach", "VHDL help") }; } /** Creates the About dialog. */ public About(Frame parent) { super(parent, true); initComponents(); getRootPane().setDefaultButton(ok); version.setText(Version.getVersionInformation()); // Just in case we modify information in Version.. jLabel3.setText(Version.getAuthorInformation()); jLabel9.setText(Version.getWarrantyInformation()); jLabel8.setText(Version.getCopyrightInformation()); // setup the region popup jComboBox1.addItem("N.America"); jComboBox1.addItem("Australia,NZ"); jComboBox1.addItem("Denmark"); jComboBox1.addItem("Europe"); jComboBox1.addItem("India"); jComboBox1.addItem("Italy"); jComboBox1.addItem("Israel"); jComboBox1.addItem("Japan"); jComboBox1.addItem("Russia"); jComboBox1.addItem("Switzerland"); jComboBox1.addItem("UK,Ireland"); // make an empty list model = new DefaultListModel(); list = new JList(model); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); Center.setViewportView(list); list.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { listClick(evt); } }); finishInitialization(); } protected void escapePressed() { ok(null); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ private void initComponents()//GEN-BEGIN:initComponents { java.awt.GridBagConstraints gridBagConstraints; Center = new javax.swing.JScrollPane(); Top = new javax.swing.JPanel(); TopRight = new javax.swing.JPanel(); theIcon = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox(); TopLeft = new javax.swing.JPanel(); jLabel4 = new javax.swing.JLabel(); version = new javax.swing.JLabel(); ok = new javax.swing.JButton(); jLabel3 = new javax.swing.JLabel(); castOfThousands = new javax.swing.JButton(); javaTeam = new javax.swing.JButton(); Bottom = new javax.swing.JPanel(); jLabel9 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); copyingDetails = new javax.swing.JButton(); jLabel11 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); getContentPane().setLayout(new java.awt.BorderLayout(0, 10)); setTitle("About Electric"); setName(""); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { AboutWindowClosing(evt); } }); Center.setMinimumSize(new java.awt.Dimension(100, 50)); Center.setPreferredSize(new java.awt.Dimension(300, 200)); getContentPane().add(Center, java.awt.BorderLayout.CENTER); Top.setLayout(new java.awt.BorderLayout(10, 0)); TopRight.setLayout(new java.awt.GridBagLayout()); theIcon.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); theIcon.setMaximumSize(new java.awt.Dimension(64, 64)); theIcon.setMinimumSize(new java.awt.Dimension(64, 64)); theIcon.setPreferredSize(new java.awt.Dimension(64, 64)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); TopRight.add(theIcon, gridBagConstraints); jComboBox1.setMinimumSize(new java.awt.Dimension(100, 25)); jComboBox1.setName(""); jComboBox1.setPreferredSize(new java.awt.Dimension(100, 25)); jComboBox1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { regionChanged(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); TopRight.add(jComboBox1, gridBagConstraints); Top.add(TopRight, java.awt.BorderLayout.CENTER); TopLeft.setLayout(new java.awt.GridBagLayout()); jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); jLabel4.setText("The Electric VLSI Design System"); jLabel4.setVerticalAlignment(javax.swing.SwingConstants.TOP); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); TopLeft.add(jLabel4, gridBagConstraints); version.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); version.setText("Version 7.01a"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); TopLeft.add(version, gridBagConstraints); ok.setText("OK"); ok.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ok(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -