diff --git a/designer-base/src/com/fr/design/hyperlink/WebHyperNorthPane.java b/designer-base/src/com/fr/design/hyperlink/WebHyperNorthPane.java index 8bc2894bb8..a7a0a8077a 100644 --- a/designer-base/src/com/fr/design/hyperlink/WebHyperNorthPane.java +++ b/designer-base/src/com/fr/design/hyperlink/WebHyperNorthPane.java @@ -2,7 +2,7 @@ package com.fr.design.hyperlink; import com.fr.config.ServerPreferenceConfig; import com.fr.design.constants.LayoutConstants; -import com.fr.design.gui.ilable.UILabel; + import com.fr.design.gui.itextfield.UITextField; import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.utils.gui.GUICoreUtils; @@ -11,9 +11,9 @@ import com.fr.js.WebHyperlink; import com.fr.stable.ProductConstants; import com.fr.stable.StringUtils; -import javax.swing.*; -import javax.swing.border.Border; -import java.awt.*; +import javax.swing.JPanel; +import java.awt.BorderLayout; + /** * chart 网页链接 定义属性 target url 特征的 界面 @@ -47,23 +47,20 @@ public class WebHyperNorthPane extends AbstractHyperNorthPane { protected JPanel setHeaderPanel() { JPanel headerPane = FRGUIPaneFactory.createBorderLayout_L_Pane(); - JPanel urlPane = new JPanel(); - urlTextField = new UITextField(43); - urlPane.add(urlTextField); urlTextField.setText(ProductConstants.WEBSITE_URL); //UILabel label = new UILabel(Inter.getLocText(new String[]{"Example","Or"}, new String[]{":http://www.baidu.com","/main.jsp"})); - JPanel urlWithHelp = GUICoreUtils.createNamedPane(urlPane, "URL:"); + JPanel urlWithHelp = GUICoreUtils.createNamedPane(urlTextField, "URL:"); if (this.needRenamePane) { headerPane.setLayout(new BorderLayout(LayoutConstants.VGAP_LARGE, LayoutConstants.VGAP_SMALL)); itemNameTextField = new UITextField(); headerPane.add(GUICoreUtils.createNamedPane(itemNameTextField, Inter.getLocText("FR-Designer_Name") + ":"), BorderLayout.NORTH); - headerPane.add(urlWithHelp, BorderLayout.WEST); + headerPane.add(urlWithHelp, BorderLayout.CENTER); } else { - headerPane.add(urlWithHelp, BorderLayout.WEST); + headerPane.add(urlWithHelp, BorderLayout.NORTH); } return headerPane;