Java Code Examples for javax.swing.JToolBar#setForeground()
The following examples show how to use
javax.swing.JToolBar#setForeground() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MaterialToolBarUI.java From material-ui-swing with MIT License | 5 votes |
@Override public void installUI (JComponent c) { super.installUI (c); JToolBar toolBar = (JToolBar) c; toolBar.setFont (UIManager.getFont ("ToolBar.font")); toolBar.setBackground (UIManager.getColor ("ToolBar.background")); toolBar.setForeground (UIManager.getColor ("ToolBar.foreground")); toolBar.setBorder (UIManager.getBorder ("ToolBar.border")); this.dockingBorderColor = null; this.floatingBorderColor = null; this.dockingColor = UIManager.getColor ("ToolBar.dockingBackground"); this.floatingColor = UIManager.getColor ("ToolBar.floatingBackground"); }
Example 2
Source File: ProjectListWindow.java From tmc-intellij with MIT License | 5 votes |
/** * Method generated by IntelliJ IDEA GUI Designer. * >>> IMPORTANT!! <<< * DO NOT edit this method OR call it in your code! * * @noinspection ALL */ private void setupUi() { basePanel = new JPanel(); basePanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1)); tabbedPaneBase = new JTabbedPane(); basePanel.add(tabbedPaneBase, new GridConstraints(1, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false)); toolbar = new JToolBar(); toolbar.setBorderPainted(false); toolbar.setFloatable(false); toolbar.setForeground(new Color(-16777216)); basePanel.add(toolbar, new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false)); final Spacer spacer1 = new Spacer(); basePanel.add(spacer1, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); }
Example 3
Source File: ProjectListWindow.java From tmc-intellij with MIT License | 5 votes |
/** * Method generated by IntelliJ IDEA GUI Designer * >>> IMPORTANT!! <<< * DO NOT edit this method OR call it in your code! * * @noinspection ALL */ private void $$$setupUI$$$() { basePanel = new JPanel(); basePanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1)); tabbedPaneBase = new JTabbedPane(); basePanel.add(tabbedPaneBase, new GridConstraints(1, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false)); toolbar = new JToolBar(); toolbar.setBorderPainted(false); toolbar.setFloatable(false); toolbar.setForeground(new Color(-16777216)); basePanel.add(toolbar, new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false)); final Spacer spacer1 = new Spacer(); basePanel.add(spacer1, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); }