From 69ce53e6e8036bf01bdd090e8785f4d63c486d1e Mon Sep 17 00:00:00 2001 From: LevelX2 <ludwig.hirth@online.de> Date: Wed, 30 Jul 2014 20:38:15 +0200 Subject: [PATCH] * New Tournament dialog - Changed look of player 1 name field. --- .../client/dialog/NewTournamentDialog.form | 21 +++++++++++++------ .../client/dialog/NewTournamentDialog.java | 13 +++++++----- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.form b/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.form index 6fee0cf02a..e0bb660dcd 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.form +++ b/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.form @@ -126,7 +126,7 @@ <EmptySpace max="-2" attributes="0"/> <Component id="lblPacks" min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" max="-2" attributes="0"/> - <Component id="pnlPacks" pref="89" max="32767" attributes="0"/> + <Component id="pnlPacks" pref="95" max="32767" attributes="0"/> <EmptySpace min="-2" max="-2" attributes="0"/> <Group type="103" groupAlignment="1" max="-2" attributes="0"> <Component id="cbAllowSpectators" alignment="1" max="32767" attributes="0"/> @@ -339,12 +339,12 @@ <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0"> <Component id="jLabel3" min="-2" max="-2" attributes="0"/> - <EmptySpace min="-2" max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jLabel4" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="txtPlayer1Name" alignment="3" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" max="-2" attributes="0"> + <Component id="txtPlayer1Name" pref="24" max="32767" attributes="0"/> + <Component id="jLabel4" max="32767" attributes="0"/> </Group> - <EmptySpace type="unrelated" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> <Component id="pnlOtherPlayers" pref="91" max="32767" attributes="0"/> </Group> </Group> @@ -367,6 +367,15 @@ <Component class="javax.swing.JTextField" name="txtPlayer1Name"> <Properties> <Property name="editable" type="boolean" value="false"/> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo"> + <EtchetBorder/> + </Border> + </Property> + <Property name="disabledTextColor" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="0" green="0" id="black" palette="1" red="0" type="palette"/> + </Property> + <Property name="enabled" type="boolean" value="false"/> </Properties> </Component> <Container class="javax.swing.JPanel" name="pnlOtherPlayers"> diff --git a/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java b/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java index b0c645f25f..7b7f93e195 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java +++ b/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java @@ -251,6 +251,9 @@ public class NewTournamentDialog extends MageDialog { jLabel4.setText("Name:"); txtPlayer1Name.setEditable(false); + txtPlayer1Name.setBorder(javax.swing.BorderFactory.createEtchedBorder()); + txtPlayer1Name.setDisabledTextColor(java.awt.Color.black); + txtPlayer1Name.setEnabled(false); pnlOtherPlayers.setLayout(new java.awt.GridLayout(0, 1, 2, 0)); @@ -272,10 +275,10 @@ public class NewTournamentDialog extends MageDialog { .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel4) - .addComponent(txtPlayer1Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(txtPlayer1Name, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE) + .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(pnlOtherPlayers, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)) ); @@ -383,7 +386,7 @@ public class NewTournamentDialog extends MageDialog { .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(lblPacks) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(pnlPacks, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) + .addComponent(pnlPacks, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(cbAllowSpectators, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)