⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 -

📁 详细对一般字符串表达式解析
💻
📖 第 1 页 / 共 5 页
字号:
                        super(f,true);<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        this.setTitle(title);<BR>&nbsp; &nbsp; &nbsp; &nbsp; l = 
                        new Label("About Calculator V 1.00");<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; l.setForeground(Color.blue);<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; l.setFont(new 
                        Font("Arial",Font.PLAIN,24));<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; b = new Button(" 确定 ");<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; b.addActionListener(this); //(new 
                        ButtonHandler());<BR>&nbsp; &nbsp; &nbsp; &nbsp; ta = 
                        new 
                        TextArea("",30,50,TextArea.SCROLLBARS_VERTICAL_ONLY);<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; 
                        ta.setBackground(Color.lightGray);<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; ta.setEditable(false);<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; c1 = new Canvas();<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; c2 = new Canvas();<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        c3 = new Canvas();<BR>&nbsp; &nbsp; &nbsp; &nbsp; c4 = 
                        new Canvas();<BR>&nbsp; &nbsp; &nbsp; &nbsp; p1 = new 
                        Panel();<BR>&nbsp; &nbsp; &nbsp; &nbsp; p2 = new 
                        Panel();<BR>&nbsp; &nbsp; &nbsp; &nbsp; p3 = new 
                        Panel();<BR>&nbsp; &nbsp; &nbsp; &nbsp; p2.setLayout(new 
                        BorderLayout(5,5));<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        p1.setBackground(Color.lightGray);<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; p2.setBackground(new 
                        Color(130,254,240,200));<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        p3.setBackground(Color.lightGray);<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; p1.add(l);<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        p2.add(ta);<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        p2.add(c1,"North");<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        p2.add(c2,"South");<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        p2.add(c3,"West");<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        p2.add(c4,"East");<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        p3.add(b);<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        this.add(p1,"North");<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        this.add(p2,"Center");<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        this.add(p3,"South");<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        this.setLocation(f.getX() + f.getWidth(), 
                        f.getY());<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        this.addWindowListener(new WindowHandler());<BR>&nbsp; 
                        &nbsp; }<BR>&nbsp; &nbsp; <BR>&nbsp; &nbsp; public void 
                        display(){<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        this.setSize(350,350);&nbsp; &nbsp; <BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; this.readfromFile(filename);<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; this.setTextArea();<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; this.setResizable(false);<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; this.setVisible(true);<BR>&nbsp; 
                        &nbsp; }<BR>&nbsp; &nbsp; <BR>&nbsp; &nbsp; public void 
                        readfromFile(String s){<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        try{<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        BufferedReader br = new BufferedReader(new 
                        FileReader(s));<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; String s1 = br.readLine();<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; String s2 = "";<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(s1 != 
                        null){<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; s2 = s2 + s1 + "\n";<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s1 = 
                        br.readLine();<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; }<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        br.close();<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        content = s2;<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        }catch(IOException e){<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; e.printStackTrace();<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; }<BR>&nbsp; &nbsp; }<BR>&nbsp; &nbsp; 
                        <BR>&nbsp; &nbsp; public void setFilename(String 
                        s){<BR>&nbsp; &nbsp; &nbsp; &nbsp; filename = 
                        s;<BR>&nbsp; &nbsp; }<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        <BR>&nbsp; &nbsp; public void setLabel(String 
                        s){<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        l.setText(s);<BR>&nbsp; &nbsp; }<BR>&nbsp; &nbsp; 
                        <BR>&nbsp; &nbsp; public void setTextArea(){<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; ta.setText(content);<BR>&nbsp; 
                        &nbsp; }<BR>&nbsp; &nbsp; <BR>//&nbsp; &nbsp; private 
                        class ButtonHandler implements ActionListener{<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; public void 
                        actionPerformed(ActionEvent e){<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; dispose();<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; }<BR>//&nbsp; &nbsp; }<BR>&nbsp; &nbsp; 
                        <BR>&nbsp; &nbsp; <BR>&nbsp; &nbsp; private class 
                        WindowHandler extends WindowAdapter{<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; public void windowClosing(WindowEvent 
                        e){<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        dispose();<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        //System.exit(1);<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        }<BR>&nbsp; &nbsp; }<BR>}<BR><BR><BR></TD></TR>
                    <TR>
                      <TD vAlign=bottom><BR></TD></TR></TBODY></TABLE></TD></TR>
              <TR class=tBody1>
                <TD width="20%">IP:<SPAN style="FONT-SIZE: 8pt">隐藏</SPAN></TD>
                <FORM action=./index.php method=post><INPUT name=mods 
                type=hidden value=moderate> <INPUT name=action type=hidden 
                value=addGrade> <INPUT name=forumid type=hidden value=11> <INPUT 
                name=postid type=hidden value=47> <INPUT name=topicid 
                type=hidden value=2> 
                <TD align=right><A 
                  href="http://www.hiyi.com.cn/bbs/index.php?mods=modetopic&amp;action=mode&amp;forumid=11&amp;postid=47&amp;topicid=2"><IMG 
                  align=left alt=编辑 
                  src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/read_edit.gif"></A> 
                  <A 
                  href="http://www.hiyi.com.cn/bbs/index.php?mods=modetopic&amp;action=del&amp;forumid=11&amp;postid=47&amp;topicid=2"><IMG 
                  align=left alt=删除 
                  src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/read_delete.gif"></A> 
                  发表:<FONT style="FONT-SIZE: 8pt">2005-06-14 
                  21:04:35</FONT>&nbsp;&nbsp; <B><FONT color=red>2</FONT></B> 
                  F&nbsp;&nbsp; <SELECT name=rating> <OPTION selected 
                    value=0>评分</OPTION> <OPTION value=5>+5</OPTION> <OPTION 
                    value=4>+4</OPTION> <OPTION value=3>+3</OPTION> <OPTION 
                    value=2>+2</OPTION> <OPTION value=1>+1</OPTION> <OPTION 
                    value=-1>-1</OPTION> <OPTION value=-2>-2</OPTION> <OPTION 
                    value=-3>-3</OPTION> <OPTION value=-4>-4</OPTION> <OPTION 
                    value=-5>-5</OPTION></SELECT> <INPUT name=submit type=submit value="评 分"> 
              </TD></FORM></TR></TBODY></TABLE>
            <TABLE cellPadding=4 cellSpacing=1 class=tInner>
              <TBODY>
              <TR class=tCate>
                <TD colSpan=3>
                  <P align=center> </P></TD></TR>
              <TR class=tHead>
                <TD align=right colSpan=2><A 
                  href="http://www.hiyi.com.cn/bbs/index.php?mods=post&amp;action=showReply&amp;forumid=11&amp;postid=47&amp;topicid=3"><IMG 
                  alt=引用 
                  src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/read_quote.gif"></A> 
                  <A 
                  href="http://www.hiyi.com.cn/bbs/index.php?mods=member&amp;action=info&amp;id=834" 
                  target=_blank><IMG alt="查看 孤魂野鬼 的个人资料" 
                  src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/person_info.gif"></A> 
                  <A 
                  href="http://www.hiyi.com.cn/bbs/index.php?mods=usermgs&amp;action=sentmgs_htm&amp;mgsSentTo=孤魂野鬼" 
                  target=_blank><IMG alt="给 孤魂野鬼 发送消息" 
                  src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/message.gif"></A> 
                </TD></TR>
              <TR class=tBody1>
                <TD vAlign=top width="20%">
                  <TABLE cellPadding=2 cellSpacing=0 width="100%">
                    <TBODY>
                    <TR>
                      <TD vAlign=top width="100%">
                        <P align=left><BR><B><A 
                        href="http://www.hiyi.com.cn/bbs/index.php?mods=member&amp;action=info&amp;id=834" 
                        target=_blank>孤魂野鬼</A></B><BR><IMG 
                        src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/pips2.gif"><BR><IMG 
                        src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/no_portait.gif"></P></TD></TR>
                    <TR>
                      <TD>等级:侠客</TD></TR>
                    <TR>
                      <TD>发帖:13</TD></TR>
                    <TR>
                      <TD>注册:<FONT 
                    style="FONT-SIZE: 8pt">2005-06-14</FONT></TD></TR>
                    <TR>
                      <TD>金钱:266</TD></TR>
                    <TR>
                      <TD>状态:<IMG alt=查看在线状态 
                        src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/offline.gif"></TD></TR></TBODY></TABLE></TD>
                <TD height="100%" vAlign=top width="80%">
                  <TABLE align=center cellSpacing=0 height="100%" 
                  style="TABLE-LAYOUT: fixed; word-wrap: break-word" 
width="98%">
                    <TBODY>
                    <TR>
                      <TD vAlign=top><IMG 
                        src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/1.gif">&nbsp;<B>Re:【原创】我自己写的JAVA程序__计算器(普通型)</B><BR><BR>HelpDialog.java&nbsp; 
                        &nbsp; &nbsp; &nbsp; 帮助主题程序<BR><BR>import 
                        java.awt.*;<BR><BR>public class HelpDialog extends 
                        AboutDialog<BR>{<BR>&nbsp; &nbsp; public 
                        HelpDialog(Frame f)<BR>&nbsp; &nbsp; {<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; super(f);<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        this.setLabel("Help");<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        this.setFilename("xxx.txt");<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; this.setTitle("帮助");<BR>&nbsp; &nbsp; 
                        }<BR>}<BR><BR><BR></TD></TR>
                    <TR>
                      <TD vAlign=bottom><BR></TD></TR></TBODY></TABLE></TD></TR>
              <TR class=tBody1>
                <TD width="20%">IP:<SPAN style="FONT-SIZE: 8pt">隐藏</SPAN></TD>
                <FORM action=./index.php method=post><INPUT n

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -