KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > javacore > UndoProgressPanel


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.modules.javacore;
20
21 import java.awt.BorderLayout JavaDoc;
22 import javax.swing.JComponent JavaDoc;
23 import org.netbeans.api.progress.ProgressHandle;
24 import org.netbeans.api.progress.ProgressHandleFactory;
25 import org.openide.util.NbBundle;
26
27 /**
28  *
29  * @author Jan Becicka
30  */

31 public class UndoProgressPanel extends javax.swing.JPanel JavaDoc {
32     final ProgressHandle progress;
33
34     /** Creates new form UndoProgressPanel */
35     public UndoProgressPanel() {
36         initComponents();
37         progress = ProgressHandleFactory.createHandle(NbBundle.getMessage(UndoProgressPanel.class, "LBL_UndoProgressLabel")); // NOI18N
38
add(ProgressHandleFactory.createProgressComponent(progress), BorderLayout.CENTER);
39     }
40     
41     /** This method is called from within the constructor to
42      * initialize the form.
43      * WARNING: Do NOT modify this code. The content of this method is
44      * always regenerated by the Form Editor.
45      */

46     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
47
private void initComponents() {
48         undoLabel = new javax.swing.JLabel JavaDoc();
49
50         setLayout(new java.awt.BorderLayout JavaDoc());
51
52         setBorder(new javax.swing.border.EmptyBorder JavaDoc(new java.awt.Insets JavaDoc(12, 12, 11, 11)));
53         undoLabel.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/javacore/Bundle").getString("LBL_UndoProgressLabel"));
54         undoLabel.setBorder(new javax.swing.border.EmptyBorder JavaDoc(new java.awt.Insets JavaDoc(1, 1, 6, 1)));
55         add(undoLabel, java.awt.BorderLayout.NORTH);
56
57     }
58     // </editor-fold>//GEN-END:initComponents
59

60     
61     // Variables declaration - do not modify//GEN-BEGIN:variables
62
private javax.swing.JLabel JavaDoc undoLabel;
63     // End of variables declaration//GEN-END:variables
64

65 }
66
Popular Tags