Source Code Cross Referenced for ServiceUIDialogTemplate.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » x » print » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » org package » org.apache.harmony.x.print 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /*
0002:         *  Licensed to the Apache Software Foundation (ASF) under one or more
0003:         *  contributor license agreements.  See the NOTICE file distributed with
0004:         *  this work for additional information regarding copyright ownership.
0005:         *  The ASF licenses this file to You under the Apache License, Version 2.0
0006:         *  (the "License"); you may not use this file except in compliance with
0007:         *  the License.  You may obtain a copy of the License at
0008:         *
0009:         *     http://www.apache.org/licenses/LICENSE-2.0
0010:         *
0011:         *  Unless required by applicable law or agreed to in writing, software
0012:         *  distributed under the License is distributed on an "AS IS" BASIS,
0013:         *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0014:         *  See the License for the specific language governing permissions and
0015:         *  limitations under the License.
0016:         */
0017:        /** 
0018:         * @author Irina A. Arkhipets 
0019:         * @version $Revision: 1.3 $ 
0020:         */package org.apache.harmony.x.print;
0021:
0022:        import java.awt.Dimension;
0023:        import java.awt.FlowLayout;
0024:        import java.awt.GridBagConstraints;
0025:        import java.awt.GridBagLayout;
0026:        import java.text.DecimalFormat;
0027:
0028:        import javax.swing.BorderFactory;
0029:        import javax.swing.JButton;
0030:        import javax.swing.JCheckBox;
0031:        import javax.swing.JComboBox;
0032:        import javax.swing.JDialog;
0033:        import javax.swing.JFormattedTextField;
0034:        import javax.swing.JLabel;
0035:        import javax.swing.JPanel;
0036:        import javax.swing.JRadioButton;
0037:        import javax.swing.JSpinner;
0038:        import javax.swing.JTabbedPane;
0039:        import javax.swing.JTextField;
0040:        import javax.swing.border.TitledBorder;
0041:        import javax.swing.text.NumberFormatter;
0042:
0043:        public class ServiceUIDialogTemplate {
0044:
0045:            JPanel namePanel = null;
0046:            JLabel nameLabel = null;
0047:            JComboBox servicesBox = null;
0048:            JButton propertiesBtn = null;
0049:            JLabel statusLabel = null;
0050:            JLabel typeLabel = null;
0051:            JLabel infoLabel = null;
0052:            JLabel statusText = null;
0053:            JLabel typeText = null;
0054:            JLabel infoText = null;
0055:            JCheckBox toFileBox = null;
0056:            JPanel printRangePanel = null;
0057:            JPanel copiesPanel = null;
0058:            JRadioButton allRngBtn = null;
0059:            JRadioButton pageRngBtn = null;
0060:            JLabel toLabel = null;
0061:            JFormattedTextField fromTxt = null;
0062:            JFormattedTextField toTxt = null;
0063:            JLabel copiesLabel = null;
0064:            JSpinner cpSpinner = null;
0065:            JCheckBox collateBox = null;
0066:            JPanel generalPanel = null;
0067:            JTabbedPane tabbedPane = null;
0068:            JPanel pageSetupMediaPanel = null;
0069:            JLabel sizeLabel = null;
0070:            JComboBox sizeBox = null;
0071:            JLabel sourceLabel = null;
0072:            JComboBox sourceBox = null;
0073:            JPanel orientationPanel = null;
0074:            JRadioButton portraitBtn = null;
0075:            JRadioButton landscapeBtn = null;
0076:            JRadioButton rvportraitBtn = null;
0077:            JRadioButton rvlandscapeBtn = null;
0078:            JPanel marginsPanel = null;
0079:            JLabel leftLabel = null;
0080:            JLabel rightLabel = null;
0081:            JFormattedTextField rightTxt = null;
0082:            JFormattedTextField leftTxt = null;
0083:            JFormattedTextField topTxt = null;
0084:            JLabel topLabel = null;
0085:            JLabel bottomLabel = null;
0086:            JFormattedTextField bottomTxt = null;
0087:            JPanel pageSetupPanel = null;
0088:            JPanel colorPanel = null;
0089:            JRadioButton monoBtn = null;
0090:            JRadioButton colorBtn = null;
0091:            JPanel qualityPanel = null;
0092:            JRadioButton draftBtn = null;
0093:            JRadioButton normalBtn = null;
0094:            JRadioButton highBtn = null;
0095:            JPanel sidesPanel = null;
0096:            JRadioButton oneSideBtn = null;
0097:            JRadioButton tumbleBtn = null;
0098:            JRadioButton duplexBtn = null;
0099:            JPanel jobAttributesPanel = null;
0100:            JCheckBox bannerBox = null;
0101:            JLabel priorityLabel = null;
0102:            JSpinner prtSpinner = null;
0103:            JTextField jobNameTxt = null;
0104:            JLabel jobNameLabel = null;
0105:            JLabel userNameLabel = null;
0106:            JTextField userNameTxt = null;
0107:            JPanel appearancePanel = null;
0108:            JButton printBtn = null;
0109:            JButton cancelBtn = null;
0110:            JDialog printDialog = null; //  @jve:decl-index=0:visual-constraint="86,16"
0111:            JPanel dialogPanel = null; //  @jve:decl-index=0:visual-constraint="709,338"
0112:            JPanel buttonsPanel = null;
0113:
0114:            JPanel vendorSuppliedPanel = null;
0115:
0116:            /*
0117:             * Formatter for the integer text fields
0118:             */
0119:            public static NumberFormatter getNumberFormatter() {
0120:                DecimalFormat format = new DecimalFormat("#####");
0121:                NumberFormatter ret;
0122:                format.setParseIntegerOnly(true);
0123:                format.setDecimalSeparatorAlwaysShown(false);
0124:                format.setMinimumIntegerDigits(0);
0125:                format.setMaximumIntegerDigits(5);
0126:                format.setMinimumFractionDigits(0);
0127:                format.setMaximumFractionDigits(0);
0128:                ret = new NumberFormatter(format);
0129:                ret.setMinimum(new Integer(1));
0130:                ret.setMaximum(new Integer(Integer.MAX_VALUE));
0131:                return ret;
0132:            }
0133:
0134:            /*
0135:             * Formatter for the float text fields
0136:             */
0137:            public static NumberFormatter getFloatFormatter() {
0138:                DecimalFormat format = new DecimalFormat("###.##");
0139:                NumberFormatter ret;
0140:                format.setParseIntegerOnly(false);
0141:                format.setDecimalSeparatorAlwaysShown(true);
0142:                format.setMinimumIntegerDigits(1);
0143:                format.setMaximumIntegerDigits(3);
0144:                format.setMinimumFractionDigits(1);
0145:                format.setMaximumFractionDigits(2);
0146:                ret = new NumberFormatter(format);
0147:                ret.setMinimum(new Float(0.0F));
0148:                ret.setMaximum(new Float(999F));
0149:                return ret;
0150:            }
0151:
0152:            private JPanel getNamePanel() {
0153:                if (namePanel == null) {
0154:                    namePanel = new JPanel();
0155:                    infoText = new JLabel();
0156:                    typeText = new JLabel();
0157:                    statusText = new JLabel();
0158:                    infoLabel = new JLabel("Info:");
0159:                    typeLabel = new JLabel("Type");
0160:                    statusLabel = new JLabel("Status:");
0161:                    GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
0162:                    GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
0163:                    GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
0164:                    GridBagConstraints gridBagConstraints51 = new GridBagConstraints();
0165:                    GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
0166:                    GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
0167:                    GridBagConstraints gridBagConstraints9 = new GridBagConstraints();
0168:                    GridBagConstraints gridBagConstraints10 = new GridBagConstraints();
0169:                    GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
0170:                    GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
0171:                    nameLabel = new JLabel();
0172:                    namePanel.setLayout(new GridBagLayout());
0173:                    nameLabel.setText("Name:");
0174:                    gridBagConstraints2.gridx = 0;
0175:                    gridBagConstraints2.gridy = 0;
0176:                    gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH;
0177:                    gridBagConstraints2.anchor = java.awt.GridBagConstraints.CENTER;
0178:                    gridBagConstraints2.gridheight = 2;
0179:                    gridBagConstraints2.gridwidth = 2;
0180:                    gridBagConstraints5.gridx = 4;
0181:                    gridBagConstraints5.gridy = 1;
0182:                    gridBagConstraints5.gridheight = 4;
0183:                    gridBagConstraints5.anchor = java.awt.GridBagConstraints.NORTH;
0184:                    gridBagConstraints1.gridx = 2;
0185:                    gridBagConstraints1.gridy = 1;
0186:                    gridBagConstraints1.weightx = 1.0;
0187:                    gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL;
0188:                    gridBagConstraints3.gridx = 1;
0189:                    gridBagConstraints3.gridy = 5;
0190:                    statusLabel.setText("Status:");
0191:                    gridBagConstraints4.gridx = 1;
0192:                    gridBagConstraints4.gridy = 7;
0193:                    typeLabel.setText("Type:");
0194:                    gridBagConstraints51.gridx = 1;
0195:                    gridBagConstraints51.gridy = 8;
0196:                    infoLabel.setText("Info:");
0197:                    namePanel.setBorder(BorderFactory.createTitledBorder(null,
0198:                            "Print Service",
0199:                            TitledBorder.DEFAULT_JUSTIFICATION,
0200:                            TitledBorder.DEFAULT_POSITION, null, null));
0201:                    gridBagConstraints7.gridx = 2;
0202:                    gridBagConstraints7.gridy = 5;
0203:                    gridBagConstraints7.gridwidth = 3;
0204:                    gridBagConstraints7.anchor = java.awt.GridBagConstraints.WEST;
0205:                    gridBagConstraints8.gridx = 2;
0206:                    gridBagConstraints8.gridy = 7;
0207:                    gridBagConstraints8.anchor = java.awt.GridBagConstraints.WEST;
0208:                    gridBagConstraints9.gridx = 2;
0209:                    gridBagConstraints9.gridy = 8;
0210:                    gridBagConstraints9.anchor = java.awt.GridBagConstraints.WEST;
0211:                    gridBagConstraints9.gridwidth = 1;
0212:                    gridBagConstraints9.insets = new java.awt.Insets(9, 7, 9, 7);
0213:                    gridBagConstraints10.gridx = 4;
0214:                    gridBagConstraints10.gridy = 8;
0215:                    gridBagConstraints10.gridheight = 3;
0216:                    gridBagConstraints10.insets = new java.awt.Insets(9, 7, 9,
0217:                            7);
0218:                    gridBagConstraints10.anchor = java.awt.GridBagConstraints.CENTER;
0219:                    gridBagConstraints2.insets = new java.awt.Insets(9, 7, 9, 7);
0220:                    namePanel
0221:                            .setPreferredSize(new java.awt.Dimension(515, 180));
0222:                    gridBagConstraints5.insets = new java.awt.Insets(9, 7, 9, 7);
0223:                    gridBagConstraints1.insets = new java.awt.Insets(9, 7, 9, 7);
0224:                    gridBagConstraints3.insets = new java.awt.Insets(9, 7, 9, 7);
0225:                    gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;
0226:                    gridBagConstraints4.insets = new java.awt.Insets(9, 7, 9, 7);
0227:                    gridBagConstraints4.anchor = java.awt.GridBagConstraints.WEST;
0228:                    gridBagConstraints51.insets = new java.awt.Insets(9, 7, 9,
0229:                            7);
0230:                    gridBagConstraints51.anchor = java.awt.GridBagConstraints.WEST;
0231:                    gridBagConstraints7.insets = new java.awt.Insets(9, 7, 9, 7);
0232:                    gridBagConstraints8.insets = new java.awt.Insets(9, 7, 9, 7);
0233:                    namePanel.add(infoText, gridBagConstraints9);
0234:                    namePanel.add(typeLabel, gridBagConstraints4);
0235:                    namePanel.add(infoLabel, gridBagConstraints51);
0236:                    namePanel.add(gettoFileBox(), gridBagConstraints10);
0237:                    namePanel.add(typeText, gridBagConstraints8);
0238:                    namePanel.add(statusLabel, gridBagConstraints3);
0239:                    namePanel.add(nameLabel, gridBagConstraints2);
0240:                    namePanel.add(getPropertiesBtn(), gridBagConstraints5);
0241:                    namePanel.add(getservicesBox(), gridBagConstraints1);
0242:                    namePanel.add(statusText, gridBagConstraints7);
0243:                }
0244:                return namePanel;
0245:            }
0246:
0247:            /**
0248:             * This method initializes jComboBox
0249:             * 
0250:             * @return javax.swing.JComboBox
0251:             */
0252:            private JComboBox getservicesBox() {
0253:                if (servicesBox == null) {
0254:                    servicesBox = new JComboBox();
0255:                    nameLabel.setDisplayedMnemonic('N');
0256:                    nameLabel.setLabelFor(servicesBox);
0257:                }
0258:                return servicesBox;
0259:            }
0260:
0261:            /**
0262:             * This method initializes jButton
0263:             * 
0264:             * @return javax.swing.JButton
0265:             */
0266:            private JButton getPropertiesBtn() {
0267:                if (propertiesBtn == null) {
0268:                    propertiesBtn = new JButton();
0269:                    propertiesBtn.setText("Properties");
0270:                }
0271:                return propertiesBtn;
0272:            }
0273:
0274:            /**
0275:             * This method initializes jCheckBox
0276:             * 
0277:             * @return javax.swing.JCheckBox
0278:             */
0279:            private JCheckBox gettoFileBox() {
0280:                if (toFileBox == null) {
0281:                    toFileBox = new JCheckBox();
0282:                    toFileBox.setText("Print to file");
0283:                    toFileBox.setMnemonic('F');
0284:                }
0285:                return toFileBox;
0286:            }
0287:
0288:            /**
0289:             * This method initializes jPanel
0290:             * 
0291:             * @return javax.swing.JPanel
0292:             */
0293:            private JPanel getPrintRangePanel() {
0294:                if (printRangePanel == null) {
0295:                    printRangePanel = new JPanel();
0296:                    toLabel = new JLabel();
0297:                    GridBagConstraints gridBagConstraints11 = new GridBagConstraints();
0298:                    GridBagConstraints gridBagConstraints12 = new GridBagConstraints();
0299:                    GridBagConstraints gridBagConstraints13 = new GridBagConstraints();
0300:                    GridBagConstraints gridBagConstraints14 = new GridBagConstraints();
0301:                    GridBagConstraints gridBagConstraints17 = new GridBagConstraints();
0302:                    printRangePanel.setLayout(new GridBagLayout());
0303:                    printRangePanel.setBorder(BorderFactory.createTitledBorder(
0304:                            null, "Print Range",
0305:                            TitledBorder.DEFAULT_JUSTIFICATION,
0306:                            TitledBorder.DEFAULT_POSITION, null, null));
0307:                    printRangePanel.setPreferredSize(new java.awt.Dimension(
0308:                            256, 110));
0309:                    gridBagConstraints11.gridx = 0;
0310:                    gridBagConstraints11.gridy = 0;
0311:                    gridBagConstraints11.anchor = java.awt.GridBagConstraints.WEST;
0312:                    gridBagConstraints12.gridx = 0;
0313:                    gridBagConstraints12.gridy = 1;
0314:                    gridBagConstraints13.gridx = 2;
0315:                    gridBagConstraints13.gridy = 1;
0316:                    toLabel.setText("to");
0317:                    gridBagConstraints14.gridx = 1;
0318:                    gridBagConstraints14.gridy = 1;
0319:                    gridBagConstraints14.weightx = 1.0;
0320:                    gridBagConstraints14.fill = java.awt.GridBagConstraints.HORIZONTAL;
0321:                    gridBagConstraints14.insets = new java.awt.Insets(9, 9, 9,
0322:                            9);
0323:                    gridBagConstraints17.gridx = 3;
0324:                    gridBagConstraints17.gridy = 1;
0325:                    gridBagConstraints17.weightx = 1.0;
0326:                    gridBagConstraints17.fill = java.awt.GridBagConstraints.HORIZONTAL;
0327:                    gridBagConstraints17.insets = new java.awt.Insets(9, 9, 9,
0328:                            9);
0329:                    gridBagConstraints11.insets = new java.awt.Insets(9, 9, 9,
0330:                            9);
0331:                    gridBagConstraints12.insets = new java.awt.Insets(9, 9, 9,
0332:                            9);
0333:                    gridBagConstraints13.insets = new java.awt.Insets(0, 0, 0,
0334:                            0);
0335:                    printRangePanel.add(toLabel, gridBagConstraints13);
0336:                    printRangePanel.add(getallRngBtn(), gridBagConstraints11);
0337:                    printRangePanel.add(getFromTxt(), gridBagConstraints14);
0338:                    printRangePanel.add(getpageRngBtn(), gridBagConstraints12);
0339:                    printRangePanel.add(getToTxt(), gridBagConstraints17);
0340:                }
0341:                return printRangePanel;
0342:            }
0343:
0344:            /**
0345:             * This method initializes jPanel
0346:             * 
0347:             * @return javax.swing.JPanel
0348:             */
0349:            private JPanel getCopiesPanel() {
0350:                if (copiesPanel == null) {
0351:                    copiesPanel = new JPanel();
0352:                    GridBagConstraints gridBagConstraints18 = new GridBagConstraints();
0353:                    GridBagConstraints gridBagConstraints19 = new GridBagConstraints();
0354:                    GridBagConstraints gridBagConstraints20 = new GridBagConstraints();
0355:                    copiesLabel = new JLabel();
0356:                    copiesPanel.setLayout(new GridBagLayout());
0357:                    copiesPanel.setBorder(BorderFactory.createTitledBorder(
0358:                            null, "Copies", TitledBorder.DEFAULT_JUSTIFICATION,
0359:                            TitledBorder.DEFAULT_POSITION, null, null));
0360:                    copiesPanel.setPreferredSize(new java.awt.Dimension(256,
0361:                            110));
0362:                    copiesLabel.setText("Number of copies:");
0363:                    gridBagConstraints18.gridx = 1;
0364:                    gridBagConstraints18.gridy = 0;
0365:                    gridBagConstraints18.insets = new java.awt.Insets(9, 9, 9,
0366:                            9);
0367:                    gridBagConstraints18.anchor = java.awt.GridBagConstraints.WEST;
0368:                    gridBagConstraints19.gridx = 4;
0369:                    gridBagConstraints19.gridy = 0;
0370:                    gridBagConstraints19.weightx = 1.0;
0371:                    gridBagConstraints19.fill = java.awt.GridBagConstraints.HORIZONTAL;
0372:                    gridBagConstraints19.insets = new java.awt.Insets(9, 9, 9,
0373:                            9);
0374:                    gridBagConstraints19.anchor = java.awt.GridBagConstraints.WEST;
0375:                    gridBagConstraints19.gridwidth = 2;
0376:                    gridBagConstraints20.gridx = 1;
0377:                    gridBagConstraints20.gridy = 1;
0378:                    gridBagConstraints20.anchor = java.awt.GridBagConstraints.WEST;
0379:                    gridBagConstraints20.insets = new java.awt.Insets(9, 9, 9,
0380:                            9);
0381:                    copiesPanel.add(copiesLabel, gridBagConstraints18);
0382:                    copiesPanel.add(getCopiesSpinner(), gridBagConstraints19);
0383:                    copiesPanel.add(getCollateBox(), gridBagConstraints20);
0384:                }
0385:                return copiesPanel;
0386:            }
0387:
0388:            /**
0389:             * This method initializes jRadioButton
0390:             * 
0391:             * @return javax.swing.JRadioButton
0392:             */
0393:            private JRadioButton getallRngBtn() {
0394:                if (allRngBtn == null) {
0395:                    allRngBtn = new JRadioButton();
0396:                    allRngBtn.setText("All");
0397:                    allRngBtn.setMnemonic('L');
0398:                }
0399:                return allRngBtn;
0400:            }
0401:
0402:            /**
0403:             * This method initializes jRadioButton
0404:             * 
0405:             * @return javax.swing.JRadioButton
0406:             */
0407:            private JRadioButton getpageRngBtn() {
0408:                if (pageRngBtn == null) {
0409:                    pageRngBtn = new JRadioButton();
0410:                    pageRngBtn.setText("Pages");
0411:                    pageRngBtn.setMnemonic('E');
0412:                }
0413:                return pageRngBtn;
0414:            }
0415:
0416:            /**
0417:             * This method initializes JTextField
0418:             * 
0419:             * @return javax.swing.JTextField
0420:             */
0421:            private JFormattedTextField getFromTxt() {
0422:                if (fromTxt == null) {
0423:                    fromTxt = new JFormattedTextField(getNumberFormatter());
0424:                }
0425:                return fromTxt;
0426:            }
0427:
0428:            /**
0429:             * This method initializes JTextField
0430:             * 
0431:             * @return javax.swing.JTextField
0432:             */
0433:            private JFormattedTextField getToTxt() {
0434:                if (toTxt == null) {
0435:                    toTxt = new JFormattedTextField(getNumberFormatter());
0436:                }
0437:                return toTxt;
0438:            }
0439:
0440:            /**
0441:             * This method initializes JTextField
0442:             * 
0443:             * @return javax.swing.JTextField
0444:             */
0445:            private JSpinner getCopiesSpinner() {
0446:                if (cpSpinner == null) {
0447:                    cpSpinner = new JSpinner();
0448:                    copiesLabel.setLabelFor(cpSpinner);
0449:                    copiesLabel.setDisplayedMnemonic('O');
0450:                }
0451:                return cpSpinner;
0452:            }
0453:
0454:            /**
0455:             * This method initializes jRadioButton
0456:             * 
0457:             * @return javax.swing.JRadioButton
0458:             */
0459:            private JCheckBox getCollateBox() {
0460:                if (collateBox == null) {
0461:                    collateBox = new JCheckBox();
0462:                    collateBox.setText("Collate");
0463:                    collateBox.setMnemonic('T');
0464:                }
0465:                return collateBox;
0466:            }
0467:
0468:            /**
0469:             * This method initializes jPanel
0470:             * 
0471:             * @return javax.swing.JPanel
0472:             */
0473:            private JPanel getGeneralPanel() {
0474:                if (generalPanel == null) {
0475:                    generalPanel = new JPanel();
0476:                    generalPanel.setLayout(new FlowLayout());
0477:                    generalPanel.setPreferredSize(new java.awt.Dimension(500,
0478:                            500));
0479:                    generalPanel.add(getNamePanel(), null);
0480:                    generalPanel.add(getCopiesPanel(), null);
0481:                    generalPanel.add(getPrintRangePanel(), null);
0482:                }
0483:                return generalPanel;
0484:            }
0485:
0486:            /**
0487:             * This method initializes jTabbedPane
0488:             * 
0489:             * @return javax.swing.JTabbedPane
0490:             */
0491:            private JTabbedPane getTabbedPane() {
0492:                if (tabbedPane == null) {
0493:                    tabbedPane = new JTabbedPane();
0494:                    tabbedPane
0495:                            .setPreferredSize(new java.awt.Dimension(100, 100));
0496:                    tabbedPane.addTab("General", null, getGeneralPanel(), null);
0497:                    tabbedPane.addTab("Page Setup", null, getPageSetupPanel(),
0498:                            null);
0499:                    tabbedPane.addTab("Appearance", null, getAppearancePanel(),
0500:                            null);
0501:                    tabbedPane.setMnemonicAt(0, 'G');
0502:                    tabbedPane.setMnemonicAt(1, 'S');
0503:                    tabbedPane.setMnemonicAt(2, 'A');
0504:                }
0505:                return tabbedPane;
0506:            }
0507:
0508:            /**
0509:             * This method initializes jPanel
0510:             * 
0511:             * @return javax.swing.JPanel
0512:             */
0513:            private JPanel getPageSetupMediaPanel() {
0514:                if (pageSetupMediaPanel == null) {
0515:                    pageSetupMediaPanel = new JPanel();
0516:                    sourceLabel = new JLabel();
0517:                    sizeLabel = new JLabel();
0518:                    GridBagConstraints gridBagConstraints16 = new GridBagConstraints();
0519:                    GridBagConstraints gridBagConstraints21 = new GridBagConstraints();
0520:                    GridBagConstraints gridBagConstraints31 = new GridBagConstraints();
0521:                    GridBagConstraints gridBagConstraints42 = new GridBagConstraints();
0522:                    pageSetupMediaPanel.setLayout(new GridBagLayout());
0523:                    pageSetupMediaPanel.setBorder(BorderFactory
0524:                            .createTitledBorder(null, "Media",
0525:                                    TitledBorder.DEFAULT_JUSTIFICATION,
0526:                                    TitledBorder.DEFAULT_POSITION, null, null));
0527:                    pageSetupMediaPanel
0528:                            .setPreferredSize(new Dimension(515, 120));
0529:                    gridBagConstraints16.gridx = 0;
0530:                    gridBagConstraints16.gridy = 0;
0531:                    sizeLabel.setText("Size:");
0532:                    gridBagConstraints21.gridx = 1;
0533:                    gridBagConstraints21.gridy = 0;
0534:                    gridBagConstraints21.weightx = 1.0;
0535:                    gridBagConstraints21.fill = java.awt.GridBagConstraints.HORIZONTAL;
0536:                    gridBagConstraints21.insets = new java.awt.Insets(9, 3, 9,
0537:                            3);
0538:                    gridBagConstraints16.insets = new java.awt.Insets(9, 7, 9,
0539:                            7);
0540:                    gridBagConstraints31.gridx = 0;
0541:                    gridBagConstraints31.gridy = 1;
0542:                    sourceLabel.setText("Source:");
0543:                    gridBagConstraints42.gridx = 1;
0544:                    gridBagConstraints42.gridy = 1;
0545:                    gridBagConstraints42.weightx = 1.0;
0546:                    gridBagConstraints42.fill = java.awt.GridBagConstraints.HORIZONTAL;
0547:                    gridBagConstraints42.insets = new java.awt.Insets(9, 3, 9,
0548:                            3);
0549:                    gridBagConstraints31.insets = new java.awt.Insets(9, 7, 9,
0550:                            7);
0551:                    gridBagConstraints31.anchor = java.awt.GridBagConstraints.WEST;
0552:                    gridBagConstraints16.anchor = java.awt.GridBagConstraints.WEST;
0553:                    pageSetupMediaPanel.add(sizeLabel, gridBagConstraints16);
0554:                    pageSetupMediaPanel.add(getsizeBox(), gridBagConstraints21);
0555:                    pageSetupMediaPanel.add(sourceLabel, gridBagConstraints31);
0556:                    pageSetupMediaPanel.add(getsourceBox(),
0557:                            gridBagConstraints42);
0558:                }
0559:                return pageSetupMediaPanel;
0560:            }
0561:
0562:            /**
0563:             * This method initializes jComboBox
0564:             * 
0565:             * @return javax.swing.JComboBox
0566:             */
0567:            private JComboBox getsizeBox() {
0568:                if (sizeBox == null) {
0569:                    sizeBox = new JComboBox();
0570:                    sizeBox.setPreferredSize(new java.awt.Dimension(270, 25));
0571:                    sizeLabel.setLabelFor(sizeBox);
0572:                    sizeLabel.setDisplayedMnemonic('Z');
0573:                }
0574:                return sizeBox;
0575:            }
0576:
0577:            /**
0578:             * This method initializes jComboBox1
0579:             * 
0580:             * @return javax.swing.JComboBox
0581:             */
0582:            private JComboBox getsourceBox() {
0583:                if (sourceBox == null) {
0584:                    sourceBox = new JComboBox();
0585:                    sourceBox.setPreferredSize(new java.awt.Dimension(270, 25));
0586:                }
0587:                return sourceBox;
0588:            }
0589:
0590:            /**
0591:             * This method initializes jPanel
0592:             * 
0593:             * @return javax.swing.JPanel
0594:             */
0595:            private JPanel getOrientationPanel() {
0596:                if (orientationPanel == null) {
0597:                    orientationPanel = new JPanel();
0598:                    GridBagConstraints gridBagConstraints52 = new GridBagConstraints();
0599:                    GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
0600:                    GridBagConstraints gridBagConstraints71 = new GridBagConstraints();
0601:                    GridBagConstraints gridBagConstraints81 = new GridBagConstraints();
0602:                    orientationPanel.setLayout(new GridBagLayout());
0603:                    orientationPanel.setBorder(BorderFactory
0604:                            .createTitledBorder(null, "Orientation",
0605:                                    TitledBorder.DEFAULT_JUSTIFICATION,
0606:                                    TitledBorder.DEFAULT_POSITION, null, null));
0607:                    orientationPanel.setPreferredSize(new java.awt.Dimension(
0608:                            250, 170));
0609:                    gridBagConstraints52.gridx = 0;
0610:                    gridBagConstraints52.gridy = 0;
0611:                    gridBagConstraints52.anchor = java.awt.GridBagConstraints.WEST;
0612:                    gridBagConstraints52.insets = new java.awt.Insets(5, 9, 5,
0613:                            9);
0614:                    gridBagConstraints6.gridx = 0;
0615:                    gridBagConstraints6.gridy = 1;
0616:                    gridBagConstraints6.anchor = java.awt.GridBagConstraints.WEST;
0617:                    gridBagConstraints6.insets = new java.awt.Insets(5, 9, 5, 9);
0618:                    gridBagConstraints71.gridx = 0;
0619:                    gridBagConstraints71.gridy = 2;
0620:                    gridBagConstraints71.anchor = java.awt.GridBagConstraints.WEST;
0621:                    gridBagConstraints71.insets = new java.awt.Insets(5, 9, 5,
0622:                            9);
0623:                    gridBagConstraints81.gridx = 0;
0624:                    gridBagConstraints81.gridy = 3;
0625:                    gridBagConstraints81.anchor = java.awt.GridBagConstraints.WEST;
0626:                    gridBagConstraints81.insets = new java.awt.Insets(5, 9, 5,
0627:                            9);
0628:                    orientationPanel
0629:                            .add(getportraitBtn(), gridBagConstraints52);
0630:                    orientationPanel
0631:                            .add(getlandscapeBtn(), gridBagConstraints6);
0632:                    orientationPanel.add(getReverseportraitBtn(),
0633:                            gridBagConstraints71);
0634:                    orientationPanel.add(getReverselandscapeBtn(),
0635:                            gridBagConstraints81);
0636:                }
0637:                return orientationPanel;
0638:            }
0639:
0640:            /**
0641:             * This method initializes jRadioButton
0642:             * 
0643:             * @return javax.swing.JRadioButton
0644:             */
0645:            private JRadioButton getportraitBtn() {
0646:                if (portraitBtn == null) {
0647:                    portraitBtn = new JRadioButton();
0648:                    portraitBtn.setText("Portrait");
0649:                    portraitBtn.setMnemonic('O');
0650:                }
0651:                return portraitBtn;
0652:            }
0653:
0654:            /**
0655:             * This method initializes jRadioButton
0656:             * 
0657:             * @return javax.swing.JRadioButton
0658:             */
0659:            private JRadioButton getlandscapeBtn() {
0660:                if (landscapeBtn == null) {
0661:                    landscapeBtn = new JRadioButton();
0662:                    landscapeBtn.setText("Landscape");
0663:                    landscapeBtn.setMnemonic('L');
0664:                }
0665:                return landscapeBtn;
0666:            }
0667:
0668:            /**
0669:             * This method initializes jRadioButton
0670:             * 
0671:             * @return javax.swing.JRadioButton
0672:             */
0673:            private JRadioButton getReverseportraitBtn() {
0674:                if (rvportraitBtn == null) {
0675:                    rvportraitBtn = new JRadioButton();
0676:                    rvportraitBtn.setText("Reverse Portrait");
0677:                    rvportraitBtn.setMnemonic('E');
0678:                }
0679:                return rvportraitBtn;
0680:            }
0681:
0682:            /**
0683:             * This method initializes jRadioButton
0684:             * 
0685:             * @return javax.swing.JRadioButton
0686:             */
0687:            private JRadioButton getReverselandscapeBtn() {
0688:                if (rvlandscapeBtn == null) {
0689:                    rvlandscapeBtn = new JRadioButton();
0690:                    rvlandscapeBtn.setText("Reverse Landscape");
0691:                    rvlandscapeBtn.setMnemonic('N');
0692:                }
0693:                return rvlandscapeBtn;
0694:            }
0695:
0696:            /**
0697:             * This method initializes jPanel
0698:             * 
0699:             * @return javax.swing.JPanel
0700:             */
0701:            private JPanel getMarginsPanel() {
0702:                if (marginsPanel == null) {
0703:                    marginsPanel = new JPanel();
0704:                    bottomLabel = new JLabel();
0705:                    topLabel = new JLabel();
0706:                    rightLabel = new JLabel();
0707:                    GridBagConstraints gridBagConstraints91 = new GridBagConstraints();
0708:                    GridBagConstraints gridBagConstraints101 = new GridBagConstraints();
0709:                    GridBagConstraints gridBagConstraints111 = new GridBagConstraints();
0710:                    GridBagConstraints gridBagConstraints121 = new GridBagConstraints();
0711:                    GridBagConstraints gridBagConstraints131 = new GridBagConstraints();
0712:                    GridBagConstraints gridBagConstraints141 = new GridBagConstraints();
0713:                    GridBagConstraints gridBagConstraints151 = new GridBagConstraints();
0714:                    GridBagConstraints gridBagConstraints161 = new GridBagConstraints();
0715:                    leftLabel = new JLabel();
0716:                    marginsPanel.setLayout(new GridBagLayout());
0717:                    marginsPanel.setPreferredSize(new java.awt.Dimension(250,
0718:                            170));
0719:                    marginsPanel.setBorder(BorderFactory.createTitledBorder(
0720:                            null, "Margins",
0721:                            TitledBorder.DEFAULT_JUSTIFICATION,
0722:                            TitledBorder.DEFAULT_POSITION, null, null));
0723:                    leftLabel.setText("Left (mm)");
0724:                    rightLabel.setText("Right (mm)");
0725:                    gridBagConstraints111.gridx = 2;
0726:                    gridBagConstraints111.gridy = 1;
0727:                    gridBagConstraints111.weightx = 1.0;
0728:                    gridBagConstraints111.fill = java.awt.GridBagConstraints.HORIZONTAL;
0729:                    gridBagConstraints121.gridx = 0;
0730:                    gridBagConstraints121.gridy = 1;
0731:                    gridBagConstraints121.weightx = 1.0;
0732:                    gridBagConstraints121.fill = java.awt.GridBagConstraints.HORIZONTAL;
0733:                    gridBagConstraints131.gridx = 0;
0734:                    gridBagConstraints131.gridy = 5;
0735:                    gridBagConstraints131.weightx = 1.0;
0736:                    gridBagConstraints131.fill = java.awt.GridBagConstraints.HORIZONTAL;
0737:                    gridBagConstraints141.gridx = 0;
0738:                    gridBagConstraints141.gridy = 4;
0739:                    topLabel.setText("Top (mm)");
0740:                    gridBagConstraints151.gridx = 2;
0741:                    gridBagConstraints151.gridy = 4;
0742:                    bottomLabel.setText("Bottom (mm)");
0743:                    gridBagConstraints161.gridx = 2;
0744:                    gridBagConstraints161.gridy = 5;
0745:                    gridBagConstraints161.weightx = 1.0;
0746:                    gridBagConstraints161.fill = java.awt.GridBagConstraints.HORIZONTAL;
0747:                    gridBagConstraints161.insets = new java.awt.Insets(7, 9, 7,
0748:                            9);
0749:                    gridBagConstraints121.insets = new java.awt.Insets(7, 9, 7,
0750:                            9);
0751:                    gridBagConstraints141.insets = new java.awt.Insets(9, 9, 0,
0752:                            9);
0753:                    gridBagConstraints131.insets = new java.awt.Insets(7, 9, 7,
0754:                            9);
0755:                    gridBagConstraints151.insets = new java.awt.Insets(9, 9, 0,
0756:                            9);
0757:                    gridBagConstraints111.insets = new java.awt.Insets(7, 9, 7,
0758:                            9);
0759:                    marginsPanel.add(leftLabel, gridBagConstraints91);
0760:                    marginsPanel.add(rightLabel, gridBagConstraints101);
0761:                    marginsPanel.add(getRightTxt(), gridBagConstraints111);
0762:                    marginsPanel.add(getLeftTxt(), gridBagConstraints121);
0763:                    marginsPanel.add(getTopTxt(), gridBagConstraints131);
0764:                    marginsPanel.add(bottomLabel, gridBagConstraints151);
0765:                    marginsPanel.add(getBottomTxt(), gridBagConstraints161);
0766:                    marginsPanel.add(topLabel, gridBagConstraints141);
0767:                    gridBagConstraints91.gridx = 0;
0768:                    gridBagConstraints91.gridy = 0;
0769:                    gridBagConstraints91.insets = new java.awt.Insets(9, 9, 0,
0770:                            9);
0771:                    gridBagConstraints101.gridx = 2;
0772:                    gridBagConstraints101.gridy = 0;
0773:                    gridBagConstraints101.insets = new java.awt.Insets(9, 9, 0,
0774:                            9);
0775:                }
0776:                return marginsPanel;
0777:            }
0778:
0779:            /**
0780:             * This method initializes JTextField
0781:             * 
0782:             * @return javax.swing.JTextField
0783:             */
0784:            private JFormattedTextField getRightTxt() {
0785:                if (rightTxt == null) {
0786:                    rightTxt = new JFormattedTextField(getFloatFormatter());
0787:                    rightLabel.setLabelFor(rightTxt);
0788:                    rightLabel.setDisplayedMnemonic('R');
0789:                }
0790:                return rightTxt;
0791:            }
0792:
0793:            /**
0794:             * This method initializes JTextField1
0795:             * 
0796:             * @return javax.swing.JTextField
0797:             */
0798:            private JFormattedTextField getLeftTxt() {
0799:                if (leftTxt == null) {
0800:                    leftTxt = new JFormattedTextField(getFloatFormatter());
0801:                    leftLabel.setLabelFor(leftTxt);
0802:                    leftLabel.setDisplayedMnemonic('F');
0803:                }
0804:                return leftTxt;
0805:            }
0806:
0807:            /**
0808:             * This method initializes JTextField1
0809:             * 
0810:             * @return javax.swing.JTextField
0811:             */
0812:            private JFormattedTextField getTopTxt() {
0813:                if (topTxt == null) {
0814:                    topTxt = new JFormattedTextField(getFloatFormatter());
0815:                    topLabel.setLabelFor(topTxt);
0816:                    topLabel.setDisplayedMnemonic('T');
0817:                }
0818:                return topTxt;
0819:            }
0820:
0821:            /**
0822:             * This method initializes JTextField1
0823:             * 
0824:             * @return javax.swing.JTextField
0825:             */
0826:            private JFormattedTextField getBottomTxt() {
0827:                if (bottomTxt == null) {
0828:                    bottomTxt = new JFormattedTextField(getFloatFormatter());
0829:                    bottomLabel.setLabelFor(bottomTxt);
0830:                    bottomLabel.setDisplayedMnemonic('B');
0831:                }
0832:                return bottomTxt;
0833:            }
0834:
0835:            /**
0836:             * This method initializes jPanel
0837:             * 
0838:             * @return javax.swing.JPanel
0839:             */
0840:            JPanel getPageSetupPanel() {
0841:                if (pageSetupPanel == null) {
0842:                    GridBagConstraints gridBagConstraints22 = new GridBagConstraints();
0843:                    pageSetupPanel = new JPanel();
0844:                    GridBagConstraints gridBagConstraints191 = new GridBagConstraints();
0845:                    GridBagConstraints gridBagConstraints23 = new GridBagConstraints();
0846:                    pageSetupPanel.setLayout(new GridBagLayout());
0847:                    pageSetupPanel.setPreferredSize(new java.awt.Dimension(
0848:                            1047, 190));
0849:                    gridBagConstraints191.gridx = 0;
0850:                    gridBagConstraints191.gridy = 1;
0851:                    gridBagConstraints191.anchor = java.awt.GridBagConstraints.WEST;
0852:                    gridBagConstraints191.insets = new java.awt.Insets(5, 5, 5,
0853:                            5);
0854:                    gridBagConstraints23.gridx = 1;
0855:                    gridBagConstraints23.gridy = 1;
0856:                    gridBagConstraints23.insets = new java.awt.Insets(5, 5, 5,
0857:                            5);
0858:                    gridBagConstraints23.anchor = java.awt.GridBagConstraints.EAST;
0859:                    gridBagConstraints22.gridx = 0;
0860:                    gridBagConstraints22.gridy = 0;
0861:                    gridBagConstraints22.gridwidth = 3;
0862:                    gridBagConstraints22.anchor = java.awt.GridBagConstraints.CENTER;
0863:                    gridBagConstraints22.insets = new java.awt.Insets(5, 0, 5,
0864:                            0);
0865:                    pageSetupPanel.add(getOrientationPanel(),
0866:                            gridBagConstraints191);
0867:                    pageSetupPanel.add(getMarginsPanel(), gridBagConstraints23);
0868:                    pageSetupPanel.add(getPageSetupMediaPanel(),
0869:                            gridBagConstraints22);
0870:                }
0871:                return pageSetupPanel;
0872:            }
0873:
0874:            /**
0875:             * This method initializes jPanel
0876:             * 
0877:             * @return javax.swing.JPanel
0878:             */
0879:            private JPanel getColorPanel() {
0880:                if (colorPanel == null) {
0881:                    colorPanel = new JPanel();
0882:                    GridBagConstraints gridBagConstraints32 = new GridBagConstraints();
0883:                    GridBagConstraints gridBagConstraints43 = new GridBagConstraints();
0884:                    colorPanel.setLayout(new GridBagLayout());
0885:                    colorPanel.setBorder(BorderFactory.createTitledBorder(null,
0886:                            "Color Appearance",
0887:                            TitledBorder.DEFAULT_JUSTIFICATION,
0888:                            TitledBorder.DEFAULT_POSITION, null, null));
0889:                    colorPanel
0890:                            .setPreferredSize(new java.awt.Dimension(185, 144));
0891:                    gridBagConstraints32.gridx = 0;
0892:                    gridBagConstraints32.gridy = 0;
0893:                    gridBagConstraints32.anchor = java.awt.GridBagConstraints.WEST;
0894:                    gridBagConstraints32.insets = new java.awt.Insets(9, 7, 9,
0895:                            7);
0896:                    gridBagConstraints43.gridx = 0;
0897:                    gridBagConstraints43.gridy = 1;
0898:                    gridBagConstraints43.anchor = java.awt.GridBagConstraints.WEST;
0899:                    gridBagConstraints43.insets = new java.awt.Insets(9, 7, 9,
0900:                            7);
0901:                    colorPanel.add(getmonoBtn(), gridBagConstraints32);
0902:                    colorPanel.add(getcolorBtn(), gridBagConstraints43);
0903:                }
0904:                return colorPanel;
0905:            }
0906:
0907:            /**
0908:             * This method initializes jRadioButton
0909:             * 
0910:             * @return javax.swing.JRadioButton
0911:             */
0912:            private JRadioButton getmonoBtn() {
0913:                if (monoBtn == null) {
0914:                    monoBtn = new JRadioButton();
0915:                    monoBtn.setText("Monochrome");
0916:                    monoBtn.setMnemonic('M');
0917:                }
0918:                return monoBtn;
0919:            }
0920:
0921:            /**
0922:             * This method initializes jRadioButton
0923:             * 
0924:             * @return javax.swing.JRadioButton
0925:             */
0926:            private JRadioButton getcolorBtn() {
0927:                if (colorBtn == null) {
0928:                    colorBtn = new JRadioButton();
0929:                    colorBtn.setText("Color");
0930:                    colorBtn.setMnemonic('L');
0931:                }
0932:                return colorBtn;
0933:            }
0934:
0935:            /**
0936:             * This method initializes jPanel
0937:             * 
0938:             * @return javax.swing.JPanel
0939:             */
0940:            private JPanel getQualityPanel() {
0941:                if (qualityPanel == null) {
0942:                    qualityPanel = new JPanel();
0943:                    GridBagConstraints gridBagConstraints61 = new GridBagConstraints();
0944:                    GridBagConstraints gridBagConstraints72 = new GridBagConstraints();
0945:                    GridBagConstraints gridBagConstraints82 = new GridBagConstraints();
0946:                    qualityPanel.setLayout(new GridBagLayout());
0947:                    qualityPanel.setBorder(BorderFactory.createTitledBorder(
0948:                            null, "Quality",
0949:                            TitledBorder.DEFAULT_JUSTIFICATION,
0950:                            TitledBorder.DEFAULT_POSITION, null, null));
0951:                    qualityPanel.setPreferredSize(new java.awt.Dimension(310,
0952:                            144));
0953:                    gridBagConstraints61.gridx = 1;
0954:                    gridBagConstraints61.gridy = 0;
0955:                    gridBagConstraints61.insets = new java.awt.Insets(9, 0, 9,
0956:                            0);
0957:                    gridBagConstraints61.anchor = java.awt.GridBagConstraints.WEST;
0958:                    gridBagConstraints72.gridx = 1;
0959:                    gridBagConstraints72.gridy = 1;
0960:                    gridBagConstraints72.anchor = java.awt.GridBagConstraints.WEST;
0961:                    gridBagConstraints72.insets = new java.awt.Insets(9, 0, 9,
0962:                            0);
0963:                    gridBagConstraints82.gridx = 1;
0964:                    gridBagConstraints82.gridy = 2;
0965:                    gridBagConstraints82.anchor = java.awt.GridBagConstraints.WEST;
0966:                    gridBagConstraints82.insets = new java.awt.Insets(9, 0, 9,
0967:                            0);
0968:                    qualityPanel.add(getdraftBtn(), gridBagConstraints61);
0969:                    qualityPanel.add(getnormalBtn(), gridBagConstraints72);
0970:                    qualityPanel.add(gethighBtn(), gridBagConstraints82);
0971:                }
0972:                return qualityPanel;
0973:            }
0974:
0975:            /**
0976:             * This method initializes jRadioButton
0977:             * 
0978:             * @return javax.swing.JRadioButton
0979:             */
0980:            private JRadioButton getdraftBtn() {
0981:                if (draftBtn == null) {
0982:                    draftBtn = new JRadioButton();
0983:                    draftBtn.setText("Draft");
0984:                    draftBtn.setMnemonic('F');
0985:                }
0986:                return draftBtn;
0987:            }
0988:
0989:            /**
0990:             * This method initializes jRadioButton
0991:             * 
0992:             * @return javax.swing.JRadioButton
0993:             */
0994:            private JRadioButton getnormalBtn() {
0995:                if (normalBtn == null) {
0996:                    normalBtn = new JRadioButton();
0997:                    normalBtn.setText("Normal");
0998:                    normalBtn.setMnemonic('N');
0999:                }
1000:                return normalBtn;
1001:            }
1002:
1003:            /**
1004:             * This method initializes jRadioButton
1005:             * 
1006:             * @return javax.swing.JRadioButton
1007:             */
1008:            private JRadioButton gethighBtn() {
1009:                if (highBtn == null) {
1010:                    highBtn = new JRadioButton();
1011:                    highBtn.setText("Hight");
1012:                    highBtn.setMnemonic('H');
1013:                }
1014:                return highBtn;
1015:            }
1016:
1017:            /**
1018:             * This method initializes jPanel
1019:             * 
1020:             * @return javax.swing.JPanel
1021:             */
1022:            private JPanel getSidesPanel() {
1023:                if (sidesPanel == null) {
1024:                    sidesPanel = new JPanel();
1025:                    GridBagConstraints gridBagConstraints102 = new GridBagConstraints();
1026:                    GridBagConstraints gridBagConstraints112 = new GridBagConstraints();
1027:                    GridBagConstraints gridBagConstraints122 = new GridBagConstraints();
1028:                    sidesPanel.setLayout(new GridBagLayout());
1029:                    sidesPanel.setBorder(BorderFactory.createTitledBorder(null,
1030:                            "Sides", TitledBorder.DEFAULT_JUSTIFICATION,
1031:                            TitledBorder.DEFAULT_POSITION, null, null));
1032:                    sidesPanel
1033:                            .setPreferredSize(new java.awt.Dimension(185, 144));
1034:                    gridBagConstraints102.gridx = 1;
1035:                    gridBagConstraints102.gridy = 0;
1036:                    gridBagConstraints102.insets = new java.awt.Insets(9, 0, 9,
1037:                            0);
1038:                    gridBagConstraints102.anchor = java.awt.GridBagConstraints.WEST;
1039:                    gridBagConstraints112.gridx = 1;
1040:                    gridBagConstraints112.gridy = 1;
1041:                    gridBagConstraints112.anchor = java.awt.GridBagConstraints.WEST;
1042:                    gridBagConstraints112.insets = new java.awt.Insets(9, 0, 9,
1043:                            0);
1044:                    gridBagConstraints122.gridx = 1;
1045:                    gridBagConstraints122.gridy = 2;
1046:                    gridBagConstraints122.anchor = java.awt.GridBagConstraints.WEST;
1047:                    gridBagConstraints122.insets = new java.awt.Insets(9, 0, 9,
1048:                            0);
1049:                    sidesPanel.add(getoneSideBtn(), gridBagConstraints102);
1050:                    sidesPanel.add(gettumbleBtn(), gridBagConstraints112);
1051:                    sidesPanel.add(getduplexBtn(), gridBagConstraints122);
1052:                }
1053:                return sidesPanel;
1054:            }
1055:
1056:            /**
1057:             * This method initializes jRadioButton
1058:             * 
1059:             * @return javax.swing.JRadioButton
1060:             */
1061:            private JRadioButton getoneSideBtn() {
1062:                if (oneSideBtn == null) {
1063:                    oneSideBtn = new JRadioButton();
1064:                    oneSideBtn.setText("One Side");
1065:                    oneSideBtn.setMnemonic('O');
1066:                }
1067:                return oneSideBtn;
1068:            }
1069:
1070:            /**
1071:             * This method initializes jRadioButton
1072:             * 
1073:             * @return javax.swing.JRadioButton
1074:             */
1075:            private JRadioButton gettumbleBtn() {
1076:                if (tumbleBtn == null) {
1077:                    tumbleBtn = new JRadioButton();
1078:                    tumbleBtn.setText("Tumble");
1079:                    tumbleBtn.setMnemonic('T');
1080:                }
1081:                return tumbleBtn;
1082:            }
1083:
1084:            /**
1085:             * This method initializes jRadioButton
1086:             * 
1087:             * @return javax.swing.JRadioButton
1088:             */
1089:            private JRadioButton getduplexBtn() {
1090:                if (duplexBtn == null) {
1091:                    duplexBtn = new JRadioButton();
1092:                    duplexBtn.setText("Duplex");
1093:                    duplexBtn.setMnemonic('D');
1094:                }
1095:                return duplexBtn;
1096:            }
1097:
1098:            /**
1099:             * This method initializes jPanel
1100:             * 
1101:             * @return javax.swing.JPanel
1102:             */
1103:            private JPanel getJobAttributesPanel() {
1104:                if (jobAttributesPanel == null) {
1105:                    jobAttributesPanel = new JPanel();
1106:                    userNameLabel = new JLabel();
1107:                    jobNameLabel = new JLabel();
1108:                    priorityLabel = new JLabel();
1109:                    GridBagConstraints gridBagConstraints132 = new GridBagConstraints();
1110:                    GridBagConstraints gridBagConstraints142 = new GridBagConstraints();
1111:                    GridBagConstraints gridBagConstraints152 = new GridBagConstraints();
1112:                    GridBagConstraints gridBagConstraints162 = new GridBagConstraints();
1113:                    GridBagConstraints gridBagConstraints171 = new GridBagConstraints();
1114:                    GridBagConstraints gridBagConstraints181 = new GridBagConstraints();
1115:                    GridBagConstraints gridBagConstraints192 = new GridBagConstraints();
1116:                    jobAttributesPanel.setLayout(new GridBagLayout());
1117:                    jobAttributesPanel.setBorder(BorderFactory
1118:                            .createTitledBorder(null, "Job Attributes",
1119:                                    TitledBorder.DEFAULT_JUSTIFICATION,
1120:                                    TitledBorder.DEFAULT_POSITION, null, null));
1121:                    jobAttributesPanel
1122:                            .setPreferredSize(new Dimension(310, 144));
1123:                    gridBagConstraints132.gridx = 0;
1124:                    gridBagConstraints132.gridy = 0;
1125:                    gridBagConstraints142.gridx = 1;
1126:                    gridBagConstraints142.gridy = 0;
1127:                    priorityLabel.setText("Priority");
1128:                    gridBagConstraints152.gridx = 2;
1129:                    gridBagConstraints152.gridy = 0;
1130:                    gridBagConstraints152.weightx = 1.0;
1131:                    gridBagConstraints152.fill = java.awt.GridBagConstraints.HORIZONTAL;
1132:                    gridBagConstraints162.gridx = 1;
1133:                    gridBagConstraints162.gridy = 1;
1134:                    gridBagConstraints162.weightx = 1.0;
1135:                    gridBagConstraints162.fill = java.awt.GridBagConstraints.HORIZONTAL;
1136:                    gridBagConstraints171.gridx = 0;
1137:                    gridBagConstraints171.gridy = 1;
1138:                    jobNameLabel.setText("Job Name:");
1139:                    gridBagConstraints181.gridx = 0;
1140:                    gridBagConstraints181.gridy = 2;
1141:                    userNameLabel.setText("User Name:");
1142:                    gridBagConstraints192.gridx = 1;
1143:                    gridBagConstraints192.gridy = 2;
1144:                    gridBagConstraints192.weightx = 1.0;
1145:                    gridBagConstraints192.fill = java.awt.GridBagConstraints.HORIZONTAL;
1146:                    gridBagConstraints192.insets = new java.awt.Insets(9, 0, 9,
1147:                            0);
1148:                    gridBagConstraints192.gridwidth = 2;
1149:                    gridBagConstraints132.insets = new java.awt.Insets(9, 0, 9,
1150:                            0);
1151:                    gridBagConstraints171.insets = new java.awt.Insets(9, 0, 9,
1152:                            0);
1153:                    gridBagConstraints171.anchor = java.awt.GridBagConstraints.WEST;
1154:                    gridBagConstraints181.insets = new java.awt.Insets(9, 0, 9,
1155:                            0);
1156:                    gridBagConstraints181.anchor = java.awt.GridBagConstraints.WEST;
1157:                    gridBagConstraints142.insets = new java.awt.Insets(9, 7, 9,
1158:                            7);
1159:                    gridBagConstraints152.insets = new java.awt.Insets(9, 0, 9,
1160:                            0);
1161:                    gridBagConstraints162.insets = new java.awt.Insets(9, 0, 9,
1162:                            0);
1163:                    gridBagConstraints162.gridwidth = 2;
1164:                    jobAttributesPanel.add(getBannerBox(),
1165:                            gridBagConstraints132);
1166:                    jobAttributesPanel
1167:                            .add(priorityLabel, gridBagConstraints142);
1168:                    jobAttributesPanel.add(getprtSpinner(),
1169:                            gridBagConstraints152);
1170:                    jobAttributesPanel.add(getJobNameTxt(),
1171:                            gridBagConstraints162);
1172:                    jobAttributesPanel.add(jobNameLabel, gridBagConstraints171);
1173:                    jobAttributesPanel
1174:                            .add(userNameLabel, gridBagConstraints181);
1175:                    jobAttributesPanel.add(getUserNameTxt(),
1176:                            gridBagConstraints192);
1177:                }
1178:                return jobAttributesPanel;
1179:            }
1180:
1181:            /**
1182:             * This method initializes jCheckBox
1183:             * 
1184:             * @return javax.swing.JCheckBox
1185:             */
1186:            private JCheckBox getBannerBox() {
1187:                if (bannerBox == null) {
1188:                    bannerBox = new JCheckBox();
1189:                    bannerBox.setText("Banner Page");
1190:                    bannerBox.setMnemonic('B');
1191:                }
1192:                return bannerBox;
1193:            }
1194:
1195:            /**
1196:             * This method initializes JTextField1
1197:             * 
1198:             * @return javax.swing.JTextField
1199:             */
1200:            private JSpinner getprtSpinner() {
1201:                if (prtSpinner == null) {
1202:                    prtSpinner = new JSpinner();
1203:                    priorityLabel.setLabelFor(prtSpinner);
1204:                    priorityLabel.setDisplayedMnemonic('R');
1205:                }
1206:                return prtSpinner;
1207:            }
1208:
1209:            /**
1210:             * This method initializes JTextField1
1211:             * 
1212:             * @return javax.swing.JTextField
1213:             */
1214:            private JTextField getJobNameTxt() {
1215:                if (jobNameTxt == null) {
1216:                    jobNameTxt = new JTextField();
1217:                    jobNameTxt.setText("");
1218:                    jobNameLabel.setLabelFor(jobNameTxt);
1219:                    jobNameLabel.setDisplayedMnemonic('J');
1220:                }
1221:                return jobNameTxt;
1222:            }
1223:
1224:            /**
1225:             * This method initializes JTextField1
1226:             * 
1227:             * @return javax.swing.JTextField
1228:             */
1229:            private JTextField getUserNameTxt() {
1230:                if (userNameTxt == null) {
1231:                    userNameTxt = new JTextField();
1232:                    userNameLabel.setLabelFor(userNameTxt);
1233:                    userNameLabel.setDisplayedMnemonic('U');
1234:                }
1235:                return userNameTxt;
1236:            }
1237:
1238:            /**
1239:             * This method initializes jPanel
1240:             * 
1241:             * @return javax.swing.JPanel
1242:             */
1243:            private JPanel getAppearancePanel() {
1244:                if (appearancePanel == null) {
1245:                    appearancePanel = new JPanel();
1246:                    GridBagConstraints gridBagConstraints110 = new GridBagConstraints();
1247:                    GridBagConstraints gridBagConstraints24 = new GridBagConstraints();
1248:                    GridBagConstraints gridBagConstraints33 = new GridBagConstraints();
1249:                    GridBagConstraints gridBagConstraints44 = new GridBagConstraints();
1250:                    appearancePanel.setLayout(new GridBagLayout());
1251:                    gridBagConstraints110.gridx = 0;
1252:                    gridBagConstraints110.gridy = 0;
1253:                    gridBagConstraints110.insets = new java.awt.Insets(5, 5, 5,
1254:                            5);
1255:                    gridBagConstraints24.gridx = 1;
1256:                    gridBagConstraints24.gridy = 0;
1257:                    gridBagConstraints24.insets = new java.awt.Insets(5, 5, 5,
1258:                            5);
1259:                    gridBagConstraints33.gridx = 0;
1260:                    gridBagConstraints33.gridy = 1;
1261:                    gridBagConstraints33.insets = new java.awt.Insets(5, 5, 5,
1262:                            5);
1263:                    gridBagConstraints44.gridx = 1;
1264:                    gridBagConstraints44.gridy = 1;
1265:                    gridBagConstraints44.insets = new java.awt.Insets(5, 5, 5,
1266:                            5);
1267:                    appearancePanel.add(getColorPanel(), gridBagConstraints110);
1268:                    appearancePanel
1269:                            .add(getQualityPanel(), gridBagConstraints24);
1270:                    appearancePanel.add(getSidesPanel(), gridBagConstraints33);
1271:                    appearancePanel.add(getJobAttributesPanel(),
1272:                            gridBagConstraints44);
1273:                }
1274:                return appearancePanel;
1275:            }
1276:
1277:            /**
1278:             * This method initializes jButton
1279:             * 
1280:             * @return javax.swing.JButton
1281:             */
1282:            private JButton getprintBtn() {
1283:                if (printBtn == null) {
1284:                    printBtn = new JButton();
1285:                    printBtn.setText("Print");
1286:                    printBtn.setMnemonic('P');
1287:                }
1288:                return printBtn;
1289:            }
1290:
1291:            /**
1292:             * This method initializes jButton
1293:             * 
1294:             * @return javax.swing.JButton
1295:             */
1296:            private JButton getcancelBtn() {
1297:                if (cancelBtn == null) {
1298:                    cancelBtn = new JButton();
1299:                    cancelBtn.setText("Cancel");
1300:                    cancelBtn.setMnemonic('C');
1301:                }
1302:                return cancelBtn;
1303:            }
1304:
1305:            /**
1306:             * This method initializes jDialog
1307:             * 
1308:             * @return javax.swing.JDialog
1309:             */
1310:            private JDialog getPrintDialog() {
1311:                if (printDialog == null) {
1312:                    printDialog = new JDialog();
1313:                    printDialog.setSize(542, 444);
1314:                    printDialog.setName("dialog");
1315:                    printDialog.setTitle("Print");
1316:                    printDialog.setContentPane(getDialogPanel());
1317:                }
1318:                return printDialog;
1319:            }
1320:
1321:            /**
1322:             * This method initializes jPanel
1323:             * 
1324:             * @return javax.swing.JPanel
1325:             */
1326:            private JPanel getDialogPanel() {
1327:                if (dialogPanel == null) {
1328:                    GridBagConstraints gridBagConstraints182 = new GridBagConstraints();
1329:                    GridBagConstraints gridBagConstraints172 = new GridBagConstraints();
1330:                    dialogPanel = new JPanel();
1331:                    dialogPanel.setLayout(new GridBagLayout());
1332:                    dialogPanel.setPreferredSize(new java.awt.Dimension(100,
1333:                            100));
1334:                    dialogPanel.setSize(532, 389);
1335:                    gridBagConstraints172.gridx = 0;
1336:                    gridBagConstraints172.gridy = 1;
1337:                    gridBagConstraints172.anchor = java.awt.GridBagConstraints.EAST;
1338:                    gridBagConstraints172.gridwidth = 3;
1339:                    gridBagConstraints182.gridx = 0;
1340:                    gridBagConstraints182.gridy = 0;
1341:                    gridBagConstraints182.weightx = 1.0;
1342:                    gridBagConstraints182.weighty = 1.0;
1343:                    gridBagConstraints182.fill = java.awt.GridBagConstraints.BOTH;
1344:                    dialogPanel.add(getButtonsPanel(), gridBagConstraints172);
1345:                    dialogPanel.add(getTabbedPane(), gridBagConstraints182);
1346:                }
1347:                return dialogPanel;
1348:            }
1349:
1350:            /**
1351:             * This method initializes jPanel
1352:             * 
1353:             * @return javax.swing.JPanel
1354:             */
1355:            JPanel getButtonsPanel() {
1356:                if (buttonsPanel == null) {
1357:                    buttonsPanel = new JPanel();
1358:                    GridBagConstraints gridBagConstraints143 = new GridBagConstraints();
1359:                    GridBagConstraints gridBagConstraints153 = new GridBagConstraints();
1360:                    buttonsPanel.setLayout(new GridBagLayout());
1361:                    gridBagConstraints143.gridx = 2;
1362:                    gridBagConstraints143.gridy = 0;
1363:                    gridBagConstraints143.anchor = java.awt.GridBagConstraints.EAST;
1364:                    gridBagConstraints143.insets = new java.awt.Insets(7, 7, 7,
1365:                            15);
1366:                    gridBagConstraints153.gridx = 1;
1367:                    gridBagConstraints153.gridy = 0;
1368:                    gridBagConstraints153.anchor = java.awt.GridBagConstraints.EAST;
1369:                    gridBagConstraints153.insets = new java.awt.Insets(7, 7, 7,
1370:                            0);
1371:                    buttonsPanel.setBorder(BorderFactory.createEmptyBorder(0,
1372:                            0, 0, 0));
1373:                    buttonsPanel.setPreferredSize(new java.awt.Dimension(170,
1374:                            40));
1375:                    buttonsPanel.add(getcancelBtn(), gridBagConstraints143);
1376:                    buttonsPanel.add(getprintBtn(), gridBagConstraints153);
1377:                }
1378:                return buttonsPanel;
1379:            }
1380:
1381:            private JPanel getVendorSuppliedPanel() {
1382:                if (vendorSuppliedPanel == null) {
1383:                    vendorSuppliedPanel = new JPanel();
1384:                }
1385:                return vendorSuppliedPanel;
1386:            }
1387:
1388:            JPanel getPanel() {
1389:                return getDialogPanel();
1390:            }
1391:
1392:        } /* End of ServiceUIDialogTemplate class */
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.