* a better fix for [ 1686486 ] ProcessDialog truncates display of log
This commit is contained in:
parent
0b55e13845
commit
60a67d670c
|
@ -119,6 +119,8 @@ public class ProcessDialog extends CFrame
|
||||||
public Dimension getPreferredSize() {
|
public Dimension getPreferredSize() {
|
||||||
Dimension d = super.getPreferredSize();
|
Dimension d = super.getPreferredSize();
|
||||||
Dimension m = getMaximumSize();
|
Dimension m = getMaximumSize();
|
||||||
|
System.out.println("prefer: " + d);
|
||||||
|
System.out.println("max: " + m);
|
||||||
if ( d.height > m.height || d.width > m.width ) {
|
if ( d.height > m.height || d.width > m.width ) {
|
||||||
Dimension d1 = new Dimension();
|
Dimension d1 = new Dimension();
|
||||||
d1.height = Math.min(d.height, m.height);
|
d1.height = Math.min(d.height, m.height);
|
||||||
|
@ -165,6 +167,7 @@ public class ProcessDialog extends CFrame
|
||||||
centerPanel.setBorder(null);
|
centerPanel.setBorder(null);
|
||||||
centerPanel.setLayout(new BorderLayout());
|
centerPanel.setLayout(new BorderLayout());
|
||||||
dialog.add(centerPanel, BorderLayout.CENTER);
|
dialog.add(centerPanel, BorderLayout.CENTER);
|
||||||
|
mainLayout.setVgap(2);
|
||||||
//
|
//
|
||||||
this.getRootPane().setDefaultButton(bOK);
|
this.getRootPane().setDefaultButton(bOK);
|
||||||
} // jbInit
|
} // jbInit
|
||||||
|
@ -331,8 +334,10 @@ public class ProcessDialog extends CFrame
|
||||||
m_isLocked = false;
|
m_isLocked = false;
|
||||||
|
|
||||||
//no longer needed, hide to give more space to display log
|
//no longer needed, hide to give more space to display log
|
||||||
parameterPanel.setVisible(false);
|
dialog.remove(centerPanel);
|
||||||
messagePane.setMaximumSize(null);
|
messagePane.setMaximumSize(null);
|
||||||
|
dialog.remove(messagePane);
|
||||||
|
dialog.add(messagePane, BorderLayout.CENTER);
|
||||||
|
|
||||||
this.validate();
|
this.validate();
|
||||||
AEnv.showCenterScreen(this);
|
AEnv.showCenterScreen(this);
|
||||||
|
|
Loading…
Reference in New Issue