OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 86 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 86 Rev 181
Line 68... Line 68...
68
 
68
 
69
    private void addField(final TableDescritor desc, final JPanel p, GridBagConstraints c, final FieldDescriptor field) {
69
    private void addField(final TableDescritor desc, final JPanel p, GridBagConstraints c, final FieldDescriptor field) {
70
 
70
 
71
        c.weightx = 1;
71
        c.weightx = 1;
72
        c.gridx = 0;
72
        c.gridx = 0;
73
        final FieldDescriptorEditor editor = new FieldDescriptorEditor(extension, field);
73
        final FieldDescriptorEditor editor = new FieldDescriptorEditor(this.extension, field);
74
        p.add(editor, c);
74
        p.add(editor, c);
75
 
75
 
76
        c.gridx++;
76
        c.gridx++;
77
        c.weightx = 0;
77
        c.weightx = 0;
78
        final JButton close = new JButton(new ImageIcon(DefaultListModel.class.getResource("close_popup.png")));
78
        final JButton close = new JButton(new ImageIcon(DefaultListModel.class.getResource("close_popup.png")));
Line 84... Line 84...
84
            public void actionPerformed(ActionEvent e) {
84
            public void actionPerformed(ActionEvent e) {
85
                desc.remove(field);
85
                desc.remove(field);
86
                p.remove(editor);
86
                p.remove(editor);
87
                p.remove(close);
87
                p.remove(close);
88
                p.revalidate();
88
                p.revalidate();
89
                extension.setChanged();
89
                TableCreatePanel.this.extension.setChanged();
90
            }
90
            }
91
        });
91
        });
92
        c.gridy++;
92
        c.gridy++;
93
    }
93
    }
94
 
94