|
|
|
@ -53,9 +53,6 @@ public class JxTableDataNamePane extends NamePane {
|
|
|
|
|
return this.dialog; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static final int MIN_WIDTH = 1000; |
|
|
|
|
private static final int MIN_HEIGHT = 600; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 计算数据集窗口大小 |
|
|
|
|
* 宽:80%,高:90% |
|
|
|
@ -64,9 +61,7 @@ public class JxTableDataNamePane extends NamePane {
|
|
|
|
|
*/ |
|
|
|
|
public static Dimension calculatePaneDimension() { |
|
|
|
|
DesignerFrame parent = DesignerContext.getDesignerFrame(); |
|
|
|
|
int width = Math.max((int) (parent.getWidth() * 0.8), MIN_WIDTH); |
|
|
|
|
int height = Math.max((int) (parent.getHeight() * 0.9), MIN_HEIGHT); |
|
|
|
|
return new Dimension(width, height); |
|
|
|
|
return new Dimension((int) (parent.getWidth() * 0.8), (int) (parent.getHeight() * 0.9)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|