4 import java.awt.event.ActionEvent;
5 import java.awt.event.ActionListener;
9 import saccubus.util.PopupRightClick;
13 *
\83^
\83C
\83g
\83\8b:
\82³
\82«
\82ã
\82Î
\82·
17 *
\90à
\96¾:
\83j
\83R
\83j
\83R
\93®
\89æ
\82Ì
\93®
\89æ
\82ð
\83R
\83\81\83\93\83g
\82Â
\82«
\82Å
\95Û
\91¶
21 *
\92\98\8dì
\8c : Copyright (c) 2007 PSI
28 * @author
\96¢
\93ü
\97Í
31 public class MainFrame_AboutBox extends JDialog implements ActionListener {
35 private static final long serialVersionUID = -4256413309312729840L;
37 String version = "ver1.22r(2008/04/27)";
40 "
\82³
\82«
\82ã
\82Î
\82·\n"+
42 "Copyright (C) 2008 Saccubus Developers Team\n"+
44 "
\83j
\83R
\83j
\83R
\93®
\89æ
\82Ì
\93®
\89æ
\82ð
\83R
\83\81\83\93\83g
\82Â
\82«
\82Å
\95Û
\91¶";
46 JPanel panel1 = new JPanel();
48 JPanel panel2 = new JPanel();
50 JPanel insetsPanel1 = new JPanel();
52 JPanel insetsPanel2 = new JPanel();
54 JPanel insetsPanel3 = new JPanel();
56 JButton button1 = new JButton();
58 JLabel imageLabel = new JLabel();
60 JTextArea product_field = new JTextArea(product);
62 ImageIcon image1 = new ImageIcon();
64 BorderLayout borderLayout1 = new BorderLayout();
66 BorderLayout borderLayout2 = new BorderLayout();
68 FlowLayout flowLayout1 = new FlowLayout();
70 GridLayout gridLayout1 = new GridLayout();
72 public MainFrame_AboutBox(Frame parent) {
75 setDefaultCloseOperation(DISPOSE_ON_CLOSE);
77 } catch (Exception exception) {
78 exception.printStackTrace();
82 public MainFrame_AboutBox() {
87 *
\83R
\83\93\83|
\81[
\83l
\83\93\83g
\82Ì
\8f\89\8aú
\89»
\81B
89 * @throws java.lang.Exception
91 private void jbInit() throws Exception {
92 image1 = new ImageIcon(saccubus.MainFrame.class.getResource("icon.png"));
93 imageLabel.setIcon(image1);
94 setTitle("
\83o
\81[
\83W
\83\87\83\93\8fî
\95ñ");
95 panel1.setLayout(borderLayout1);
96 panel2.setLayout(borderLayout2);
97 insetsPanel1.setLayout(flowLayout1);
98 insetsPanel2.setLayout(flowLayout1);
99 insetsPanel2.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
100 gridLayout1.setRows(1);
101 gridLayout1.setColumns(1);
102 insetsPanel3.setLayout(gridLayout1);
103 insetsPanel3.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
104 button1.setText("OK");
105 button1.addActionListener(this);
106 insetsPanel2.add(imageLabel, null);
107 panel2.add(insetsPanel2, BorderLayout.WEST);
108 getContentPane().add(panel1, null);
109 product_field.setForeground(insetsPanel3.getForeground());
110 product_field.setBackground(insetsPanel3.getBackground());
111 product_field.addMouseListener(new PopupRightClick(product_field));
112 product_field.setEditable(false);
113 insetsPanel3.add(product_field, null);
114 panel2.add(insetsPanel3, BorderLayout.CENTER);
115 insetsPanel1.add(button1, null);
116 panel1.add(insetsPanel1, BorderLayout.SOUTH);
117 panel1.add(panel2, BorderLayout.NORTH);
122 *
\83{
\83^
\83\93\83C
\83x
\83\93\83g
\82Å
\83_
\83C
\83A
\83\8d\83O
\82ð
\95Â
\82¶
\82é
127 public void actionPerformed(ActionEvent actionEvent) {
128 if (actionEvent.getSource() == button1) {