package Format; import Font.MyFont; import Main.*; import java.awt.Font; /** *@descriptin 整合,实现格式菜单下的所有功能 * @author 小路 * @date 2013-05-07 */ public class Format { private MainFrame mf; public Format(MainFrame mf) { this.mf = mf; } //实现自动换行方法 public void autoSwrap() { if(mf.get_autowrap()) { mf.getMainText().setLineWrap(true); mf.get_statusbar().setSelected(false); mf.get_statusbar().setEnabled(false); mf.get_status().setVisible(false); mf.set_switchto(false); } else { mf.getMainText().setLineWrap(false); mf.get_statusbar().setSelected(true); mf.get_statusbar().setEnabled(true); mf.get_status().setVisible(true); mf.set_switchto(true); } } //实现字体方法 public void setFont() { MyFont myfont = new MyFont(new Font("黑体",20,20),mf); myfont.showDialog(mf); } }

xxxjjn LV1
2024年6月16日
queueandstack LV3
2022年12月2日
沙发床上的 LV1
2022年5月30日
183077946781 LV1
2021年11月15日
尹恒yingying LV18
2021年10月12日
任天晴 LV1
2021年7月10日
ncy123456789 LV6
2021年7月6日
毫无qiushengyu LV2
2021年7月2日
祁康伟 LV1
2021年7月1日
周星星哥哥在外面 LV1
2021年6月15日