|
|
|
@ -22,18 +22,13 @@ public class WidgetBoundsPaneFactory {
|
|
|
|
|
|
|
|
|
|
public enum NameAttribute { |
|
|
|
|
//默认的名称
|
|
|
|
|
DEFAULT(), |
|
|
|
|
DEFAULT(Toolkit.i18nText("Fine-Design_Basic_Component_Position"), Toolkit.i18nText("Fine-Design_Basic_Component_Size")), |
|
|
|
|
//控件对应的名称
|
|
|
|
|
WIDGET(Toolkit.i18nText("Fine-Design_Basic_Widget_Position"), Toolkit.i18nText("Fine-Design_Basic_Widget_Size")); |
|
|
|
|
|
|
|
|
|
private String positionName; |
|
|
|
|
private String sizeName; |
|
|
|
|
|
|
|
|
|
NameAttribute() { |
|
|
|
|
this.positionName = Toolkit.i18nText("Fine-Design_Basic_Component_Position"); |
|
|
|
|
this.sizeName = Toolkit.i18nText("Fine-Design_Basic_Component_Size"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NameAttribute(String positionName, String sizeName) { |
|
|
|
|
this.positionName = positionName; |
|
|
|
|
this.sizeName = sizeName; |
|
|
|
@ -66,6 +61,7 @@ public class WidgetBoundsPaneFactory {
|
|
|
|
|
boundsPane.add(panel); |
|
|
|
|
return new UIExpandablePane(Toolkit.i18nText("Fine-Design_Form_Coords_And_Size"), 280, 24, boundsPane); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static JPanel createRightPane(Component com1, Component com2) { |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|