S
das geht auch nicht so ganz . Ich wäre dir Dankbar wenn du die Methode
DisplayEditor(...) genauer anschaust villeicht fält dir was ein
[java]
public void DisplayEditor(Container contentPane, boolean isTreeOpen)
{
tab_OpenFiles=new JTabbedPane(SwingConstants.TOP);
JComponent component = new TabsFiles(langCode.getValueOfKey("tab.noname"),tab_OpenFiles).addTabsFiles(true,getSelectedLanguage(),contentPane);
if(isTreeOpen){
splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,new JTextArea("here com the Tree"),component);
splitPane.setOneTouchExpandable(true);
splitPane.setContinuousLayout(true);
contentPane.remove(component);
contentPane.add((JComponent) splitPane,BorderLayout.CENTER);
this.repaint();
}else{
contentPane.remove(splitPane);
contentPane.add(component,BorderLayout.CENTER);
this.repaint();
}
}
//------------------------------------------------------------------------------
public void actionPerformed(ActionEvent event)
{
if(event.getSource().equals(mFile_New)){
// new TabsFiles(langCode.getValueOfKey("tab.noname"),tab_OpenFiles).addTabsFiles(false);
// ((JComponent)tab_OpenFiles.getSelectedComponent()).requestFocus();
}
if(event.getSource().equals(mFile_Open)){
// new TabsFiles("aTitle",tab_OpenFiles).addTabsFiles(false);
}
if(event.getSource().equals(display)){
DisplayEditor(contentPane,true);
}
if(event.getSource().equals(hidden)){
DisplayEditor(contentPane,false);
}
}
//-----------------------------------------------------------------[/code]
Danke