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