These several lines of code will display the opponent icon above the opponent life on the east side of the opponent panel.

This commit is contained in:
jendave
2011-08-06 04:39:10 +00:00
parent bb003620b0
commit 2afc07d01a

View File

@@ -861,13 +861,21 @@ public class GuiDisplay3 extends JFrame implements CardContainer, Display, NewCo
oppNumbersPanel.add(oppGraveValue); oppNumbersPanel.add(oppGraveValue);
oppNumbersPanel.setBackground(c1); oppNumbersPanel.setBackground(c1);
oppLifeLabel.setHorizontalAlignment(SwingConstants.CENTER);
JPanel oppIconLifePanel = new JPanel(new GridLayout(0, 1, 0, 0));
oppIconLifePanel.add(oppIconLabel);
oppIconLifePanel.add(oppLifeLabel);
oppIconLifePanel.setBackground(c1);
JPanel oppPanel = new JPanel(); JPanel oppPanel = new JPanel();
oppPanel.setBackground(c1); oppPanel.setBackground(c1);
oppPanel.setBorder(new TitledBorder(new EtchedBorder(), ForgeProps.getLocalized(COMPUTER_TITLE))); oppPanel.setBorder(new TitledBorder(new EtchedBorder(), ForgeProps.getLocalized(COMPUTER_TITLE)));
oppPanel.setLayout(new BorderLayout()); oppPanel.setLayout(new BorderLayout());
oppPanel.add(oppNumbersPanel, BorderLayout.WEST); oppPanel.add(oppNumbersPanel, BorderLayout.WEST);
oppPanel.add(oppIconLabel, BorderLayout.CENTER); // oppPanel.add(oppIconLabel, BorderLayout.CENTER);
oppPanel.add(oppLifeLabel, BorderLayout.EAST); // oppPanel.add(oppLifeLabel, BorderLayout.EAST);
oppPanel.add(oppIconLifePanel, BorderLayout.EAST);
oppPanel.add(oppPCLabel, BorderLayout.AFTER_LAST_LINE); oppPanel.add(oppPCLabel, BorderLayout.AFTER_LAST_LINE);
pane.add(new ExternalPanel(oppPanel), "compy"); pane.add(new ExternalPanel(oppPanel), "compy");
} }