Java Code Examples for javax.swing.JToolTip#setForeground()

The following examples show how to use javax.swing.JToolTip#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: SpaceButton.java    From Open-Realms-of-Stars with GNU General Public License v2.0 5 votes vote down vote up
@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 2
Source File: SpaceCombo.java    From Open-Realms-of-Stars with GNU General Public License v2.0 5 votes vote down vote up
@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: IconButton.java    From Open-Realms-of-Stars with GNU General Public License v2.0 5 votes vote down vote up
@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: SpaceCheckBox.java    From Open-Realms-of-Stars with GNU General Public License v2.0 5 votes vote down vote up
@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: IconLabel.java    From Open-Realms-of-Stars with GNU General Public License v2.0 5 votes vote down vote up
@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: SpaceLabel.java    From Open-Realms-of-Stars with GNU General Public License v2.0 5 votes vote down vote up
@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: SpaceComboBox.java    From Open-Realms-of-Stars with GNU General Public License v2.0 5 votes vote down vote up
@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: TransparentLabel.java    From Open-Realms-of-Stars with GNU General Public License v2.0 5 votes vote down vote up
@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: ImageLabel.java    From Open-Realms-of-Stars with GNU General Public License v2.0 5 votes vote down vote up
@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: IGCheckBox2.java    From open-ig with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public JToolTip createToolTip() {
	JToolTip tip = new JToolTip();
	tip.setForeground(Color.BLACK);
	tip.setBackground(Color.YELLOW);
	tip.setFont(getFont());
	return tip;
}