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: package org.netbeans.modules.localhistory.options;
042:
043: /**
044: *
045: * @author Tomas Stupka
046: */
047: public class LocalHistoryOptionsPanel extends javax.swing.JPanel {
048:
049: /** Creates new form SvnOptionsPanel */
050: public LocalHistoryOptionsPanel() {
051: initComponents();
052: }
053:
054: /** This method is called from within the constructor to
055: * initialize the form.
056: * WARNING: Do NOT modify this code. The content of this method is
057: * always regenerated by the Form Editor.
058: */
059: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
060: private void initComponents() {
061:
062: jLabel1 = new javax.swing.JLabel();
063: jLabel3 = new javax.swing.JLabel();
064:
065: jLabel1.setLabelFor(daysTextField);
066: org.openide.awt.Mnemonics.setLocalizedText(jLabel1,
067: org.openide.util.NbBundle.getMessage(
068: LocalHistoryOptionsPanel.class,
069: "LocalHistoryOptionsPanel.jLabel1.text")); // NOI18N
070:
071: daysTextField.setText(org.openide.util.NbBundle.getMessage(
072: LocalHistoryOptionsPanel.class,
073: "LocalHistoryOptionsPanel.daysTextField.text")); // NOI18N
074:
075: jLabel3.setText(org.openide.util.NbBundle.getMessage(
076: LocalHistoryOptionsPanel.class,
077: "LocalHistoryOptionsPanel.jLabel3.text")); // NOI18N
078:
079: org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
080: this );
081: this .setLayout(layout);
082: layout
083: .setHorizontalGroup(layout
084: .createParallelGroup(
085: org.jdesktop.layout.GroupLayout.LEADING)
086: .add(
087: layout
088: .createSequentialGroup()
089: .addContainerGap()
090: .add(jLabel1)
091: .addPreferredGap(
092: org.jdesktop.layout.LayoutStyle.RELATED)
093: .add(
094: daysTextField,
095: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
096: 40,
097: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
098: .addPreferredGap(
099: org.jdesktop.layout.LayoutStyle.RELATED)
100: .add(jLabel3).addContainerGap(
101: 21, Short.MAX_VALUE)));
102: layout
103: .setVerticalGroup(layout
104: .createParallelGroup(
105: org.jdesktop.layout.GroupLayout.LEADING)
106: .add(
107: layout
108: .createSequentialGroup()
109: .addContainerGap()
110: .add(
111: layout
112: .createParallelGroup(
113: org.jdesktop.layout.GroupLayout.BASELINE)
114: .add(jLabel1)
115: .add(
116: daysTextField,
117: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
118: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
119: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
120: .add(jLabel3))
121: .addContainerGap(
122: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
123: Short.MAX_VALUE)));
124:
125: daysTextField
126: .getAccessibleContext()
127: .setAccessibleName(
128: org.openide.util.NbBundle
129: .getMessage(
130: LocalHistoryOptionsPanel.class,
131: "ACSN_LocalHistoryOptionsPanel.daysTextField.text")); // NOI18N
132: daysTextField
133: .getAccessibleContext()
134: .setAccessibleDescription(
135: org.openide.util.NbBundle
136: .getMessage(
137: LocalHistoryOptionsPanel.class,
138: "ACSD_LocalHistoryOptionsPanel.daysTextField.text")); // NOI18N
139: }// </editor-fold>//GEN-END:initComponents
140:
141: // Variables declaration - do not modify//GEN-BEGIN:variables
142: final javax.swing.JTextField daysTextField = new javax.swing.JTextField();
143: private javax.swing.JLabel jLabel1;
144: private javax.swing.JLabel jLabel3;
145: // End of variables declaration//GEN-END:variables
146:
147: }
|