Warning: Can't use blame annotator:
svn blame failed on branches/ScriptBuilder4/src/event/editor/CADLogPanel.java: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator-scriptbuilder/branches/ScriptBuilder4/src/event/editor/CADLogPanel.java @ 6

Revision 6, 3.5 KB checked in by jdalbey, 9 years ago (diff)

Add original prototype to branch

RevLine 
1package event.editor;
2
3import java.awt.event.*;
4
5/**
6 *
7 * @author nathaniellehrer
8 */
9public class CADLogPanel extends javax.swing.JPanel implements RemoveablePanel {
10
11    private ActionListener removeListener;
12
13    /** Creates new form DetailPanel */
14    public CADLogPanel() {
15        initComponents();
16    }
17
18    public void setRemoveListener(ActionListener listener)
19    {
20        removeListener = listener;
21    }
22    /** This method is called from within the constructor to
23     * initialize the form.
24     * WARNING: Do NOT modify this code. The content of this method is
25     * always regenerated by the Form Editor.
26     */
27    @SuppressWarnings("unchecked")
28    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
29    private void initComponents() {
30
31        removeButton = new javax.swing.JButton();
32        jLabel1 = new javax.swing.JLabel();
33        jScrollPane1 = new javax.swing.JScrollPane();
34        jTextArea1 = new javax.swing.JTextArea();
35
36        removeButton.setText("Remove");
37        removeButton.addMouseListener(new java.awt.event.MouseAdapter() {
38            public void mouseClicked(java.awt.event.MouseEvent evt) {
39                removeButtonremoveThisProperty(evt);
40            }
41        });
42
43        jLabel1.setText("Cad Log Text");
44
45        jTextArea1.setColumns(20);
46        jTextArea1.setRows(5);
47        jScrollPane1.setViewportView(jTextArea1);
48
49        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
50        this.setLayout(layout);
51        layout.setHorizontalGroup(
52            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
53            .add(0, 546, Short.MAX_VALUE)
54            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
55                .addContainerGap()
56                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
57                    .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
58                    .add(layout.createSequentialGroup()
59                        .add(jLabel1)
60                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 330, Short.MAX_VALUE)
61                        .add(removeButton)))
62                .addContainerGap())
63        );
64        layout.setVerticalGroup(
65            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
66            .add(layout.createSequentialGroup()
67                .addContainerGap()
68                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
69                    .add(removeButton)
70                    .add(jLabel1))
71                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
72                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
73                .addContainerGap())
74        );
75    }// </editor-fold>//GEN-END:initComponents
76
77    private void removeButtonremoveThisProperty(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_removeButtonremoveThisProperty
78        if (removeListener != null) {
79            removeListener.actionPerformed(new ActionEvent(this, 0, ""));
80        }
81}//GEN-LAST:event_removeButtonremoveThisProperty
82
83
84    // Variables declaration - do not modify//GEN-BEGIN:variables
85    private javax.swing.JLabel jLabel1;
86    private javax.swing.JScrollPane jScrollPane1;
87    private javax.swing.JTextArea jTextArea1;
88    private javax.swing.JButton removeButton;
89    // End of variables declaration//GEN-END:variables
90
91}
Note: See TracBrowser for help on using the repository browser.