KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > localhistory > ui > view > DiffPanel


1 /*
2  * DiffPanel.java
3  *
4  * Created on February 8, 2007, 2:24 PM
5  */

6
7 package org.netbeans.modules.localhistory.ui.view;
8
9 /**
10  *
11  * @author tomas
12  */

13 public class DiffPanel extends javax.swing.JPanel JavaDoc {
14     
15     /** Creates new form DiffPanel */
16     public DiffPanel() {
17         initComponents();
18     }
19     
20     /** This method is called from within the constructor to
21      * initialize the form.
22      * WARNING: Do NOT modify this code. The content of this method is
23      * always regenerated by the Form Editor.
24      */

25     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
26
private void initComponents() {
27
28         jToolBar1 = new javax.swing.JToolBar JavaDoc();
29         jPanel1 = new javax.swing.JPanel JavaDoc();
30         jPanel4 = new javax.swing.JPanel JavaDoc();
31
32         diffPanel.setLayout(new java.awt.BorderLayout JavaDoc());
33
34         jToolBar1.setFloatable(false);
35         jToolBar1.setBorderPainted(false);
36
37         jPanel1.setMaximumSize(new java.awt.Dimension JavaDoc(32767, 1));
38         jPanel1.setPreferredSize(new java.awt.Dimension JavaDoc(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 JavaDoc(getClass().getResource("/org/netbeans/modules/localhistory/resources/icons/diff-next.png")));
54         nextButton.setText(org.openide.util.NbBundle.getMessage(DiffPanel.class, "DiffPanel.nextButton.text")); // NOI18N
55
nextButton.setToolTipText(org.openide.util.NbBundle.getMessage(DiffPanel.class, "DiffPanel.nextButton.toolTipText")); // NOI18N
56
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 JavaDoc(getClass().getResource("/org/netbeans/modules/localhistory/resources/icons/diff-prev.png")));
63         prevButton.setText(org.openide.util.NbBundle.getMessage(DiffPanel.class, "DiffPanel.prevButton.text")); // NOI18N
64
prevButton.setToolTipText(org.openide.util.NbBundle.getMessage(DiffPanel.class, "DiffPanel.prevButton.toolTipText")); // NOI18N
65
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 JavaDoc(32767, 1));
72         jPanel4.setPreferredSize(new java.awt.Dimension JavaDoc(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     }// </editor-fold>//GEN-END:initComponents
102

103     
104     // Variables declaration - do not modify//GEN-BEGIN:variables
105
final javax.swing.JPanel JavaDoc diffPanel = new javax.swing.JPanel JavaDoc();
106     private javax.swing.JPanel JavaDoc jPanel1;
107     private javax.swing.JPanel JavaDoc jPanel4;
108     private javax.swing.JToolBar JavaDoc jToolBar1;
109     final javax.swing.JButton JavaDoc nextButton = new javax.swing.JButton JavaDoc();
110     final javax.swing.JButton JavaDoc prevButton = new javax.swing.JButton JavaDoc();
111     // End of variables declaration//GEN-END:variables
112

113 }
114
Popular Tags