Browse Source

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

research/11.0
Yuan.Wang 4 years ago
parent
commit
292a5bc71e
  1. 1
      designer-form/src/main/java/com/fr/design/designer/creator/XButton.java
  2. 8
      designer-form/src/main/java/com/fr/design/designer/creator/XCreator.java

1
designer-form/src/main/java/com/fr/design/designer/creator/XButton.java

@ -14,7 +14,6 @@ import com.fr.design.mainframe.widget.editors.ImgBackgroundEditor;
import com.fr.design.mainframe.widget.editors.ShortCutTextEditor;
import com.fr.design.mainframe.widget.renderer.FontCellRenderer;
import com.fr.design.mainframe.widget.renderer.IconCellRenderer;
import com.fr.design.mainframe.widget.topxcreator.BasicTopXCreator;
import com.fr.form.parameter.FormSubmitButton;
import com.fr.form.ui.Button;
import com.fr.form.ui.FreeButton;

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

@ -812,12 +812,12 @@ public abstract class XCreator extends JPanel implements XComponent, XCreatorToo
*/
@Nullable
public BasicTopXCreator getTopXCreator() {
return new BasicTopXCreator(this){
return new BasicTopXCreator(this) {
@Override
protected void addComponent() {
BufferedImage image=getImage();
BufferedImage image = getImage();
Icon icon = new ImageIcon(image);
JLabel jLabel = new JLabel(icon,JLabel.CENTER);
JLabel jLabel = new JLabel(icon, JLabel.CENTER);
jLabel.setSize(getSize());
this.add(jLabel);
}
@ -826,7 +826,7 @@ public abstract class XCreator extends JPanel implements XComponent, XCreatorToo
/**
* 获得组件的图像
* */
*/
public BufferedImage getImage() {
BufferedImage image = CoreGraphHelper.createBufferedImage(getWidth(), getHeight());
Graphics g = image.createGraphics();

Loading…
Cancel
Save