OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Go to most recent revision | Details | 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);
17
        split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, newLeftComponent, new JPanel());
18
        this.add(split);
19
    }
20
 
21
    public void setRightPanel(JComponent p) {
22
        this.invalidate();
23
        split.setRightComponent(p);
24
        this.revalidate();
25
        this.repaint();
26
    }
27
}