set location, removed some comments

This commit is contained in:
7u83 2017-04-07 22:14:58 +02:00
parent 5d2aa17ce4
commit 14dd62891d
2 changed files with 5 additions and 3 deletions

View File

@ -24,7 +24,7 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="traderListPanel22" alignment="0" pref="922" max="32767" attributes="0"/>
<Component id="traderListPanel22" alignment="0" pref="714" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">

View File

@ -1,5 +1,7 @@
package gui;
import java.awt.Dialog;
/*
* Copyright (c) 2017, 7u83 <7u83@mail.ru>
* All rights reserved.
@ -40,7 +42,7 @@ public class TraderListDialog extends javax.swing.JDialog {
public TraderListDialog(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
// this.setLocationRelativeTo(MainWin.instance);
setLocationRelativeTo(parent);
}
/**
@ -61,7 +63,7 @@ public class TraderListDialog extends javax.swing.JDialog {
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(traderListPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, 922, Short.MAX_VALUE)
.addComponent(traderListPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, 714, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)