|
|
|
@ -6,6 +6,7 @@ import com.fr.design.i18n.Toolkit;
|
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
@ -42,9 +43,11 @@ public abstract class TipDialog extends JDialog implements ActionListener {
|
|
|
|
|
JTextPane area = new JTextPane(); |
|
|
|
|
UILabel typeLabel = new UILabel(type); |
|
|
|
|
area.insertComponent(typeLabel); |
|
|
|
|
if (StringUtils.isNotEmpty(type)) { |
|
|
|
|
UILabel logoIconLabel = new UILabel(); |
|
|
|
|
logoIconLabel.setIcon(IOUtils.readIcon("com/fr/base/images/oem/logo.png")); |
|
|
|
|
area.insertComponent(logoIconLabel); |
|
|
|
|
} |
|
|
|
|
area.setPreferredSize(new Dimension(400, 100)); |
|
|
|
|
area.setEnabled(true); |
|
|
|
|
area.setEditable(false); |
|
|
|
|