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(); }
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); }