/** * Returns a <code>JButton</code> appropriate for placement on the * TitlePane. * * @return Title button. */ private JButton createTitleButton() { JButton button = new SubstanceTitleButton(); button.setFocusPainted(false); button.setFocusable(false); button.setOpaque(true); this.markExtraComponent(button, ExtraComponentKind.TRAILING); return button; }
/** * Returns a <code>JButton</code> appropriate for placement on the * TitlePane. * * @return Title button. */ private JButton createTitleButton() { JButton button = new SubstanceTitleButton(); button.setFocusPainted(false); button.setFocusable(false); button.setOpaque(true); this.markExtraComponent(button, ExtraComponentKind.TRAILING); return button; }
/** * Returns the <code>JMenuBar</code> displaying the appropriate system menu * items. * * @return <code>JMenuBar</code> displaying the appropriate system menu * items. */ protected JMenuBar createMenuBar() { this.menuBar = new SubstanceMenuBar(); this.menuBar.setFocusable(false); this.menuBar.setBorderPainted(true); this.menuBar.add(this.createMenu()); this.menuBar.setOpaque(false); // support for RTL this.menuBar.applyComponentOrientation(this.rootPane .getComponentOrientation()); this.markExtraComponent(this.menuBar, ExtraComponentKind.LEADING); return this.menuBar; }
/** * Returns the <code>JMenuBar</code> displaying the appropriate system menu * items. * * @return <code>JMenuBar</code> displaying the appropriate system menu * items. */ protected JMenuBar createMenuBar() { this.menuBar = new SubstanceMenuBar(); this.menuBar.setFocusable(false); this.menuBar.setBorderPainted(true); this.menuBar.add(this.createMenu()); this.menuBar.setOpaque(false); // support for RTL this.menuBar.applyComponentOrientation(this.rootPane .getComponentOrientation()); this.markExtraComponent(this.menuBar, ExtraComponentKind.LEADING); return this.menuBar; }
this.markExtraComponent(this.heapStatusPanel, ExtraComponentKind.TRAILING); this.add(this.heapStatusPanel);
this.markExtraComponent(this.heapStatusPanel, ExtraComponentKind.TRAILING); this.add(this.heapStatusPanel);