|
|
|
|
@ -4,8 +4,9 @@ import info.clearthought.layout.TableLayout;
|
|
|
|
|
import info.clearthought.layout.TableLayoutConstraints;
|
|
|
|
|
|
|
|
|
|
import java.awt.Dimension;
|
|
|
|
|
import java.awt.GraphicsEnvironment;
|
|
|
|
|
import java.awt.Insets;
|
|
|
|
|
import java.awt.Toolkit;
|
|
|
|
|
import java.awt.Rectangle;
|
|
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
|
import java.awt.event.ActionListener;
|
|
|
|
|
import java.util.Enumeration;
|
|
|
|
|
@ -89,15 +90,12 @@ public class TreeInserterDialog extends EvoDialog
|
|
|
|
|
startupListeners();
|
|
|
|
|
loadExpansionState();
|
|
|
|
|
setEnabled();
|
|
|
|
|
Toolkit tk = Toolkit.getDefaultToolkit();
|
|
|
|
|
if( tk != null )
|
|
|
|
|
{
|
|
|
|
|
this.setSize( tk.getScreenSize().width, tk.getScreenSize().height );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
this.setSize( DIALOG_DEFAULT_DIMENSIONS );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final Rectangle rect = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
|
|
|
|
|
this.setSize( rect.width, rect.height );
|
|
|
|
|
|
|
|
|
|
// this.setSize( DIALOG_DEFAULT_DIMENSIONS );
|
|
|
|
|
|
|
|
|
|
this.setModal( true );
|
|
|
|
|
this.setVisible( true );
|
|
|
|
|
|