- Fixed the main deck title label initially not showing the number of cards when Sideboarding.

This commit is contained in:
Agetian
2013-03-10 18:24:28 +00:00
parent 2de038d0bc
commit 8afd761a42

View File

@@ -161,7 +161,6 @@ public class GuiChoose {
// An input box for handling the order of choices. // An input box for handling the order of choices.
final JFrame frame = new JFrame(); final JFrame frame = new JFrame();
DualListBox<T> dual = new DualListBox<T>(remainingObjects, sourceChoices, destChoices); DualListBox<T> dual = new DualListBox<T>(remainingObjects, sourceChoices, destChoices);
dual.setSideboardMode(sideboardingMode);
dual.setSecondColumnLabelText(top); dual.setSecondColumnLabelText(top);
frame.setLayout(new BorderLayout()); frame.setLayout(new BorderLayout());
@@ -170,6 +169,8 @@ public class GuiChoose {
frame.setTitle(title); frame.setTitle(title);
frame.setVisible(false); frame.setVisible(false);
dual.setSideboardMode(sideboardingMode);
final JDialog dialog = new JDialog(frame, true); final JDialog dialog = new JDialog(frame, true);
dialog.setTitle(title); dialog.setTitle(title);
dialog.setContentPane(dual); dialog.setContentPane(dual);