1 19 package org.netbeans.modules.subversion.ui.browser; 20 21 25 public class ControlPanel extends javax.swing.JPanel { 26 27 28 public ControlPanel() { 29 initComponents(); 30 } 31 32 37 private void initComponents() { 39 java.awt.GridBagConstraints gridBagConstraints; 40 41 jPanel1 = new javax.swing.JPanel (); 42 43 org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1); 44 jPanel1.setLayout(jPanel1Layout); 45 jPanel1Layout.setHorizontalGroup( 46 jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 47 .add(0, 100, Short.MAX_VALUE) 48 ); 49 jPanel1Layout.setVerticalGroup( 50 jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 51 .add(0, 100, Short.MAX_VALUE) 52 ); 53 54 setLayout(new java.awt.GridBagLayout ()); 55 56 warningLabel.setIcon(new javax.swing.ImageIcon (getClass().getResource("/org/netbeans/modules/subversion/ui/resources/warning.png"))); 57 warningLabel.setText("jLabel1"); 58 gridBagConstraints = new java.awt.GridBagConstraints (); 59 gridBagConstraints.gridx = 0; 60 gridBagConstraints.gridy = 0; 61 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 62 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 63 gridBagConstraints.weightx = 1.0; 64 add(warningLabel, gridBagConstraints); 65 66 buttonPanel.setLayout(new java.awt.FlowLayout (java.awt.FlowLayout.RIGHT)); 67 gridBagConstraints = new java.awt.GridBagConstraints (); 68 gridBagConstraints.gridx = 1; 69 gridBagConstraints.gridy = 0; 70 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 71 gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; 72 gridBagConstraints.weightx = 0.1; 73 add(buttonPanel, gridBagConstraints); 74 } 76 77 final javax.swing.JPanel buttonPanel = new javax.swing.JPanel (); 79 private javax.swing.JPanel jPanel1; 80 final javax.swing.JLabel warningLabel = new javax.swing.JLabel (); 81 83 } 84 | Popular Tags |