Java Code Examples for javax.swing.JToolTip#setBorder()
The following examples show how to use
javax.swing.JToolTip#setBorder() .
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: TooltipLabel.java From netbeans with Apache License 2.0 | 5 votes |
@Override public JToolTip createToolTip() { JToolTip tooltp = new JToolTip(); tooltp.setBackground(SystemColor.control); tooltp.setFont(getFont()); tooltp.setOpaque(true); tooltp.setComponent(this); tooltp.setBorder(null); return tooltp; }
Example 2
Source File: SpaceButton.java From Open-Realms-of-Stars with GNU General Public License v2.0 | 5 votes |
@Override public JToolTip createToolTip() { JToolTip toolTip = super.createToolTip(); toolTip.setForeground(GuiStatics.COLOR_COOL_SPACE_BLUE); toolTip.setBackground(GuiStatics.COLOR_COOL_SPACE_BLUE_DARK); toolTip.setBorder(BorderFactory .createLineBorder(GuiStatics.COLOR_COOL_SPACE_BLUE_DARKER)); return toolTip; }
Example 3
Source File: SpaceCombo.java From Open-Realms-of-Stars with GNU General Public License v2.0 | 5 votes |
@Override public JToolTip createToolTip() { JToolTip toolTip = super.createToolTip(); toolTip.setForeground(GuiStatics.COLOR_COOL_SPACE_BLUE); toolTip.setBackground(GuiStatics.COLOR_COOL_SPACE_BLUE_DARK); toolTip.setBorder(BorderFactory .createLineBorder(GuiStatics.COLOR_COOL_SPACE_BLUE_DARKER)); return toolTip; }
Example 4
Source File: IconButton.java From Open-Realms-of-Stars with GNU General Public License v2.0 | 5 votes |
@Override public JToolTip createToolTip() { JToolTip toolTip = super.createToolTip(); toolTip.setForeground(GuiStatics.COLOR_COOL_SPACE_BLUE); toolTip.setBackground(GuiStatics.COLOR_COOL_SPACE_BLUE_DARK); toolTip.setBorder(BorderFactory .createLineBorder(GuiStatics.COLOR_COOL_SPACE_BLUE_DARKER)); return toolTip; }
Example 5
Source File: SpaceCheckBox.java From Open-Realms-of-Stars with GNU General Public License v2.0 | 5 votes |
@Override public JToolTip createToolTip() { JToolTip toolTip = super.createToolTip(); toolTip.setForeground(GuiStatics.COLOR_COOL_SPACE_BLUE); toolTip.setBackground(GuiStatics.COLOR_COOL_SPACE_BLUE_DARK); toolTip.setBorder(BorderFactory .createLineBorder(GuiStatics.COLOR_COOL_SPACE_BLUE_DARKER)); return toolTip; }
Example 6
Source File: IconLabel.java From Open-Realms-of-Stars with GNU General Public License v2.0 | 5 votes |
@Override public JToolTip createToolTip() { JToolTip toolTip = super.createToolTip(); toolTip.setForeground(GuiStatics.COLOR_COOL_SPACE_BLUE); toolTip.setBackground(GuiStatics.COLOR_COOL_SPACE_BLUE_DARK); toolTip.setBorder(BorderFactory .createLineBorder(GuiStatics.COLOR_COOL_SPACE_BLUE_DARKER)); return toolTip; }
Example 7
Source File: SpaceLabel.java From Open-Realms-of-Stars with GNU General Public License v2.0 | 5 votes |
@Override public JToolTip createToolTip() { JToolTip toolTip = super.createToolTip(); toolTip.setForeground(GuiStatics.COLOR_COOL_SPACE_BLUE); toolTip.setBackground(GuiStatics.COLOR_COOL_SPACE_BLUE_DARK); toolTip.setBorder(BorderFactory .createLineBorder(GuiStatics.COLOR_COOL_SPACE_BLUE_DARKER)); return toolTip; }
Example 8
Source File: SpaceComboBox.java From Open-Realms-of-Stars with GNU General Public License v2.0 | 5 votes |
@Override public JToolTip createToolTip() { JToolTip toolTip = super.createToolTip(); toolTip.setForeground(GuiStatics.COLOR_COOL_SPACE_BLUE); toolTip.setBackground(GuiStatics.COLOR_COOL_SPACE_BLUE_DARK); toolTip.setBorder(BorderFactory .createLineBorder(GuiStatics.COLOR_COOL_SPACE_BLUE_DARKER)); return toolTip; }
Example 9
Source File: TransparentLabel.java From Open-Realms-of-Stars with GNU General Public License v2.0 | 5 votes |
@Override public JToolTip createToolTip() { JToolTip toolTip = super.createToolTip(); toolTip.setForeground(GuiStatics.COLOR_COOL_SPACE_BLUE); toolTip.setBackground(GuiStatics.COLOR_COOL_SPACE_BLUE_DARK); toolTip.setBorder(BorderFactory .createLineBorder(GuiStatics.COLOR_COOL_SPACE_BLUE_DARKER)); return toolTip; }
Example 10
Source File: ImageLabel.java From Open-Realms-of-Stars with GNU General Public License v2.0 | 5 votes |
@Override public JToolTip createToolTip() { JToolTip toolTip = super.createToolTip(); toolTip.setForeground(GuiStatics.COLOR_COOL_SPACE_BLUE); toolTip.setBackground(GuiStatics.COLOR_COOL_SPACE_BLUE_DARK); toolTip.setBorder(BorderFactory .createLineBorder(GuiStatics.COLOR_COOL_SPACE_BLUE_DARKER)); return toolTip; }
Example 11
Source File: ToolButton.java From mars-sim with GNU General Public License v3.0 | 5 votes |
/** * Initialize the button */ public void init() { // Initialize tool tip for button toolButtonTip = new JToolTip(); toolButtonTip.setBackground(Color.white); toolButtonTip.setBorder(new LineBorder(Color.yellow)); setToolTipText(toolName); // Prepare default tool button values setAlignmentX(.5F); setAlignmentY(.5F); }