1 19 20 package org.netbeans.modules.db.explorer.dlg; 21 22 import java.awt.BorderLayout ; 23 import javax.swing.JComponent ; 24 import org.openide.util.NbBundle; 25 26 30 public class GrabTableProgressPanel extends javax.swing.JPanel { 31 32 public GrabTableProgressPanel() { 33 initComponents(); 34 } 35 36 public void setProgressComponent(JComponent component) { 37 progressPlaceHolderPanel.removeAll(); 38 progressPlaceHolderPanel.add(component, BorderLayout.CENTER); 39 } 40 41 46 private void initComponents() { 48 messageLabel = new javax.swing.JLabel (); 49 progressPlaceHolderPanel = new javax.swing.JPanel (); 50 51 messageLabel.setText(NbBundle.getBundle("org.netbeans.modules.db.resources.Bundle").getString("GrabTableProgressDialogMessage")); 52 messageLabel.getAccessibleContext().setAccessibleName(NbBundle.getBundle("org.netbeans.modules.db.resources.Bundle").getString("GrabTableProgressDialogMessage")); 53 messageLabel.getAccessibleContext().setAccessibleDescription(NbBundle.getBundle("org.netbeans.modules.db.resources.Bundle").getString("GrabTableProgressDialogMessage")); 54 55 progressPlaceHolderPanel.setLayout(new java.awt.BorderLayout ()); 56 57 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 58 this.setLayout(layout); 59 layout.setHorizontalGroup( 60 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 61 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 62 .addContainerGap() 63 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 64 .add(messageLabel) 65 .add(progressPlaceHolderPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE)) 66 .addContainerGap()) 67 ); 68 layout.setVerticalGroup( 69 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 70 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 71 .addContainerGap() 72 .add(messageLabel) 73 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 74 .add(progressPlaceHolderPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 75 .addContainerGap(18, Short.MAX_VALUE)) 76 ); 77 } 78 80 81 public javax.swing.JLabel messageLabel; 83 public javax.swing.JPanel progressPlaceHolderPanel; 84 86 } 87 | Popular Tags |