Fix a typo.
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdHeader.java
1 /** @file
2
3 The file is used to create, update FpdHeader of Fpd file
4
5 Copyright (c) 2006, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 package org.tianocore.frameworkwizard.platform.ui;
17
18 import java.awt.Dimension;
19 import java.awt.event.ActionEvent;
20 import java.awt.event.ComponentEvent;
21 import java.awt.event.FocusAdapter;
22 import java.awt.event.FocusEvent;
23
24 import javax.swing.JButton;
25 import javax.swing.JFrame;
26 import javax.swing.JLabel;
27 import javax.swing.JOptionPane;
28 import javax.swing.JPanel;
29 import javax.swing.JScrollPane;
30 import javax.swing.JTextArea;
31 import javax.swing.JTextField;
32
33
34
35 import org.tianocore.PlatformSurfaceAreaDocument;
36
37 import org.tianocore.frameworkwizard.common.DataValidation;
38 import org.tianocore.frameworkwizard.common.Tools;
39 import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;
40 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;
41 import org.tianocore.frameworkwizard.common.ui.StarLabel;
42
43 /**
44 The class is used to create, update FpdHeader of Fpd file
45 It extends IInternalFrame
46
47 @since PackageEditor 1.0
48
49 **/
50 public class FpdHeader extends IInternalFrame {
51
52 ///
53 /// Define class Serial Version UID
54 ///
55 private static final long serialVersionUID = -8152099582923006900L;
56
57 static JFrame frame;
58 //
59 //Define class members
60 //
61 private JPanel jContentPane = null; // @jve:decl-index=0:visual-constraint="10,53"
62
63 private JLabel jLabelBaseName = null;
64
65 private JTextField jTextFieldBaseName = null;
66
67 private JLabel jLabelGuid = null;
68
69 private JTextField jTextFieldGuid = null;
70
71 private JLabel jLabelVersion = null;
72
73 private JTextField jTextFieldVersion = null;
74
75 private JButton jButtonGenerateGuid = null;
76
77 private JLabel jLabelLicense = null;
78
79 private JTextArea jTextAreaLicense = null;
80
81 private JLabel jLabelCopyright = null;
82
83 private JLabel jLabelDescription = null;
84
85 private JTextArea jTextAreaDescription = null;
86
87 private JLabel jLabelSpecification = null;
88
89 private JTextField jTextFieldSpecification = null;
90
91 private JButton jButtonOk = null;
92
93 private JButton jButtonCancel = null;
94
95 private JScrollPane jScrollPaneLicense = null;
96
97 private JScrollPane jScrollPaneDescription = null;
98
99 private JLabel jLabelAbstract = null;
100
101 private JTextField jTextFieldAbstract = null;
102
103 private StarLabel jStarLabel1 = null;
104
105 private StarLabel jStarLabel2 = null;
106
107 private StarLabel jStarLabel3 = null;
108
109 private StarLabel jStarLabel4 = null;
110
111 private StarLabel jStarLabel5 = null;
112
113 private StarLabel jStarLabel6 = null;
114
115 private StarLabel jStarLabel7 = null;
116
117 private StarLabel jStarLabel8 = null;
118
119 private StarLabel jStarLabel9 = null;
120
121 private JTextField jTextFieldCopyright = null;
122
123 private JLabel jLabel = null;
124
125 private JTextField jTextFieldUrl = null;
126
127 private FpdFileContents ffc = null;
128
129 private OpeningPlatformType docConsole = null;
130
131 /**
132 This method initializes jTextFieldBaseName
133
134 @return javax.swing.JTextField jTextFieldBaseName
135
136 **/
137 private JTextField getJTextFieldBaseName() {
138 if (jTextFieldBaseName == null) {
139 jTextFieldBaseName = new JTextField();
140 jTextFieldBaseName.setBounds(new java.awt.Rectangle(160, 10, 320, 20));
141 jTextFieldBaseName.setPreferredSize(new java.awt.Dimension(320,20));
142 jTextFieldBaseName.addFocusListener(new FocusAdapter(){
143 public void focusLost(FocusEvent e) {
144 if (!DataValidation.isUiNameType(jTextFieldBaseName.getText())) {
145 JOptionPane.showMessageDialog(frame, "Package Name is NOT UiNameType.");
146 return;
147 }
148 if (jTextFieldBaseName.getText().equals(ffc.getFpdHdrPlatformName())) {
149 return;
150 }
151 docConsole.setSaved(false);
152 ffc.setFpdHdrPlatformName(jTextFieldBaseName.getText());
153 }
154 });
155 }
156 return jTextFieldBaseName;
157 }
158
159 /**
160 This method initializes jTextFieldGuid
161
162 @return javax.swing.JTextField jTextFieldGuid
163
164 **/
165 private JTextField getJTextFieldGuid() {
166 if (jTextFieldGuid == null) {
167 jTextFieldGuid = new JTextField();
168 jTextFieldGuid.setBounds(new java.awt.Rectangle(160, 35, 250, 20));
169 jTextFieldGuid.setPreferredSize(new java.awt.Dimension(250,20));
170 jTextFieldGuid.addFocusListener(new FocusAdapter(){
171 public void focusLost(FocusEvent e) {
172 if (!DataValidation.isGuid(jTextFieldGuid.getText())) {
173 JOptionPane.showMessageDialog(frame, "Guid is NOT GuidType.");
174 return;
175 }
176 if (jTextFieldGuid.getText().equals(ffc.getFpdHdrGuidValue())) {
177 return;
178 }
179 docConsole.setSaved(false);
180 ffc.setFpdHdrGuidValue(jTextFieldGuid.getText());
181 }
182 });
183 }
184 return jTextFieldGuid;
185 }
186
187 /**
188 This method initializes jTextFieldVersion
189
190 @return javax.swing.JTextField jTextFieldVersion
191
192 **/
193 private JTextField getJTextFieldVersion() {
194 if (jTextFieldVersion == null) {
195 jTextFieldVersion = new JTextField();
196 jTextFieldVersion.setBounds(new java.awt.Rectangle(160, 60, 320, 20));
197 jTextFieldVersion.setPreferredSize(new java.awt.Dimension(320,20));
198 jTextFieldVersion.addFocusListener(new FocusAdapter(){
199 public void focusLost(FocusEvent e) {
200 if (!DataValidation.isVersion(jTextFieldVersion.getText())) {
201 JOptionPane.showMessageDialog(frame, "Version is NOT version type.");
202 return;
203 }
204 if (jTextFieldVersion.getText().equals(ffc.getFpdHdrVer())) {
205 return;
206 }
207 docConsole.setSaved(false);
208 ffc.setFpdHdrVer(jTextFieldVersion.getText());
209 }
210 });
211 }
212 return jTextFieldVersion;
213 }
214
215 /**
216 This method initializes jButtonGenerateGuid
217
218 @return javax.swing.JButton jButtonGenerateGuid
219
220 **/
221 private JButton getJButtonGenerateGuid() {
222 if (jButtonGenerateGuid == null) {
223 jButtonGenerateGuid = new JButton();
224 jButtonGenerateGuid.setBounds(new java.awt.Rectangle(415, 35, 65, 20));
225 jButtonGenerateGuid.setText("GEN");
226 jButtonGenerateGuid.addActionListener(this);
227 }
228 return jButtonGenerateGuid;
229 }
230
231 /**
232 This method initializes jTextAreaLicense
233
234 @return javax.swing.JTextArea jTextAreaLicense
235
236 **/
237 private JTextArea getJTextAreaLicense() {
238 if (jTextAreaLicense == null) {
239 jTextAreaLicense = new JTextArea();
240 jTextAreaLicense.setText("");
241 jTextAreaLicense.setLineWrap(true);
242 jTextAreaLicense.addFocusListener(new FocusAdapter(){
243 public void focusLost(FocusEvent e) {
244 if (jTextAreaLicense.getText().length() == 0) {
245 JOptionPane.showMessageDialog(frame, "License contents could NOT be empty.");
246 return;
247 }
248 if (jTextAreaLicense.getText().equals(ffc.getFpdHdrLicense())) {
249 return;
250 }
251 docConsole.setSaved(false);
252 ffc.setFpdHdrLicense(jTextAreaLicense.getText());
253 }
254 });
255 }
256 return jTextAreaLicense;
257 }
258
259 /**
260 This method initializes jTextAreaDescription
261
262 @return javax.swing.JTextArea jTextAreaDescription
263
264 **/
265 private JTextArea getJTextAreaDescription() {
266 if (jTextAreaDescription == null) {
267 jTextAreaDescription = new JTextArea();
268 jTextAreaDescription.setLineWrap(true);
269 jTextAreaDescription.addFocusListener(new FocusAdapter(){
270 public void focusLost(FocusEvent e) {
271 if (jTextAreaDescription.getText().length() == 0) {
272 JOptionPane.showMessageDialog(frame, "Description contents could NOT be empty.");
273 return;
274 }
275 if (jTextAreaDescription.getText().equals(ffc.getFpdHdrDescription())) {
276 return;
277 }
278 docConsole.setSaved(false);
279 ffc.setFpdHdrDescription(jTextAreaDescription.getText());
280 }
281 });
282 }
283 return jTextAreaDescription;
284 }
285
286 /**
287 This method initializes jTextFieldSpecification
288
289 @return javax.swing.JTextField jTextFieldSpecification
290
291 **/
292 private JTextField getJTextFieldSpecification() {
293 if (jTextFieldSpecification == null) {
294 jTextFieldSpecification = new JTextField();
295 jTextFieldSpecification.setBounds(new java.awt.Rectangle(160,328,320,20));
296 jTextFieldSpecification.setEditable(false);
297 jTextFieldSpecification.setPreferredSize(new java.awt.Dimension(320,20));
298 jTextFieldSpecification.addFocusListener(new FocusAdapter(){
299 public void focusLost(FocusEvent e) {
300 ffc.setFpdHdrSpec(jTextFieldSpecification.getText());
301 }
302 });
303 }
304 return jTextFieldSpecification;
305 }
306
307 /**
308 This method initializes jButtonOk
309
310 @return javax.swing.JButton jButtonOk
311
312 **/
313 private JButton getJButtonOk() {
314 if (jButtonOk == null) {
315 jButtonOk = new JButton();
316 jButtonOk.setText("OK");
317 jButtonOk.setBounds(new java.awt.Rectangle(290,351,90,20));
318 jButtonOk.setVisible(false);
319 jButtonOk.addActionListener(this);
320 }
321 return jButtonOk;
322 }
323
324 /**
325 This method initializes jButtonCancel
326
327 @return javax.swing.JButton jButtonCancel
328
329 **/
330 private JButton getJButtonCancel() {
331 if (jButtonCancel == null) {
332 jButtonCancel = new JButton();
333 jButtonCancel.setText("Cancel");
334 jButtonCancel.setBounds(new java.awt.Rectangle(390,351,90,20));
335 jButtonCancel.setVisible(false);
336 jButtonCancel.addActionListener(this);
337 }
338 return jButtonCancel;
339 }
340
341 /**
342 This method initializes jScrollPaneLicense
343
344 @return javax.swing.JScrollPane jScrollPaneLicense
345
346 **/
347 private JScrollPane getJScrollPaneLicense() {
348 if (jScrollPaneLicense == null) {
349 jScrollPaneLicense = new JScrollPane();
350 jScrollPaneLicense.setBounds(new java.awt.Rectangle(160,107,320,80));
351 jScrollPaneLicense.setHorizontalScrollBarPolicy(javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
352 jScrollPaneLicense.setPreferredSize(new java.awt.Dimension(320,80));
353 jScrollPaneLicense.setViewportView(getJTextAreaLicense());
354 }
355 return jScrollPaneLicense;
356 }
357
358 /**
359 This method initializes jScrollPaneDescription
360
361 @return javax.swing.JScrollPane jScrollPaneDescription
362
363 **/
364 private JScrollPane getJScrollPaneDescription() {
365 if (jScrollPaneDescription == null) {
366 jScrollPaneDescription = new JScrollPane();
367 jScrollPaneDescription.setBounds(new java.awt.Rectangle(160,243,320,80));
368 jScrollPaneDescription.setHorizontalScrollBarPolicy(javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
369 jScrollPaneDescription.setViewportView(getJTextAreaDescription());
370 }
371 return jScrollPaneDescription;
372 }
373
374 /**
375 This method initializes jTextFieldAbstract
376
377 @return javax.swing.JTextField jTextFieldAbstract
378
379 **/
380 private JTextField getJTextFieldAbstract() {
381 if (jTextFieldAbstract == null) {
382 jTextFieldAbstract = new JTextField();
383 jTextFieldAbstract.setBounds(new java.awt.Rectangle(160,218,320,20));
384 jTextFieldAbstract.setPreferredSize(new java.awt.Dimension(320, 20));
385 jTextFieldAbstract.addFocusListener(new FocusAdapter(){
386 public void focusLost(FocusEvent e) {
387 if (!DataValidation.isAbstract(jTextFieldAbstract.getText())) {
388 JOptionPane.showMessageDialog(frame, "Abstract could NOT be empty.");
389 return;
390 }
391 if (jTextFieldAbstract.getText().equals(ffc.getFpdHdrAbs())) {
392 return;
393 }
394 docConsole.setSaved(false);
395 ffc.setFpdHdrAbs(jTextFieldAbstract.getText());
396 }
397 });
398 }
399 return jTextFieldAbstract;
400 }
401
402 /**
403 This method initializes jTextFieldCopyright
404
405 @return javax.swing.JTextField jTextFieldCopyright
406
407 **/
408 private JTextField getJTextFieldCopyright() {
409 if (jTextFieldCopyright == null) {
410 jTextFieldCopyright = new JTextField();
411 jTextFieldCopyright.setBounds(new java.awt.Rectangle(160,85,320,20));
412 jTextFieldCopyright.setPreferredSize(new java.awt.Dimension(320,20));
413 jTextFieldCopyright.addFocusListener(new FocusAdapter(){
414 public void focusLost(FocusEvent e) {
415 if (!DataValidation.isCopyright(jTextFieldCopyright.getText())) {
416 JOptionPane.showMessageDialog(frame, "Copyright contents could not be empty.");
417 return;
418 }
419 if (jTextFieldCopyright.getText().equals(ffc.getFpdHdrCopyright())) {
420 return;
421 }
422 docConsole.setSaved(false);
423 ffc.setFpdHdrCopyright(jTextFieldCopyright.getText());
424 }
425 });
426 }
427 return jTextFieldCopyright;
428 }
429
430 /**
431 * This method initializes jTextField
432 *
433 * @return javax.swing.JTextField
434 */
435 private JTextField getJTextFieldUrl() {
436 if (jTextFieldUrl == null) {
437 jTextFieldUrl = new JTextField();
438 jTextFieldUrl.setBounds(new java.awt.Rectangle(160,193,320,20));
439 jTextFieldUrl.setPreferredSize(new Dimension(320, 20));
440 jTextFieldUrl.addFocusListener(new FocusAdapter(){
441 public void focusLost(FocusEvent e){
442 if (jTextFieldUrl.getText().length() == 0 && ffc.getFpdHdrUrl() == null) {
443 return;
444 }
445 if (jTextFieldUrl.getText().equals(ffc.getFpdHdrUrl())) {
446 return;
447 }
448 ffc.setFpdHdrLicense(jTextAreaLicense.getText());
449 ffc.setFpdHdrUrl(jTextFieldUrl.getText());
450 docConsole.setSaved(false);
451 }
452 });
453 }
454 return jTextFieldUrl;
455 }
456
457 public static void main(String[] args) {
458 new FpdHeader().setVisible(true);
459 }
460
461 /**
462 This is the default constructor
463
464 **/
465 public FpdHeader() {
466 super();
467 init();
468 this.setVisible(true);
469 }
470
471 /**
472 This is the override edit constructor
473
474 @param inFpdHeader The input data of FpdHeaderDocument.FpdHeader
475
476 **/
477 public FpdHeader(PlatformSurfaceAreaDocument.PlatformSurfaceArea inFpd) {
478 this();
479 ffc = new FpdFileContents(inFpd);
480 init(ffc);
481
482 }
483
484 public FpdHeader(OpeningPlatformType opt) {
485 this(opt.getXmlFpd());
486 docConsole = opt;
487 }
488
489 /**
490 This method initializes this
491
492 **/
493 private void init() {
494 //this.setSize(500, 515);
495 this.setContentPane(getJContentPane());
496 this.setTitle("Package Surface Area Header");
497 initFrame();
498
499 }
500
501 /**
502 This method initializes this
503 Fill values to all fields if these values are not empty
504
505 @param inFpdHeader The input data of FpdHeaderDocument.FpdHeader
506
507 **/
508 private void init(FpdFileContents ffc) {
509
510 if (ffc.getFpdHdrPlatformName() != null) {
511 jTextFieldBaseName.setText(ffc.getFpdHdrPlatformName());
512 }
513 if (ffc.getFpdHdrGuidValue() != null) {
514 jTextFieldGuid.setText(ffc.getFpdHdrGuidValue());
515 }
516 if (ffc.getFpdHdrVer() != null) {
517 jTextFieldVersion.setText(ffc.getFpdHdrVer());
518 }
519 if (ffc.getFpdHdrLicense() != null) {
520 jTextAreaLicense.setText(ffc.getFpdHdrLicense());
521 }
522 if (ffc.getFpdHdrAbs() != null) {
523 jTextFieldAbstract.setText(ffc.getFpdHdrAbs());
524 }
525 if (ffc.getFpdHdrUrl() != null) {
526 jTextFieldUrl.setText(ffc.getFpdHdrUrl());
527 }
528 if (ffc.getFpdHdrCopyright() != null) {
529 jTextFieldCopyright.setText(ffc.getFpdHdrCopyright());
530 }
531 if (ffc.getFpdHdrDescription() != null) {
532 jTextAreaDescription.setText(ffc.getFpdHdrDescription());
533 }
534 if (ffc.getFpdHdrSpec() != null) {
535 jTextFieldSpecification.setText(ffc.getFpdHdrSpec());
536 }
537 ffc.setFpdHdrSpec(jTextFieldSpecification.getText());
538 }
539
540 /**
541 This method initializes jContentPane
542
543 @return javax.swing.JPanel jContentPane
544
545 **/
546 private JPanel getJContentPane() {
547 if (jContentPane == null) {
548 jLabel = new JLabel();
549 jLabel.setBounds(new java.awt.Rectangle(15,193,140,20));
550 jLabel.setText("URL");
551 jContentPane = new JPanel();
552 jContentPane.setLayout(null);
553 jContentPane.setLocation(new java.awt.Point(0, 0));
554 jContentPane.setSize(new java.awt.Dimension(500,423));
555 jLabelAbstract = new JLabel();
556 jLabelAbstract.setBounds(new java.awt.Rectangle(15,218,140,20));
557 jLabelAbstract.setText("Abstract");
558 jLabelSpecification = new JLabel();
559 jLabelSpecification.setText("Specification");
560 jLabelSpecification.setBounds(new java.awt.Rectangle(15,328,140,20));
561 jLabelDescription = new JLabel();
562 jLabelDescription.setText("Description");
563 jLabelDescription.setBounds(new java.awt.Rectangle(15,243,140,20));
564 jLabelCopyright = new JLabel();
565 jLabelCopyright.setText("Copyright");
566 jLabelCopyright.setBounds(new java.awt.Rectangle(15,85,140,20));
567 jLabelLicense = new JLabel();
568 jLabelLicense.setText("License");
569 jLabelLicense.setBounds(new java.awt.Rectangle(15,108,140,20));
570 jLabelVersion = new JLabel();
571 jLabelVersion.setText("Version");
572 jLabelVersion.setBounds(new java.awt.Rectangle(15, 60, 140, 20));
573 jLabelGuid = new JLabel();
574 jLabelGuid.setPreferredSize(new java.awt.Dimension(25, 15));
575 jLabelGuid.setBounds(new java.awt.Rectangle(15, 35, 140, 20));
576 jLabelGuid.setText("Guid");
577 jLabelBaseName = new JLabel();
578 jLabelBaseName.setText("Platform Name");
579 jLabelBaseName.setBounds(new java.awt.Rectangle(15, 10, 140, 20));
580 jContentPane.add(jLabelBaseName, null);
581 jContentPane.add(getJTextFieldBaseName(), null);
582 jContentPane.add(jLabelGuid, null);
583 jContentPane.add(getJTextFieldGuid(), null);
584 jContentPane.add(jLabelVersion, null);
585 jContentPane.add(getJTextFieldVersion(), null);
586 jContentPane.add(getJButtonGenerateGuid(), null);
587 jContentPane.add(jLabelLicense, null);
588 jContentPane.add(jLabelCopyright, null);
589 jContentPane.add(jLabelDescription, null);
590 jContentPane.add(jLabelSpecification, null);
591 jContentPane.add(getJTextFieldSpecification(), null);
592 jContentPane.add(getJButtonOk(), null);
593 jContentPane.add(getJButtonCancel(), null);
594 jContentPane.add(getJScrollPaneLicense(), null);
595 jContentPane.add(getJScrollPaneDescription(), null);
596 jContentPane.add(jLabelAbstract, null);
597 jContentPane.add(getJTextFieldAbstract(), null);
598 jStarLabel1 = new StarLabel();
599 jStarLabel1.setLocation(new java.awt.Point(0, 10));
600 jStarLabel2 = new StarLabel();
601 jStarLabel2.setLocation(new java.awt.Point(0, 35));
602 jStarLabel3 = new StarLabel();
603 jStarLabel3.setLocation(new java.awt.Point(0, 60));
604 jStarLabel4 = new StarLabel();
605 jStarLabel4.setLocation(new java.awt.Point(0,108));
606 jStarLabel5 = new StarLabel();
607 jStarLabel5.setLocation(new java.awt.Point(0,85));
608 jStarLabel6 = new StarLabel();
609 jStarLabel6.setLocation(new java.awt.Point(0,218));
610 jStarLabel7 = new StarLabel();
611 jStarLabel7.setLocation(new java.awt.Point(0,328));
612 jStarLabel7.setEnabled(false);
613 jStarLabel8 = new StarLabel();
614 jStarLabel8.setLocation(new java.awt.Point(0,243));
615 jStarLabel9 = new StarLabel();
616 jStarLabel9.setLocation(new java.awt.Point(0,303));
617 jStarLabel9.setVisible(false);
618 jContentPane.add(jStarLabel1, null);
619 jContentPane.add(jStarLabel2, null);
620 jContentPane.add(jStarLabel3, null);
621 jContentPane.add(jStarLabel4, null);
622 jContentPane.add(jStarLabel5, null);
623 jContentPane.add(jStarLabel6, null);
624 jContentPane.add(jStarLabel7, null);
625 jContentPane.add(jStarLabel8, null);
626 jContentPane.add(jStarLabel9, null);
627 jContentPane.add(getJTextFieldCopyright(), null);
628
629 jContentPane.add(jLabel, null);
630 jContentPane.add(getJTextFieldUrl(), null);
631 }
632 return jContentPane;
633 }
634
635 /* (non-Javadoc)
636 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
637 *
638 * Override actionPerformed to listen all actions
639 *
640 */
641 public void actionPerformed(ActionEvent arg0) {
642
643 if (arg0.getSource() == jButtonGenerateGuid) {
644 docConsole.setSaved(false);
645 jTextFieldGuid.setText(Tools.generateUuidString());
646 ffc.setFpdHdrGuidValue(jTextFieldGuid.getText());
647 }
648 }
649
650
651 /**
652 This method initializes Package type and Compontent type
653
654 **/
655 private void initFrame() {
656
657
658 }
659
660 /* (non-Javadoc)
661 * @see java.awt.event.ComponentListener#componentResized(java.awt.event.ComponentEvent)
662 *
663 * Override componentResized to resize all components when frame's size is changed
664 */
665 public void componentResized(ComponentEvent arg0) {
666 int intPreferredWidth = 500;
667
668 resizeComponentWidth(this.jTextFieldBaseName, this.getWidth(), intPreferredWidth);
669 resizeComponentWidth(this.jTextFieldGuid, this.getWidth(), intPreferredWidth);
670 resizeComponentWidth(this.jTextFieldVersion, this.getWidth(), intPreferredWidth);
671 resizeComponentWidth(this.jTextFieldUrl, this.getWidth(), intPreferredWidth);
672 resizeComponentWidth(this.jScrollPaneLicense, this.getWidth(), intPreferredWidth);
673 resizeComponentWidth(this.jTextFieldCopyright, this.getWidth(), intPreferredWidth);
674 resizeComponentWidth(this.jScrollPaneDescription, this.getWidth(), intPreferredWidth);
675 resizeComponentWidth(this.jTextFieldSpecification, this.getWidth(), intPreferredWidth);
676 resizeComponentWidth(this.jTextFieldAbstract, this.getWidth(), intPreferredWidth);
677
678 relocateComponentX(this.jButtonGenerateGuid, this.getWidth(), jButtonGenerateGuid.getWidth(), 25);
679 }
680 }