1 6 7 package org.netbeans.modules.localhistory.ui.view; 8 9 13 public class DiffPanel extends javax.swing.JPanel { 14 15 16 public DiffPanel() { 17 initComponents(); 18 } 19 20 25 private void initComponents() { 27 28 jToolBar1 = new javax.swing.JToolBar (); 29 jPanel1 = new javax.swing.JPanel (); 30 jPanel4 = new javax.swing.JPanel (); 31 32 diffPanel.setLayout(new java.awt.BorderLayout ()); 33 34 jToolBar1.setFloatable(false); 35 jToolBar1.setBorderPainted(false); 36 37 jPanel1.setMaximumSize(new java.awt.Dimension (32767, 1)); 38 jPanel1.setPreferredSize(new java.awt.Dimension (100, 1)); 39 40 org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1); 41 jPanel1.setLayout(jPanel1Layout); 42 jPanel1Layout.setHorizontalGroup( 43 jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 44 .add(0, 356, Short.MAX_VALUE) 45 ); 46 jPanel1Layout.setVerticalGroup( 47 jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 48 .add(0, 1, Short.MAX_VALUE) 49 ); 50 51 jToolBar1.add(jPanel1); 52 53 nextButton.setIcon(new javax.swing.ImageIcon (getClass().getResource("/org/netbeans/modules/localhistory/resources/icons/diff-next.png"))); 54 nextButton.setText(org.openide.util.NbBundle.getMessage(DiffPanel.class, "DiffPanel.nextButton.text")); nextButton.setToolTipText(org.openide.util.NbBundle.getMessage(DiffPanel.class, "DiffPanel.nextButton.toolTipText")); nextButton.setAlignmentX(0.5F); 57 nextButton.setBorder(null); 58 nextButton.setBorderPainted(false); 59 nextButton.setEnabled(false); 60 jToolBar1.add(nextButton); 61 62 prevButton.setIcon(new javax.swing.ImageIcon (getClass().getResource("/org/netbeans/modules/localhistory/resources/icons/diff-prev.png"))); 63 prevButton.setText(org.openide.util.NbBundle.getMessage(DiffPanel.class, "DiffPanel.prevButton.text")); prevButton.setToolTipText(org.openide.util.NbBundle.getMessage(DiffPanel.class, "DiffPanel.prevButton.toolTipText")); prevButton.setAlignmentX(0.5F); 66 prevButton.setBorder(null); 67 prevButton.setBorderPainted(false); 68 prevButton.setEnabled(false); 69 jToolBar1.add(prevButton); 70 71 jPanel4.setMaximumSize(new java.awt.Dimension (32767, 1)); 72 jPanel4.setPreferredSize(new java.awt.Dimension (100, 1)); 73 74 org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4); 75 jPanel4.setLayout(jPanel4Layout); 76 jPanel4Layout.setHorizontalGroup( 77 jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 78 .add(0, 356, Short.MAX_VALUE) 79 ); 80 jPanel4Layout.setVerticalGroup( 81 jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 82 .add(0, 1, Short.MAX_VALUE) 83 ); 84 85 jToolBar1.add(jPanel4); 86 87 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 88 this.setLayout(layout); 89 layout.setHorizontalGroup( 90 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 91 .add(diffPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 749, Short.MAX_VALUE) 92 .add(jToolBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 749, Short.MAX_VALUE) 93 ); 94 layout.setVerticalGroup( 95 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 96 .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() 97 .add(jToolBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 43, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 98 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 99 .add(diffPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)) 100 ); 101 } 103 104 final javax.swing.JPanel diffPanel = new javax.swing.JPanel (); 106 private javax.swing.JPanel jPanel1; 107 private javax.swing.JPanel jPanel4; 108 private javax.swing.JToolBar jToolBar1; 109 final javax.swing.JButton nextButton = new javax.swing.JButton (); 110 final javax.swing.JButton prevButton = new javax.swing.JButton (); 111 113 } 114 | Popular Tags |