1 19 20 package org.netbeans.modules.subversion.ui.copy; 21 22 import org.netbeans.modules.subversion.ui.wizards.*; 23 24 28 public class SwitchToPanel extends javax.swing.JPanel { 29 30 31 public SwitchToPanel() { 32 initComponents(); 33 } 34 35 40 private void initComponents() { 42 43 jLabel5 = new javax.swing.JLabel (); 44 jLabel6 = new javax.swing.JLabel (); 45 46 setName(org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Message")); 48 org.openide.awt.Mnemonics.setLocalizedText(urlLabel, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Folder")); 50 org.openide.awt.Mnemonics.setLocalizedText(browseRepositoryButton, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Browse")); 52 urlComboBox.setEditable(true); 53 54 jLabel5.setLabelFor(revisionTextField); 55 org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Revision")); 57 org.openide.awt.Mnemonics.setLocalizedText(searchRevisionButton, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Search")); 59 org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_EmptyHint")); 61 warningLabel.setIcon(new javax.swing.ImageIcon (getClass().getResource("/org/netbeans/modules/subversion/ui/resources/warning.png"))); 62 org.openide.awt.Mnemonics.setLocalizedText(warningLabel, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Warning")); 64 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 65 this.setLayout(layout); 66 layout.setHorizontalGroup( 67 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 68 .add(layout.createSequentialGroup() 69 .addContainerGap() 70 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 71 .add(layout.createSequentialGroup() 72 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) 73 .add(urlLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 74 .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 135, Short.MAX_VALUE)) 75 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 76 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 77 .add(urlComboBox, 0, 450, Short.MAX_VALUE) 78 .add(layout.createSequentialGroup() 79 .add(revisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 80 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 81 .add(searchRevisionButton)) 82 .add(jLabel6)) 83 .add(10, 10, 10) 84 .add(browseRepositoryButton)) 85 .add(warningLabel)) 86 .addContainerGap()) 87 ); 88 layout.setVerticalGroup( 89 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 90 .add(layout.createSequentialGroup() 91 .addContainerGap() 92 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 93 .add(browseRepositoryButton) 94 .add(urlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 95 .add(urlLabel)) 96 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 97 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 98 .add(revisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 99 .add(jLabel5) 100 .add(searchRevisionButton)) 101 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 102 .add(jLabel6) 103 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 104 .add(warningLabel) 105 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 106 ); 107 108 urlLabel.getAccessibleContext().setAccessibleDescription("Repository Folder"); 109 browseRepositoryButton.getAccessibleContext().setAccessibleDescription("Browse Repository Fodlers"); 110 jLabel5.getAccessibleContext().setAccessibleDescription("Repository Revision"); 111 searchRevisionButton.getAccessibleContext().setAccessibleDescription("Search Revisions"); 112 jLabel6.getAccessibleContext().setAccessibleDescription("(empty means repository HEAD)"); 113 warningLabel.getAccessibleContext().setAccessibleDescription("Warning - there are locally modified files!"); 114 } 116 117 final javax.swing.JButton browseRepositoryButton = new javax.swing.JButton (); 119 private javax.swing.JLabel jLabel5; 120 private javax.swing.JLabel jLabel6; 121 final javax.swing.JTextField revisionTextField = new javax.swing.JTextField (); 122 final javax.swing.JButton searchRevisionButton = new javax.swing.JButton (); 123 final javax.swing.JComboBox urlComboBox = new javax.swing.JComboBox (); 124 final javax.swing.JLabel urlLabel = new javax.swing.JLabel (); 125 final javax.swing.JLabel warningLabel = new javax.swing.JLabel (); 126 128 } 129 | Popular Tags |