@ -1,6 +1,6 @@
package com.fr.design.mainframe.theme.edit.chart ;
import com.fr.base.BaseUtils ;
import com.fine.theme.icon.LazyIcon ;
import com.fr.base.FRContext ;
import com.fr.design.constants.LayoutConstants ;
import com.fr.design.dialog.BasicPane ;
@ -54,8 +54,8 @@ public class ChartFontPane extends BasicPane {
private void initState ( ) {
fontNameComboBox = new UIComboBox ( DesignUtils . getAvailableFontFamilyNames4Report ( ) ) ;
fontSizeComboBox = new UIComboBox ( FONT_SIZES ) ;
bold = new UIToggleButton ( BaseUtils . read Icon( "/com/fr/design/images/m_format/cellstyle/ bold.png " ) ) ;
italic = new UIToggleButton ( BaseUtils . read Icon( "/com/fr/design/images/m_format/cellstyle/ italic.png " ) ) ;
bold = new UIToggleButton ( new Lazy Icon( "bold" ) ) ;
italic = new UIToggleButton ( new Lazy Icon( "italic" ) ) ;
fontColor = getColorButton ( ) ;
}
@ -65,11 +65,10 @@ public class ChartFontPane extends BasicPane {
protected void initComponents ( ) {
Component [ ] components = new Component [ ] {
fontColor , italic , bold
fontSizeComboBox , font Color , italic , bold
} ;
JPanel buttonPane = new JPanel ( new BorderLayout ( ) ) ;
buttonPane . add ( fontSizeComboBox , BorderLayout . CENTER ) ;
buttonPane . add ( GUICoreUtils . createFlowPane ( components , FlowLayout . LEFT , LayoutConstants . HGAP_LARGE ) , BorderLayout . EAST ) ;
JPanel buttonPane = new JPanel ( ) ;
buttonPane . add ( GUICoreUtils . createFlowPane ( components , FlowLayout . LEFT , LayoutConstants . HGAP_LARGE ) ) ;
this . setLayout ( new BorderLayout ( ) ) ;
this . add ( getContentPane ( buttonPane ) , BorderLayout . CENTER ) ;
@ -90,7 +89,7 @@ public class ChartFontPane extends BasicPane {
new Component [ ] { null , buttonPane }
} ;
return TableLayoutHelper . createGapTableLayoutPane ( components , rows , columnSize , 5 , LayoutConstants . VGAP_LARGE ) ;
return TableLayoutHelper . createGapTableLayoutPane ( components , rows , columnSize , 5 , 0 ) ;
}
public String getUILabelText ( ) {