OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 74 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
74 ilm 1
package org.openconcerto.modules.extensionbuilder.table;
2
 
3
import java.awt.GridLayout;
4
 
5
import javax.swing.JComponent;
6
import javax.swing.JPanel;
7
import javax.swing.JSplitPane;
8
 
9
import org.openconcerto.modules.extensionbuilder.Extension;
10
 
11
public class TableModifyMainPanel extends JPanel {
12
    private JSplitPane split;
13
 
14
    public TableModifyMainPanel(Extension extension) {
15
        this.setLayout(new GridLayout(1, 1));
16
        final TableModifyLeftPanel newLeftComponent = new TableModifyLeftPanel(extension, this);
181 ilm 17
        this.split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, newLeftComponent, new JPanel());
18
        this.add(this.split);
74 ilm 19
    }
20
 
21
    public void setRightPanel(JComponent p) {
22
        this.invalidate();
181 ilm 23
        this.split.setRightComponent(p);
74 ilm 24
        this.revalidate();
25
        this.repaint();
26
    }
27
}