diff --git a/Mage.Client/src/main/java/mage/client/dialog/AboutDialog.form b/Mage.Client/src/main/java/mage/client/dialog/AboutDialog.form index 3055978fc8..3fb27cbf15 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/AboutDialog.form +++ b/Mage.Client/src/main/java/mage/client/dialog/AboutDialog.form @@ -23,26 +23,26 @@ - + - - + + - - - + + + - + @@ -60,10 +60,10 @@ - + + + - - @@ -94,17 +94,7 @@ - - - - - - - - - - - + @@ -115,5 +105,26 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/Mage.Client/src/main/java/mage/client/dialog/AboutDialog.java b/Mage.Client/src/main/java/mage/client/dialog/AboutDialog.java index c9b8c1165c..d93a3bf714 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/AboutDialog.java +++ b/Mage.Client/src/main/java/mage/client/dialog/AboutDialog.java @@ -6,15 +6,20 @@ import mage.utils.MageVersion; import javax.swing.*; import java.awt.event.KeyEvent; - /** * @author JayDi85 */ public class AboutDialog extends MageDialog { + private static String devsList = "BetaSteward, Noxx, Eugen.Rivniy, North, LevelX2, " + + "Jeff, Plopman, dustinconrad, emerald000, fireshoes, lunaskyrise, " + + "mnapoleon, jgod, LoneFox, drmDev, spjspj, TheElk801, L_J, JayDi85, " + + "jmharmon, Ketsuban, hitch17"; + public AboutDialog() { initComponents(); this.modal = false; + panelDevs.setText(devsList + " and hundreds of other developers from https://github.com/magefree/mage/graphs/contributors"); } public void showDialog(MageVersion version) { @@ -54,9 +59,10 @@ public class AboutDialog extends MageDialog { jLabel1 = new javax.swing.JLabel(); lblVersion = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); - jLabel3 = new javax.swing.JLabel(); - jLabel4 = new javax.swing.JLabel(); btnWhatsNew = new javax.swing.JButton(); + scrollDevs = new javax.swing.JScrollPane(); + panelDevs = new javax.swing.JTextPane(); + labelDevs = new javax.swing.JLabel(); setMaximizable(true); setTitle("About XMage"); @@ -72,11 +78,7 @@ public class AboutDialog extends MageDialog { lblVersion.setText("0.0.0"); - jLabel2.setText("Courtesy: BetaSteward@googlemail.com. Site: http://XMage.de/"); - - jLabel3.setText("Devs: BetaSteward, Noxx, Eugen.Rivniy, North, LevelX2, Jeff, Plopman, dustinconrad, emerald000.,"); - - jLabel4.setText("fireshoes, lunaskyrise, mnapoleon, jgod, LoneFox."); + jLabel2.setText("Courtesy: BetaSteward@googlemail.com. Site: http://xmage.de/"); btnWhatsNew.setText("What's new"); btnWhatsNew.addActionListener(new java.awt.event.ActionListener() { @@ -85,27 +87,34 @@ public class AboutDialog extends MageDialog { } }); + scrollDevs.setBorder(null); + + panelDevs.setEditable(false); + scrollDevs.setViewportView(panelDevs); + + labelDevs.setText("Developers:"); + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() + .addGroup(layout.createSequentialGroup() .addContainerGap() - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(layout.createSequentialGroup() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(scrollDevs) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(btnWhatsNew, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() + .addGroup(layout.createSequentialGroup() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(lblVersion)) - .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING)) - .addGap(0, 0, Short.MAX_VALUE))) + .addComponent(jLabel2) + .addComponent(labelDevs)) + .addGap(0, 80, Short.MAX_VALUE))) .addContainerGap()) ); layout.setVerticalGroup( @@ -118,10 +127,10 @@ public class AboutDialog extends MageDialog { .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(labelDevs) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(scrollDevs, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jLabel4) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 68, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnWhatsNew, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) @@ -144,9 +153,10 @@ public class AboutDialog extends MageDialog { private javax.swing.JButton btnWhatsNew; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; - private javax.swing.JLabel jLabel3; - private javax.swing.JLabel jLabel4; + private javax.swing.JLabel labelDevs; private javax.swing.JLabel lblVersion; + private javax.swing.JTextPane panelDevs; + private javax.swing.JScrollPane scrollDevs; // End of variables declaration//GEN-END:variables }