001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.versioning.system.cvss.ui.actions.project;
043:
044: /**
045: *
046: * @author Petr Kuzel
047: */
048: public class ImportPanel extends javax.swing.JPanel {
049:
050: /** Creates new form ImportPanel */
051: public ImportPanel() {
052: initComponents();
053: }
054:
055: /** This method is called from within the constructor to
056: * initialize the form.
057: * WARNING: Do NOT modify this code. The content of this method is
058: * always regenerated by the Form Editor.
059: */
060: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
061: private void initComponents() {
062: java.awt.GridBagConstraints gridBagConstraints;
063:
064: setLayout(new java.awt.GridBagLayout());
065:
066: setName(org.openide.util.NbBundle.getMessage(ImportPanel.class,
067: "BK0014"));
068: getAccessibleContext()
069: .setAccessibleDescription(
070: java.util.ResourceBundle
071: .getBundle(
072: "org/netbeans/modules/versioning/system/cvss/ui/actions/project/Bundle")
073: .getString("ACSD_ImportPanel"));
074: org.openide.awt.Mnemonics.setLocalizedText(jLabel4,
075: org.openide.util.NbBundle.getMessage(ImportPanel.class,
076: "BK1012"));
077: gridBagConstraints = new java.awt.GridBagConstraints();
078: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
079: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
080: gridBagConstraints.insets = new java.awt.Insets(0, 0, 3, 0);
081: add(jLabel4, gridBagConstraints);
082:
083: jLabel3.setLabelFor(folderTextField);
084: org.openide.awt.Mnemonics.setLocalizedText(jLabel3,
085: org.openide.util.NbBundle.getMessage(ImportPanel.class,
086: "BK1104"));
087: jLabel3
088: .setToolTipText(java.util.ResourceBundle
089: .getBundle(
090: "org/netbeans/modules/versioning/system/cvss/ui/actions/project/Bundle")
091: .getString("TT_FolderToImport"));
092: gridBagConstraints = new java.awt.GridBagConstraints();
093: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
094: gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 3);
095: add(jLabel3, gridBagConstraints);
096:
097: gridBagConstraints = new java.awt.GridBagConstraints();
098: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
099: gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
100: add(folderTextField, gridBagConstraints);
101:
102: org.openide.awt.Mnemonics.setLocalizedText(folderButton,
103: org.openide.util.NbBundle.getMessage(ImportPanel.class,
104: "BK1020"));
105: folderButton
106: .setToolTipText(java.util.ResourceBundle
107: .getBundle(
108: "org/netbeans/modules/versioning/system/cvss/ui/actions/project/Bundle")
109: .getString("TT_BrowseFolder"));
110: gridBagConstraints = new java.awt.GridBagConstraints();
111: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
112: gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 0);
113: add(folderButton, gridBagConstraints);
114:
115: jLabel1.setLabelFor(commentTextArea);
116: org.openide.awt.Mnemonics.setLocalizedText(jLabel1,
117: org.openide.util.NbBundle.getMessage(ImportPanel.class,
118: "BK0001"));
119: jLabel1
120: .setToolTipText(java.util.ResourceBundle
121: .getBundle(
122: "org/netbeans/modules/versioning/system/cvss/ui/actions/project/Bundle")
123: .getString("TT_ImportMessage"));
124: gridBagConstraints = new java.awt.GridBagConstraints();
125: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
126: gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 3);
127: add(jLabel1, gridBagConstraints);
128:
129: commentTextArea.setColumns(40);
130: commentTextArea.setRows(8);
131: commentScrollPane.setViewportView(commentTextArea);
132:
133: gridBagConstraints = new java.awt.GridBagConstraints();
134: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
135: gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
136: gridBagConstraints.weightx = 1.0;
137: gridBagConstraints.weighty = 1.0;
138: gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 0);
139: add(commentScrollPane, gridBagConstraints);
140:
141: org.openide.awt.Mnemonics.setLocalizedText(jLabel5,
142: org.openide.util.NbBundle.getMessage(ImportPanel.class,
143: "BK0013"));
144: gridBagConstraints = new java.awt.GridBagConstraints();
145: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
146: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
147: gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0);
148: add(jLabel5, gridBagConstraints);
149:
150: jLabel2.setLabelFor(moduleTextField);
151: org.openide.awt.Mnemonics.setLocalizedText(jLabel2,
152: org.openide.util.NbBundle.getMessage(ImportPanel.class,
153: "Bk0002"));
154: jLabel2
155: .setToolTipText(java.util.ResourceBundle
156: .getBundle(
157: "org/netbeans/modules/versioning/system/cvss/ui/actions/project/Bundle")
158: .getString("TT_RepositoryFolder"));
159: gridBagConstraints = new java.awt.GridBagConstraints();
160: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
161: gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 3);
162: add(jLabel2, gridBagConstraints);
163:
164: moduleTextField.setColumns(40);
165: gridBagConstraints = new java.awt.GridBagConstraints();
166: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
167: gridBagConstraints.weightx = 1.0;
168: gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
169: add(moduleTextField, gridBagConstraints);
170:
171: org.openide.awt.Mnemonics.setLocalizedText(moduleButton,
172: org.openide.util.NbBundle.getMessage(ImportPanel.class,
173: "BK1016"));
174: moduleButton
175: .setToolTipText(java.util.ResourceBundle
176: .getBundle(
177: "org/netbeans/modules/versioning/system/cvss/ui/actions/project/Bundle")
178: .getString("TT_BrowseRepository"));
179: gridBagConstraints = new java.awt.GridBagConstraints();
180: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
181: gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 0);
182: add(moduleButton, gridBagConstraints);
183:
184: checkoutCheckBox.setSelected(true);
185: org.openide.awt.Mnemonics.setLocalizedText(checkoutCheckBox,
186: org.openide.util.NbBundle.getMessage(ImportPanel.class,
187: "BK0011"));
188: checkoutCheckBox
189: .setToolTipText(java.util.ResourceBundle
190: .getBundle(
191: "org/netbeans/modules/versioning/system/cvss/ui/actions/project/Bundle")
192: .getString("TT_Checkout"));
193: checkoutCheckBox.setBorder(javax.swing.BorderFactory
194: .createEmptyBorder(0, 0, 0, 0));
195: checkoutCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
196: gridBagConstraints = new java.awt.GridBagConstraints();
197: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
198: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
199: gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0);
200: add(checkoutCheckBox, gridBagConstraints);
201:
202: }
203:
204: // </editor-fold>//GEN-END:initComponents
205:
206: // Variables declaration - do not modify//GEN-BEGIN:variables
207: final javax.swing.JCheckBox checkoutCheckBox = new javax.swing.JCheckBox();
208: final javax.swing.JScrollPane commentScrollPane = new javax.swing.JScrollPane();
209: final org.netbeans.modules.versioning.system.cvss.ui.components.KTextArea commentTextArea = new org.netbeans.modules.versioning.system.cvss.ui.components.KTextArea();
210: final javax.swing.JButton folderButton = new javax.swing.JButton();
211: final javax.swing.JTextField folderTextField = new javax.swing.JTextField();
212: final javax.swing.JLabel jLabel1 = new javax.swing.JLabel();
213: final javax.swing.JLabel jLabel2 = new javax.swing.JLabel();
214: final javax.swing.JLabel jLabel3 = new javax.swing.JLabel();
215: final javax.swing.JLabel jLabel4 = new javax.swing.JLabel();
216: final javax.swing.JLabel jLabel5 = new javax.swing.JLabel();
217: final javax.swing.JButton moduleButton = new javax.swing.JButton();
218: final javax.swing.JTextField moduleTextField = new javax.swing.JTextField();
219: // End of variables declaration//GEN-END:variables
220:
221: }
|