@ -4,12 +4,14 @@ import com.fr.base.BaseUtils;
import com.fr.design.dialog.FineJOptionPane ;
import com.fr.design.gui.ibutton.UIButton ;
import com.fr.design.gui.ilable.UILabel ;
import com.fr.design.i18n.DesignSizeI18nManager ;
import com.fr.design.i18n.Toolkit ;
import com.fr.design.mainframe.DesignerContext ;
import com.fr.design.mainframe.JTemplate ;
import com.fr.design.worker.save.CallbackSaveWorker ;
import com.fr.file.FILE ;
import com.fr.file.FileNodeFILE ;
import com.fr.general.IOUtils ;
import com.fr.log.FineLoggerFactory ;
import com.fr.rpc.ExceptionHandler ;
import com.fr.rpc.RPCInvokerExceptionInfo ;
@ -21,7 +23,6 @@ import javax.swing.JDialog;
import javax.swing.JPanel ;
import javax.swing.SwingUtilities ;
import javax.swing.SwingWorker ;
import java.awt.Dimension ;
import java.awt.FlowLayout ;
import java.awt.event.ActionEvent ;
import java.awt.event.ActionListener ;
@ -40,7 +41,7 @@ public class CheckButton extends UIButton {
private UILabel message ;
private UIButton okButton ;
private JDialog dialog ;
private UILabel u iLabel;
private UILabel image Label ;
public CheckButton ( ) {
this . setIcon ( BaseUtils . readIcon ( "/com/fr/design/images/buttonicon/check.png" ) ) ;
@ -71,7 +72,7 @@ public class CheckButton extends UIButton {
}
if ( set . isEmpty ( ) ) {
okButton . setEnabled ( true ) ;
u iLabel. setIcon ( BaseUtils . readIcon ( "com/fr/design/images/correct.png" ) ) ;
image Label . setIcon ( BaseUtils . readIcon ( "com/fr/design/images/correct.png" ) ) ;
message . setText ( "<html>" + Toolkit . i18nText ( "Fine_Designer_Check_Font_Success" ) + "</html>" ) ;
} else {
if ( dialog ! = null ) {
@ -161,7 +162,6 @@ public class CheckButton extends UIButton {
} ) ;
checkThread . execute ( ) ;
dialog . setVisible ( true ) ;
dialog . dispose ( ) ;
}
} ;
@ -171,7 +171,7 @@ public class CheckButton extends UIButton {
@Override
public Void callHandler ( RPCInvokerExceptionInfo rpcInvokerExceptionInfo ) {
u iLabel. setIcon ( BaseUtils . readIcon ( "com/fr/design/images/error.png" ) ) ;
image Label . setIcon ( BaseUtils . readIcon ( "com/fr/design/images/error.png" ) ) ;
message . setText ( "<html>" + Toolkit . i18nText ( "Fine_Designer_Check_Font_Upgrade" ) + "</html>" ) ;
okButton . setEnabled ( true ) ;
return null ;
@ -183,7 +183,7 @@ public class CheckButton extends UIButton {
private void initDialogPane ( ) {
message = new UILabel ( ) ;
message . setText ( Toolkit . i18nText ( "Fine-Designer_Check_Font_Checking" ) + "..." ) ;
u iLabel = new UILabel ( ) ;
image Label = new UILabel ( ) ;
okButton = new UIButton ( Toolkit . i18nText ( "Fine-Design_Report_OK" ) ) ;
okButton . setEnabled ( false ) ;
okButton . addActionListener ( new ActionListener ( ) {
@ -194,13 +194,13 @@ public class CheckButton extends UIButton {
dialog = new JDialog ( ) ;
dialog . setTitle ( Toolkit . i18nText ( "Fine_Designer_Check_Font" ) ) ;
dialog . setModal ( true ) ;
dialog . setSize ( new Dimension ( 268 , 118 ) ) ;
dialog . setSize ( DesignSizeI18nManager . getInstance ( ) . i18nDimension ( this . getClass ( ) . getName ( ) ) ) ;
JPanel jp = new JPanel ( ) ;
JPanel upPane = new JPanel ( ) ;
JPanel downPane = new JPanel ( ) ;
u iLabel = new UILabel ( Base Utils. readIcon ( "com/fr/design/images/waiting.png" ) ) ;
image Label = new UILabel ( IO Utils. readIcon ( "com/fr/design/images/waiting.png" ) ) ;
upPane . setLayout ( new FlowLayout ( FlowLayout . LEFT , 10 , 10 ) ) ;
upPane . add ( u iLabel) ;
upPane . add ( image Label ) ;
upPane . add ( message ) ;
downPane . setLayout ( new FlowLayout ( FlowLayout . CENTER , 6 , 0 ) ) ;
downPane . add ( okButton ) ;