📄 -
字号:
super(f,true);<BR>
this.setTitle(title);<BR> l =
new Label("About Calculator V 1.00");<BR>
l.setForeground(Color.blue);<BR>
l.setFont(new
Font("Arial",Font.PLAIN,24));<BR>
b = new Button(" 确定 ");<BR>
b.addActionListener(this); //(new
ButtonHandler());<BR> ta =
new
TextArea("",30,50,TextArea.SCROLLBARS_VERTICAL_ONLY);<BR>
ta.setBackground(Color.lightGray);<BR>
ta.setEditable(false);<BR>
c1 = new Canvas();<BR>
c2 = new Canvas();<BR>
c3 = new Canvas();<BR> c4 =
new Canvas();<BR> p1 = new
Panel();<BR> p2 = new
Panel();<BR> p3 = new
Panel();<BR> p2.setLayout(new
BorderLayout(5,5));<BR>
p1.setBackground(Color.lightGray);<BR>
p2.setBackground(new
Color(130,254,240,200));<BR>
p3.setBackground(Color.lightGray);<BR>
p1.add(l);<BR>
p2.add(ta);<BR>
p2.add(c1,"North");<BR>
p2.add(c2,"South");<BR>
p2.add(c3,"West");<BR>
p2.add(c4,"East");<BR>
p3.add(b);<BR>
this.add(p1,"North");<BR>
this.add(p2,"Center");<BR>
this.add(p3,"South");<BR>
this.setLocation(f.getX() + f.getWidth(),
f.getY());<BR>
this.addWindowListener(new WindowHandler());<BR>
}<BR> <BR> public void
display(){<BR>
this.setSize(350,350); <BR>
this.readfromFile(filename);<BR>
this.setTextArea();<BR>
this.setResizable(false);<BR>
this.setVisible(true);<BR>
}<BR> <BR> public void
readfromFile(String s){<BR>
try{<BR>
BufferedReader br = new BufferedReader(new
FileReader(s));<BR>
String s1 = br.readLine();<BR>
String s2 = "";<BR>
while(s1 !=
null){<BR>
s2 = s2 + s1 + "\n";<BR>
s1 =
br.readLine();<BR>
}<BR>
br.close();<BR>
content = s2;<BR>
}catch(IOException e){<BR>
e.printStackTrace();<BR>
}<BR> }<BR>
<BR> public void setFilename(String
s){<BR> filename =
s;<BR> }<BR>
<BR> public void setLabel(String
s){<BR>
l.setText(s);<BR> }<BR>
<BR> public void setTextArea(){<BR>
ta.setText(content);<BR>
}<BR> <BR>// private
class ButtonHandler implements ActionListener{<BR>
public void
actionPerformed(ActionEvent e){<BR>
dispose();<BR>
}<BR>// }<BR>
<BR> <BR> private class
WindowHandler extends WindowAdapter{<BR>
public void windowClosing(WindowEvent
e){<BR>
dispose();<BR>
//System.exit(1);<BR>
}<BR> }<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&action=mode&forumid=11&postid=47&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&action=del&forumid=11&postid=47&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> <B><FONT color=red>2</FONT></B>
F <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&action=showReply&forumid=11&postid=47&topicid=3"><IMG
alt=引用
src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/read_quote.gif"></A>
<A
href="http://www.hiyi.com.cn/bbs/index.php?mods=member&action=info&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&action=sentmgs_htm&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&action=info&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"> <B>Re:【原创】我自己写的JAVA程序__计算器(普通型)</B><BR><BR>HelpDialog.java
帮助主题程序<BR><BR>import
java.awt.*;<BR><BR>public class HelpDialog extends
AboutDialog<BR>{<BR> public
HelpDialog(Frame f)<BR> {<BR>
super(f);<BR>
this.setLabel("Help");<BR>
this.setFilename("xxx.txt");<BR>
this.setTitle("帮助");<BR>
}<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 + -