1 19 package org.netbeans.modules.javacore; 20 21 import java.awt.BorderLayout ; 22 import javax.swing.JComponent ; 23 import org.netbeans.api.progress.ProgressHandle; 24 import org.netbeans.api.progress.ProgressHandleFactory; 25 import org.openide.util.NbBundle; 26 27 31 public class UndoProgressPanel extends javax.swing.JPanel { 32 final ProgressHandle progress; 33 34 35 public UndoProgressPanel() { 36 initComponents(); 37 progress = ProgressHandleFactory.createHandle(NbBundle.getMessage(UndoProgressPanel.class, "LBL_UndoProgressLabel")); add(ProgressHandleFactory.createProgressComponent(progress), BorderLayout.CENTER); 39 } 40 41 46 private void initComponents() { 48 undoLabel = new javax.swing.JLabel (); 49 50 setLayout(new java.awt.BorderLayout ()); 51 52 setBorder(new javax.swing.border.EmptyBorder (new java.awt.Insets (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 (new java.awt.Insets (1, 1, 6, 1))); 55 add(undoLabel, java.awt.BorderLayout.NORTH); 56 57 } 58 60 61 private javax.swing.JLabel undoLabel; 63 65 } 66 | Popular Tags |