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.java.ui;
043:
044: import static org.netbeans.modules.java.ui.FmtOptions.*;
045: import static org.netbeans.modules.java.ui.FmtOptions.CategorySupport.OPTION_ID;
046: import org.netbeans.modules.java.ui.FmtOptions.CategorySupport;
047:
048: /**
049: *
050: * @author phrebejk
051: */
052: public class FmtImports extends javax.swing.JPanel {
053:
054: /** Creates new form FmtImports */
055: public FmtImports() {
056: initComponents();
057: }
058:
059: public static FormatingOptionsPanel.Category getController() {
060: return new CategorySupport("LBL_Imports", new FmtImports(),
061: null); // NOI18N
062: }
063:
064: /** This method is called from within the constructor to
065: * initialize the form.
066: * WARNING: Do NOT modify this code. The content of this method is
067: * always regenerated by the Form Editor.
068: */
069: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
070: private void initComponents() {
071: java.awt.GridBagConstraints gridBagConstraints;
072:
073: jCheckBox1 = new javax.swing.JCheckBox();
074: jCheckBox2 = new javax.swing.JCheckBox();
075: jLabel1 = new javax.swing.JLabel();
076: jTextField1 = new javax.swing.JTextField();
077: jLabel2 = new javax.swing.JLabel();
078: jTextField2 = new javax.swing.JTextField();
079: jScrollPane1 = new javax.swing.JScrollPane();
080: jTable1 = new javax.swing.JTable();
081: jScrollPane2 = new javax.swing.JScrollPane();
082: jList1 = new javax.swing.JList();
083:
084: setLayout(new java.awt.GridBagLayout());
085:
086: org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1,
087: "jCheckBox1");
088: jCheckBox1.setBorder(javax.swing.BorderFactory
089: .createEmptyBorder(0, 0, 0, 0));
090: jCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));
091: gridBagConstraints = new java.awt.GridBagConstraints();
092: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
093: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
094: gridBagConstraints.insets = new java.awt.Insets(0, 0, 6, 0);
095: add(jCheckBox1, gridBagConstraints);
096:
097: org.openide.awt.Mnemonics.setLocalizedText(jCheckBox2,
098: "jCheckBox2");
099: jCheckBox2.setBorder(javax.swing.BorderFactory
100: .createEmptyBorder(0, 0, 0, 0));
101: jCheckBox2.setMargin(new java.awt.Insets(0, 0, 0, 0));
102: gridBagConstraints = new java.awt.GridBagConstraints();
103: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
104: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
105: gridBagConstraints.insets = new java.awt.Insets(0, 0, 6, 0);
106: add(jCheckBox2, gridBagConstraints);
107:
108: org.openide.awt.Mnemonics.setLocalizedText(jLabel1, "jLabel1");
109: gridBagConstraints = new java.awt.GridBagConstraints();
110: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
111: gridBagConstraints.insets = new java.awt.Insets(0, 0, 6, 0);
112: add(jLabel1, gridBagConstraints);
113:
114: jTextField1.setText("jTextField1");
115: gridBagConstraints = new java.awt.GridBagConstraints();
116: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
117: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
118: gridBagConstraints.insets = new java.awt.Insets(0, 4, 6, 0);
119: add(jTextField1, gridBagConstraints);
120:
121: org.openide.awt.Mnemonics.setLocalizedText(jLabel2, "jLabel2");
122: gridBagConstraints = new java.awt.GridBagConstraints();
123: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
124: gridBagConstraints.insets = new java.awt.Insets(0, 0, 6, 0);
125: add(jLabel2, gridBagConstraints);
126:
127: jTextField2.setText("jTextField2");
128: gridBagConstraints = new java.awt.GridBagConstraints();
129: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
130: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
131: gridBagConstraints.insets = new java.awt.Insets(0, 4, 6, 0);
132: add(jTextField2, gridBagConstraints);
133:
134: jTable1.setModel(new javax.swing.table.DefaultTableModel(
135: new Object[][] { { null, null, null, null },
136: { null, null, null, null },
137: { null, null, null, null },
138: { null, null, null, null } }, new String[] {
139: "Title 1", "Title 2", "Title 3", "Title 4" }));
140: jScrollPane1.setViewportView(jTable1);
141:
142: gridBagConstraints = new java.awt.GridBagConstraints();
143: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
144: gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
145: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
146: gridBagConstraints.weightx = 1.0;
147: gridBagConstraints.weighty = 1.0;
148: gridBagConstraints.insets = new java.awt.Insets(0, 0, 6, 0);
149: add(jScrollPane1, gridBagConstraints);
150:
151: jList1.setModel(new javax.swing.AbstractListModel() {
152: String[] strings = { "Item 1", "Item 2", "Item 3",
153: "Item 4", "Item 5" };
154:
155: public int getSize() {
156: return strings.length;
157: }
158:
159: public Object getElementAt(int i) {
160: return strings[i];
161: }
162: });
163: jScrollPane2.setViewportView(jList1);
164:
165: gridBagConstraints = new java.awt.GridBagConstraints();
166: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
167: gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
168: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
169: gridBagConstraints.weighty = 1.0;
170: add(jScrollPane2, gridBagConstraints);
171: }// </editor-fold>//GEN-END:initComponents
172:
173: // Variables declaration - do not modify//GEN-BEGIN:variables
174: private javax.swing.JCheckBox jCheckBox1;
175: private javax.swing.JCheckBox jCheckBox2;
176: private javax.swing.JLabel jLabel1;
177: private javax.swing.JLabel jLabel2;
178: private javax.swing.JList jList1;
179: private javax.swing.JScrollPane jScrollPane1;
180: private javax.swing.JScrollPane jScrollPane2;
181: private javax.swing.JTable jTable1;
182: private javax.swing.JTextField jTextField1;
183: private javax.swing.JTextField jTextField2;
184: // End of variables declaration//GEN-END:variables
185:
186: }
|