freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

面向?qū)ο蟪绦虻脑O(shè)計(jì)—文本編輯器的設(shè)計(jì)與實(shí)現(xiàn)(更新版)

2025-08-15 16:19上一頁面

下一頁面
  

【正文】 ){//空 } } )。//將字號(hào)欄加入面板 ( toolPanel, )。 } } } )。 (label2)。 toolPanel = new JPanel()。 } } )。 //添加幫助菜單項(xiàng) JMenuItem helpItem = new JMenuItem( 幫助主題(H)... )。 ( 39。 (lastfromIndex+().length())。 JTextField inputText=new JTextField(20)。//使查找到的子字符串顯示出來 } } )。 (seekLabel)。 //添加向前查找菜單項(xiàng) JMenuItem frontItem = new JMenuItem( 向前查找(F) )。 StyleHandler styleHandler = new StyleHandler()。 fonts[ count ].addActionListener( itemHandler )。 )。 ( colorItems[ count ] )。 )。 public void actionPerformed( ActionEvent event ){ if(var) var = false。R39。 (new ActionListener() { public void actionPerformed(ActionEvent e) { int start=()。 int fromIndex=()。)。 String text=()。 JTextField inputText=new JTextField(10)。 } } )。 (lookupLabel)。R39。 )。C39。 ( new ActionListener(){ public void actionPerformed( ActionEvent event ){ selectText = ()。 ( 39。 ( 39。 (())。 ( saveAsItem )。 //刷新該流的緩沖,然后關(guān)閉該流 ()。 ()。} } })。 //用從fd中取得的文件建立新文件,即打開的文件 ( )。 // 設(shè)置打開菜單項(xiàng) JMenuItem openItem = new JMenuItem( 打開(O) )。 )。//存放工具欄 private int rowNumber = 0。 private JCheckBoxMenuItem styleItems[]。import .*。功能也是應(yīng)有盡有,有能改變字體的,有能改變文字顏色的。4 設(shè)計(jì)內(nèi)容 現(xiàn)在網(wǎng)絡(luò)上各種文本編輯器數(shù)不勝數(shù),有EmEditor ,UEStudio ,GridinSoft Notepad ,Notepad++,win32pad ,SkimEdit,UniRed, xint 。import .*。//與字號(hào)數(shù)組對(duì)應(yīng)的字號(hào)整數(shù),用于設(shè)置文字大小 private JRadioButtonMenuItem colorItems[], fonts[]。//工具欄 private JPanel toolPanel。F39。 }})。 if (() != null) { File file = new File(())。 } catch (IOException ex) {} } catch (FileNotFoundException ex) {} } else {return。 ( new ActionListener() { public void actionPerformed( ActionEvent event ) { (*.java)。 //這一部分用于把textArea1中的內(nèi)容打印到pw指定的文件file中去,file圍在對(duì)話框中選定的文件 ()。 )。 //,之后可以用PrintWriter pw = new PrintWriter(file)。 //加分隔線 // 設(shè)置退出菜單項(xiàng) JMenuItem exitItem = new JMenuItem( 退出(X) )。/**/ //創(chuàng)建編輯菜單及其菜單項(xiàng) JMenu editMenu = new JMenu( 編輯(E) )。 ( cutItem )。 ( 39。P39。 ( 39。 JTextField changetoText=new JTextField(10)。//獲得替換后的內(nèi)容 (changeText)。 JLabel lookupLabel=new JLabel(要替換的內(nèi)容)。 (null,swapPanel)。K39。 (null,insertPanel)。 (RemoveItem)。 ( 39。 ( new ActionListener(){ boolean var = false。C39。 ( colorItems[ count ] )。n39。 ( fonts[ count ] )。 ( styleItems[ count ] )。 )。 JTextField inputText=new JTextField(20)。 (lastfromIndex+().length())。 JLabel seekLabel=new JLabel(要查找的內(nèi)容)。//獲得查找后的位置 (lastfromIndex)。 // 設(shè)置“關(guān)于(A)...”菜單項(xiàng) JMenuItem aboutItem = new JMenuItem( 關(guān)于(A)... )。 } } )。 (null,scroller)。 (new BorderLayout() )。//添加 JLabel label2 = new JLabel(字體風(fēng)格)。 ( new Font( ().getName(), style, ().getSize() ) )。 (sizeBox)。//獲得文本區(qū)的函數(shù) setTitle(總共 + rowNumber + 行)。 count++ ) if ( colorItems[ count ].isSelected() ) { ( colorvalues[ count ] )。 if ( styleItems[ 0 ].isSelected() ) style += 。實(shí)踐證明邊學(xué)邊用效率才
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1