|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| package jtr.ui.swing; |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| |
|
19 |
| |
|
20 |
| public class AboutFrame extends javax.swing.JFrame { |
|
21 |
| |
|
22 |
| |
|
23 |
2
| public AboutFrame() {
|
|
24 |
2
| initComponents();
|
|
25 |
2
| this.setIconImage(IconImageProvider.getIcon());
|
|
26 |
2
| this.setResizable(false);
|
|
27 |
| } |
|
28 |
| |
|
29 |
| |
|
30 |
| |
|
31 |
| |
|
32 |
| |
|
33 |
| |
|
34 |
| |
|
35 |
2
| private void initComponents() {
|
|
36 |
2
| titleLabel = new javax.swing.JLabel();
|
|
37 |
2
| subTitleLabel = new javax.swing.JLabel();
|
|
38 |
2
| disclaimer1Label = new javax.swing.JLabel();
|
|
39 |
2
| disclaimer2Label = new javax.swing.JLabel();
|
|
40 |
2
| disclaimer3Label = new javax.swing.JLabel();
|
|
41 |
2
| disclaimer4Label = new javax.swing.JLabel();
|
|
42 |
2
| disclaimer5Label = new javax.swing.JLabel();
|
|
43 |
2
| urlLabel = new javax.swing.JLabel();
|
|
44 |
2
| separator = new javax.swing.JSeparator();
|
|
45 |
| |
|
46 |
2
| setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
|
|
47 |
2
| setTitle("JTR 4.0 Info");
|
|
48 |
2
| setFocusCycleRoot(false);
|
|
49 |
2
| setName("abautFrame");
|
|
50 |
2
| setResizable(false);
|
|
51 |
2
| titleLabel.setFont(new java.awt.Font("Lucida Grande", 1, 28));
|
|
52 |
2
| titleLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
|
53 |
2
| titleLabel.setText("JTR 4.0");
|
|
54 |
| |
|
55 |
2
| subTitleLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
|
56 |
2
| subTitleLabel.setText("Distributed testing made easy");
|
|
57 |
| |
|
58 |
2
| disclaimer1Label.setFont(new java.awt.Font("Lucida Grande", 0, 10));
|
|
59 |
2
| disclaimer1Label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
|
60 |
2
| disclaimer1Label.setText(" JTRunner is free software. You can redistribute it and");
|
|
61 |
2
| disclaimer1Label.setAutoscrolls(true);
|
|
62 |
2
| disclaimer1Label.setEnabled(false);
|
|
63 |
2
| disclaimer1Label.setFocusable(false);
|
|
64 |
2
| disclaimer1Label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
|
|
65 |
| |
|
66 |
2
| disclaimer2Label.setFont(new java.awt.Font("Lucida Grande", 0, 10));
|
|
67 |
2
| disclaimer2Label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
|
68 |
2
| disclaimer2Label.setText("or modify it under the terms of the");
|
|
69 |
2
| disclaimer2Label.setEnabled(false);
|
|
70 |
2
| disclaimer2Label.setFocusable(false);
|
|
71 |
2
| disclaimer2Label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
|
|
72 |
| |
|
73 |
2
| disclaimer3Label.setFont(new java.awt.Font("Lucida Grande", 0, 10));
|
|
74 |
2
| disclaimer3Label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
|
75 |
2
| disclaimer3Label.setText("GNU General Public License");
|
|
76 |
2
| disclaimer3Label.setEnabled(false);
|
|
77 |
| |
|
78 |
2
| disclaimer4Label.setFont(new java.awt.Font("Lucida Grande", 0, 10));
|
|
79 |
2
| disclaimer4Label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
|
80 |
2
| disclaimer4Label.setText("as published by the Free Software Foundation");
|
|
81 |
2
| disclaimer4Label.setEnabled(false);
|
|
82 |
| |
|
83 |
2
| disclaimer5Label.setFont(new java.awt.Font("Lucida Grande", 0, 10));
|
|
84 |
2
| disclaimer5Label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
|
85 |
2
| disclaimer5Label.setText("either version 2, or (at your option) any later version");
|
|
86 |
2
| disclaimer5Label.setEnabled(false);
|
|
87 |
| |
|
88 |
2
| urlLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
|
89 |
2
| urlLabel.setText("http://jtrunner.sourceforge.net");
|
|
90 |
2
| urlLabel.setEnabled(false);
|
|
91 |
| |
|
92 |
2
| separator.setEnabled(false);
|
|
93 |
| |
|
94 |
2
| org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
|
|
95 |
2
| getContentPane().setLayout(layout);
|
|
96 |
2
| layout.setHorizontalGroup(
|
|
97 |
| layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
|
98 |
| .add(layout.createSequentialGroup() |
|
99 |
| .addContainerGap() |
|
100 |
| .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
|
101 |
| .add(layout.createSequentialGroup() |
|
102 |
| .add(disclaimer1Label, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE) |
|
103 |
| .addContainerGap()) |
|
104 |
| .add(layout.createSequentialGroup() |
|
105 |
| .add(disclaimer2Label, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE) |
|
106 |
| .addContainerGap()) |
|
107 |
| .add(layout.createSequentialGroup() |
|
108 |
| .add(disclaimer3Label, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE) |
|
109 |
| .addContainerGap()) |
|
110 |
| .add(layout.createSequentialGroup() |
|
111 |
| .add(disclaimer4Label, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE) |
|
112 |
| .addContainerGap()) |
|
113 |
| .add(layout.createSequentialGroup() |
|
114 |
| .add(disclaimer5Label, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE) |
|
115 |
| .addContainerGap()) |
|
116 |
| .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() |
|
117 |
| .add(titleLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 183, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) |
|
118 |
| .add(107, 107, 107)))) |
|
119 |
| .add(layout.createSequentialGroup() |
|
120 |
| .add(54, 54, 54) |
|
121 |
| .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
|
122 |
| .add(org.jdesktop.layout.GroupLayout.TRAILING, urlLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE) |
|
123 |
| .add(org.jdesktop.layout.GroupLayout.TRAILING, subTitleLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)) |
|
124 |
| .add(53, 53, 53)) |
|
125 |
| .add(layout.createSequentialGroup() |
|
126 |
| .addContainerGap() |
|
127 |
| .add(separator, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) |
|
128 |
| .addContainerGap()) |
|
129 |
| ); |
|
130 |
2
| layout.setVerticalGroup(
|
|
131 |
| layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
|
132 |
| .add(layout.createSequentialGroup() |
|
133 |
| .add(23, 23, 23) |
|
134 |
| .add(titleLabel) |
|
135 |
| .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
|
136 |
| .add(subTitleLabel) |
|
137 |
| .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
|
138 |
| .add(urlLabel) |
|
139 |
| .add(42, 42, 42) |
|
140 |
| .add(separator, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) |
|
141 |
| .add(20, 20, 20) |
|
142 |
| .add(disclaimer1Label) |
|
143 |
| .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
|
144 |
| .add(disclaimer2Label) |
|
145 |
| .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
|
146 |
| .add(disclaimer3Label) |
|
147 |
| .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
|
148 |
| .add(disclaimer4Label) |
|
149 |
| .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) |
|
150 |
| .add(disclaimer5Label) |
|
151 |
| .addContainerGap(34, Short.MAX_VALUE)) |
|
152 |
| ); |
|
153 |
2
| pack();
|
|
154 |
| } |
|
155 |
| |
|
156 |
| |
|
157 |
| private javax.swing.JLabel disclaimer1Label; |
|
158 |
| private javax.swing.JLabel disclaimer2Label; |
|
159 |
| private javax.swing.JLabel disclaimer3Label; |
|
160 |
| private javax.swing.JLabel disclaimer4Label; |
|
161 |
| private javax.swing.JLabel disclaimer5Label; |
|
162 |
| private javax.swing.JSeparator separator; |
|
163 |
| private javax.swing.JLabel subTitleLabel; |
|
164 |
| private javax.swing.JLabel titleLabel; |
|
165 |
| private javax.swing.JLabel urlLabel; |
|
166 |
| |
|
167 |
| |
|
168 |
| } |