|
|
|
@ -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); |
|
|
|
|