Ejemplo n.º 1
0
 public void reloadColor() {
   borderColor = BasicColors.bgcolors[Settings.getInstance().getTheme()];
   borderColorDarker = BasicColors.bgcolors_darker[Settings.getInstance().getTheme()];
   if (border != null) border.setColor(borderColor);
   header.setBackground(borderColor);
   mainTab.setBackground(borderColorDarker);
   gameTab.setBackground(borderColorDarker);
   launcherTab.setBackground(borderColorDarker);
   repaint();
 }
Ejemplo n.º 2
0
 public void showMessage(String message) {
   isShowedMessage = true;
   borderColor = BasicColors.COLOR_RED;
   borderColorDarker = BasicColors.COLOR_RED_DARKER;
   header.setBackground(borderColor);
   mainTab.setBackground(borderColorDarker);
   gameTab.setBackground(borderColorDarker);
   launcherTab.setBackground(borderColorDarker);
   if (border != null) border.setColor(borderColor);
   repaint();
   windowTitle.setText(message);
   windowTitle.setForeground(Color.white);
 }