Browse Source

REPORT-36985 删除无用依赖,格式化

research/11.0
Yuan.Wang 4 years ago
parent
commit
add6877895
  1. 10
      designer-form/src/main/java/com/fr/design/designer/creator/XCreator.java

10
designer-form/src/main/java/com/fr/design/designer/creator/XCreator.java

@ -30,7 +30,12 @@ import com.fr.stable.StableUtils;
import com.fr.stable.StringUtils;
import com.fr.third.javax.annotation.Nullable;
import javax.swing.*;
import javax.swing.BorderFactory;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;
import java.awt.BorderLayout;
import java.awt.Color;
@ -815,8 +820,7 @@ public abstract class XCreator extends JPanel implements XComponent, XCreatorToo
return new BasicTopXCreator(this) {
@Override
protected void addComponent() {
BufferedImage image = getImage();
Icon icon = new ImageIcon(image);
Icon icon = new ImageIcon(getImage());
JLabel jLabel = new JLabel(icon, JLabel.CENTER);
jLabel.setSize(getSize());
this.add(jLabel);

Loading…
Cancel
Save