Fixed player name label HTML bug

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@440 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Matthias Schiffer 2011-06-14 18:07:42 +02:00
parent c84bebceb7
commit 751d5a3aa9
5 changed files with 5 additions and 0 deletions

View file

@ -53,6 +53,7 @@ class GameListPanel extends JPanel implements IGameListPanel {
title = new JLabel();
title.setFont(title.getFont().deriveFont(16.0f));
title.putClientProperty("html.disable", Boolean.TRUE);
add(title, c);
add(Box.createVerticalStrut(3), c);

View file

@ -43,6 +43,7 @@ class PausePanel extends JPanel {
pauseLabel.setHorizontalTextPosition(JLabel.CENTER);
pauseLabel.setVerticalAlignment(JLabel.CENTER);
pauseLabel.setVerticalTextPosition(JLabel.CENTER);
pauseLabel.putClientProperty("html.disable", Boolean.TRUE);
add(pauseLabel);
endPauseButton = new JButton("Spiel fortsetzen");

View file

@ -133,6 +133,7 @@ class PlayerPanel extends JPanel implements IPlayerPanel {
currentPlayerNameLabel = new JLabel();
currentPlayerNameLabel.setHorizontalAlignment(JLabel.CENTER);
currentPlayerNameLabel.setVerticalAlignment(JLabel.CENTER);
currentPlayerNameLabel.putClientProperty("html.disable", Boolean.TRUE);
leftPanel.add(currentPlayerNameLabel);
hasLaidOutLabel = new JLabel();

View file

@ -948,6 +948,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel {
colorButton = new JButton();
nameLabel = new JLabel();
nameLabel.setBorder(new EmptyBorder(3, 7, 3, 7));
nameLabel.putClientProperty("html.disable", Boolean.TRUE);
colorButton.addActionListener(new ActionListener() {
@Override

View file

@ -43,6 +43,7 @@ class StartTurnPanel extends JPanel {
startTurnLabel.setHorizontalTextPosition(JLabel.CENTER);
startTurnLabel.setVerticalAlignment(JLabel.CENTER);
startTurnLabel.setVerticalTextPosition(JLabel.CENTER);
startTurnLabel.putClientProperty("html.disable", Boolean.TRUE);
add(startTurnLabel);
startTurnButton = new JButton("Zug beginnen");