|
|
@ -3,7 +3,6 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
package com.fr.design.actions.cell.style; |
|
|
|
package com.fr.design.actions.cell.style; |
|
|
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
import com.fr.stable.os.OperatingSystem; |
|
|
|
import com.fr.stable.os.OperatingSystem; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
@ -84,7 +83,7 @@ public class ReportFontNameAction extends AbstractStyleAction { |
|
|
|
UIComboBox itemComponent = new UIComboBox(DesignUtils.getAvailableFontFamilyNames4Report()); |
|
|
|
UIComboBox itemComponent = new UIComboBox(DesignUtils.getAvailableFontFamilyNames4Report()); |
|
|
|
this.putValue(UIComboBox.class.getName(), itemComponent); |
|
|
|
this.putValue(UIComboBox.class.getName(), itemComponent); |
|
|
|
//设置最佳宽度.
|
|
|
|
//设置最佳宽度.
|
|
|
|
itemComponent.setPreferredSize(FineUIScale.scale(new Dimension(140, 24))); |
|
|
|
itemComponent.setPreferredSize(new Dimension(150, 24)); |
|
|
|
|
|
|
|
|
|
|
|
itemComponent.setEnabled(this.isEnabled()); |
|
|
|
itemComponent.setEnabled(this.isEnabled()); |
|
|
|
itemComponent.addActionListener(this); |
|
|
|
itemComponent.addActionListener(this); |
|
|
|