implementing alternate footer that works like our header

This commit is contained in:
Ben Fry
2015-05-19 02:41:52 -04:00
parent bac2499d11
commit b0d5472f19
9 changed files with 170 additions and 471 deletions

View File

@@ -206,15 +206,16 @@ public class JavaEditor extends Editor {
@Override
public Container createConsolePanel() {
//JPanel consolePanel = new JPanel();
JTabbedPane tabPane = new JTabbedPane(JTabbedPane.BOTTOM);
// tabPane.setUI(new BasicTabbedPaneUI());
tabPane.setUI(new SimpleTabbedPaneUI());
// tabPane.setUI(new SillyTabbedPaneUI());
// tabPane.setUI(new PlasticTabbedPaneUI());
// tabPane.setBorder(BorderFactory.createEmptyBorder());
// tabPane.setBackground(Color.RED);
public Container createFooter() {
// //JPanel consolePanel = new JPanel();
// JTabbedPane footer = new JTabbedPane(JTabbedPane.BOTTOM);
//// tabPane.setUI(new BasicTabbedPaneUI());
// footer.setUI(new SimpleTabbedPaneUI());
//// tabPane.setUI(new SillyTabbedPaneUI());
//// tabPane.setUI(new PlasticTabbedPaneUI());
//// tabPane.setBorder(BorderFactory.createEmptyBorder());
//// tabPane.setBackground(Color.RED);
EditorFooter footer = new EditorFooter(this);
// Adding Error Table in a scroll pane
errorTableScrollPane = new JScrollPane();
@@ -250,11 +251,11 @@ public class JavaEditor extends Editor {
// consoleProblemsPane.add(super.createConsolePanel(), Language.text("editor.footer.console"));
// consolePanel.add(consoleProblemsPane, BorderLayout.CENTER);
tabPane.add(Language.text("editor.footer.errors"), errorTableScrollPane);
tabPane.add(Language.text("editor.footer.console"), super.createConsolePanel());
footer.addPanel(Language.text("editor.footer.console"), new EditorConsole(this));
footer.addPanel(Language.text("editor.footer.errors"), errorTableScrollPane);
//return consolePanel;
return tabPane;
return footer;
}