1 19 package org.netbeans.modules.localhistory.ui.view; 20 21 import org.netbeans.modules.localhistory.ui.revert.RevertFolderChanges; 22 23 27 public class LocalHistoryFolderPanel extends javax.swing.JPanel { 28 29 30 public LocalHistoryFolderPanel() { 31 initComponents(); 32 } 33 34 39 private void initComponents() { 41 42 jLabel2 = new javax.swing.JLabel (); 43 jButton1 = new javax.swing.JButton (); 44 jLabel1 = new javax.swing.JLabel (); 45 46 jLabel2.setText(org.openide.util.NbBundle.getMessage(LocalHistoryFolderPanel.class, "LocalHistoryFolderPanel.jLabel2.text")); 48 dateTextField.setText(org.openide.util.NbBundle.getMessage(LocalHistoryFolderPanel.class, "LocalHistoryFolderPanel.dateTextField.text")); dateTextField.setToolTipText(org.openide.util.NbBundle.getMessage(LocalHistoryFolderPanel.class, "LocalHistoryFolderPanel.dateTextField.toolTipText")); 51 tablePanel.setLayout(new java.awt.BorderLayout ()); 52 53 revertButton.setText(org.openide.util.NbBundle.getMessage(LocalHistoryFolderPanel.class, "LocalHistoryFolderPanel.revertButton.text")); 55 jButton1.setText(org.openide.util.NbBundle.getMessage(LocalHistoryFolderPanel.class, "LocalHistoryFolderPanel.jButton1.text")); 57 jLabel1.setText(org.openide.util.NbBundle.getMessage(LocalHistoryFolderPanel.class, "LocalHistoryFolderPanel.jLabel1.text")); 59 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 60 this.setLayout(layout); 61 layout.setHorizontalGroup( 62 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 63 .add(layout.createSequentialGroup() 64 .addContainerGap() 65 .add(jLabel2) 66 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 67 .add(dateTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 163, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 68 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 69 .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 147, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 70 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 71 .add(jButton1) 72 .addContainerGap(184, Short.MAX_VALUE)) 73 .add(tablePanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 758, Short.MAX_VALUE) 74 .add(layout.createSequentialGroup() 75 .addContainerGap() 76 .add(revertButton) 77 .addContainerGap(673, Short.MAX_VALUE)) 78 ); 79 layout.setVerticalGroup( 80 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 81 .add(layout.createSequentialGroup() 82 .addContainerGap() 83 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 84 .add(jLabel2) 85 .add(dateTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 86 .add(jLabel1) 87 .add(jButton1)) 88 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 89 .add(tablePanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 131, Short.MAX_VALUE) 90 .add(10, 10, 10) 91 .add(revertButton) 92 .addContainerGap()) 93 ); 94 } 96 97 final javax.swing.JFormattedTextField dateTextField = new javax.swing.JFormattedTextField (RevertFolderChanges.TS_FORMAT); 99 private javax.swing.JButton jButton1; 100 private javax.swing.JLabel jLabel1; 101 private javax.swing.JLabel jLabel2; 102 final javax.swing.JButton revertButton = new javax.swing.JButton (); 103 final javax.swing.JPanel tablePanel = new javax.swing.JPanel (); 104 106 } 107 | Popular Tags |