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