Source Code Cross Referenced for DocumentEditorAboutBox.java in  » IDE-Netbeans » java » DocumentEditor » 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 » IDE Netbeans » java » DocumentEditor 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (c) 2007, Sun Microsystems, Inc.
003:         * All rights reserved.
004:         * 
005:         * Redistribution and use in source and binary forms, with or without 
006:         * modification, are permitted provided that the following conditions are met:
007:         * 
008:         *  * Redistributions of source code must retain the above copyright notice, 
009:         *    this list of conditions and the following disclaimer.
010:         *  * Redistributions in binary form must reproduce the above copyright 
011:         *    notice, this list of conditions and the following disclaimer in 
012:         *    the documentation and/or other materials provided with the distribution.
013:         *  * Neither the name of Sun Microsystems, Inc. nor the names of its 
014:         *    contributors may be used to endorse or promote products derived 
015:         *    from this software without specific prior written permission.
016:         *
017:         * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
018:         * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
019:         * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
020:         * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
021:         * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
022:         * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 
023:         * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
024:         * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
025:         * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
026:         * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
027:         * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
028:         */
029:
030:        /*
031:         * DocumentEditorAboutBox.java
032:         */
033:
034:        package documenteditor;
035:
036:        import org.jdesktop.application.Action;
037:
038:        public class DocumentEditorAboutBox extends javax.swing.JDialog {
039:
040:            public DocumentEditorAboutBox(java.awt.Frame parent) {
041:                super (parent);
042:                initComponents();
043:                getRootPane().setDefaultButton(closeButton);
044:            }
045:
046:            @Action
047:            public void closeAboutBox() {
048:                setVisible(false);
049:            }
050:
051:            /** This method is called from within the constructor to
052:             * initialize the form.
053:             * WARNING: Do NOT modify this code. The content of this method is
054:             * always regenerated by the Form Editor.
055:             */
056:            // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
057:            private void initComponents() {
058:
059:                closeButton = new javax.swing.JButton();
060:                javax.swing.JLabel appTitleLabel = new javax.swing.JLabel();
061:                javax.swing.JLabel versionLabel = new javax.swing.JLabel();
062:                javax.swing.JLabel appVersionLabel = new javax.swing.JLabel();
063:                javax.swing.JLabel vendorLabel = new javax.swing.JLabel();
064:                javax.swing.JLabel appVendorLabel = new javax.swing.JLabel();
065:                javax.swing.JLabel homepageLabel = new javax.swing.JLabel();
066:                javax.swing.JLabel appHomepageLabel = new javax.swing.JLabel();
067:                javax.swing.JLabel appDescLabel = new javax.swing.JLabel();
068:                javax.swing.JLabel imageLabel = new javax.swing.JLabel();
069:
070:                setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
071:                org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
072:                        .getInstance(documenteditor.DocumentEditorApp.class)
073:                        .getContext().getResourceMap(
074:                                DocumentEditorAboutBox.class);
075:                setTitle(resourceMap.getString("title")); // NOI18N
076:                setModal(true);
077:                setName("aboutBox"); // NOI18N
078:                setResizable(false);
079:
080:                javax.swing.ActionMap actionMap = org.jdesktop.application.Application
081:                        .getInstance(documenteditor.DocumentEditorApp.class)
082:                        .getContext().getActionMap(
083:                                DocumentEditorAboutBox.class, this );
084:                closeButton.setAction(actionMap.get("closeAboutBox")); // NOI18N
085:
086:                appTitleLabel.setFont(appTitleLabel.getFont()
087:                        .deriveFont(
088:                                appTitleLabel.getFont().getStyle()
089:                                        | java.awt.Font.BOLD,
090:                                appTitleLabel.getFont().getSize() + 4));
091:                appTitleLabel.setText(resourceMap
092:                        .getString("Application.title")); // NOI18N
093:
094:                versionLabel
095:                        .setFont(versionLabel.getFont().deriveFont(
096:                                versionLabel.getFont().getStyle()
097:                                        | java.awt.Font.BOLD));
098:                versionLabel
099:                        .setText(resourceMap.getString("versionLabel.text")); // NOI18N
100:
101:                appVersionLabel.setText(resourceMap
102:                        .getString("Application.version")); // NOI18N
103:
104:                vendorLabel.setFont(vendorLabel.getFont().deriveFont(
105:                        vendorLabel.getFont().getStyle() | java.awt.Font.BOLD));
106:                vendorLabel.setText(resourceMap.getString("vendorLabel.text")); // NOI18N
107:
108:                appVendorLabel.setText(resourceMap
109:                        .getString("Application.vendor")); // NOI18N
110:
111:                homepageLabel.setFont(homepageLabel.getFont()
112:                        .deriveFont(
113:                                homepageLabel.getFont().getStyle()
114:                                        | java.awt.Font.BOLD));
115:                homepageLabel.setText(resourceMap
116:                        .getString("homepageLabel.text")); // NOI18N
117:
118:                appHomepageLabel.setText(resourceMap
119:                        .getString("Application.homepage")); // NOI18N
120:
121:                appDescLabel
122:                        .setText(resourceMap.getString("appDescLabel.text")); // NOI18N
123:
124:                imageLabel.setIcon(resourceMap.getIcon("imageLabel.icon")); // NOI18N
125:
126:                org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
127:                        getContentPane());
128:                getContentPane().setLayout(layout);
129:                layout
130:                        .setHorizontalGroup(layout
131:                                .createParallelGroup(
132:                                        org.jdesktop.layout.GroupLayout.LEADING)
133:                                .add(
134:                                        layout
135:                                                .createSequentialGroup()
136:                                                .add(imageLabel)
137:                                                .add(18, 18, 18)
138:                                                .add(
139:                                                        layout
140:                                                                .createParallelGroup(
141:                                                                        org.jdesktop.layout.GroupLayout.TRAILING)
142:                                                                .add(
143:                                                                        org.jdesktop.layout.GroupLayout.LEADING,
144:                                                                        layout
145:                                                                                .createSequentialGroup()
146:                                                                                .add(
147:                                                                                        layout
148:                                                                                                .createParallelGroup(
149:                                                                                                        org.jdesktop.layout.GroupLayout.LEADING)
150:                                                                                                .add(
151:                                                                                                        versionLabel)
152:                                                                                                .add(
153:                                                                                                        vendorLabel)
154:                                                                                                .add(
155:                                                                                                        homepageLabel))
156:                                                                                .addPreferredGap(
157:                                                                                        org.jdesktop.layout.LayoutStyle.RELATED)
158:                                                                                .add(
159:                                                                                        layout
160:                                                                                                .createParallelGroup(
161:                                                                                                        org.jdesktop.layout.GroupLayout.LEADING)
162:                                                                                                .add(
163:                                                                                                        appVersionLabel)
164:                                                                                                .add(
165:                                                                                                        appVendorLabel)
166:                                                                                                .add(
167:                                                                                                        appHomepageLabel)))
168:                                                                .add(
169:                                                                        org.jdesktop.layout.GroupLayout.LEADING,
170:                                                                        appTitleLabel)
171:                                                                .add(
172:                                                                        org.jdesktop.layout.GroupLayout.LEADING,
173:                                                                        appDescLabel,
174:                                                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
175:                                                                        266,
176:                                                                        Short.MAX_VALUE)
177:                                                                .add(
178:                                                                        closeButton))
179:                                                .addContainerGap()));
180:                layout
181:                        .setVerticalGroup(layout
182:                                .createParallelGroup(
183:                                        org.jdesktop.layout.GroupLayout.LEADING)
184:                                .add(
185:                                        imageLabel,
186:                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
187:                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
188:                                        Short.MAX_VALUE)
189:                                .add(
190:                                        layout
191:                                                .createSequentialGroup()
192:                                                .addContainerGap()
193:                                                .add(appTitleLabel)
194:                                                .addPreferredGap(
195:                                                        org.jdesktop.layout.LayoutStyle.RELATED)
196:                                                .add(appDescLabel)
197:                                                .addPreferredGap(
198:                                                        org.jdesktop.layout.LayoutStyle.RELATED)
199:                                                .add(
200:                                                        layout
201:                                                                .createParallelGroup(
202:                                                                        org.jdesktop.layout.GroupLayout.BASELINE)
203:                                                                .add(
204:                                                                        versionLabel)
205:                                                                .add(
206:                                                                        appVersionLabel))
207:                                                .addPreferredGap(
208:                                                        org.jdesktop.layout.LayoutStyle.RELATED)
209:                                                .add(
210:                                                        layout
211:                                                                .createParallelGroup(
212:                                                                        org.jdesktop.layout.GroupLayout.BASELINE)
213:                                                                .add(
214:                                                                        vendorLabel)
215:                                                                .add(
216:                                                                        appVendorLabel))
217:                                                .addPreferredGap(
218:                                                        org.jdesktop.layout.LayoutStyle.RELATED)
219:                                                .add(
220:                                                        layout
221:                                                                .createParallelGroup(
222:                                                                        org.jdesktop.layout.GroupLayout.BASELINE)
223:                                                                .add(
224:                                                                        homepageLabel)
225:                                                                .add(
226:                                                                        appHomepageLabel))
227:                                                .add(19, 19, Short.MAX_VALUE)
228:                                                .add(closeButton)
229:                                                .addContainerGap()));
230:
231:                pack();
232:            }// </editor-fold>//GEN-END:initComponents
233:
234:            // Variables declaration - do not modify//GEN-BEGIN:variables
235:            private javax.swing.JButton closeButton;
236:            // End of variables declaration//GEN-END:variables
237:
238:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.