Revision 638
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/DefaultJScriptingComposer.java | ||
---|---|---|
843 | 843 |
} |
844 | 844 |
|
845 | 845 |
@Override |
846 |
public void addLeftPanel(String title,JComponent panel) { |
|
846 |
public void addLeftPanel(String title,final JComponent panel) {
|
|
847 | 847 |
this.leftTab.add(title,panel); |
848 |
this.leftTab.addCloseTabListener(new ActionListener() { |
|
849 |
|
|
850 |
@Override |
|
851 |
public void actionPerformed(ActionEvent e) { |
|
852 |
int n = leftTab.getSelectedIndex(); |
|
853 |
leftTab.remove(n); |
|
854 |
} |
|
855 |
}); |
|
848 | 856 |
} |
849 | 857 |
|
850 | 858 |
@Override |
851 |
public void addBottomPanel(String title,JComponent panel) { |
|
859 |
public void addBottomPanel(String title,final JComponent panel) {
|
|
852 | 860 |
this.bottomTab.add(title,panel); |
861 |
this.bottomTab.addCloseTabListener(new ActionListener() { |
|
862 |
|
|
863 |
@Override |
|
864 |
public void actionPerformed(ActionEvent e) { |
|
865 |
int n = bottomTab.getSelectedIndex(); |
|
866 |
bottomTab.remove(n); |
|
867 |
} |
|
868 |
}); |
|
853 | 869 |
} |
854 | 870 |
|
855 | 871 |
@Override |
Also available in: Unified diff