鄙人刚学JAVA,有两个简单问题,请大家不吝赐教。多谢多谢。 J2EE ---- Java 2 Enterprise EditionJDK ---- Java Develop KitVJ、JBuilder都是IDE开发环境 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1.j2ee :java2 enterprise edition.即java2 企业版,jdk:java的卡发工具包VJ 微软的java编辑器,jbuild broland公司的编辑器2,给出源码看看,建议用java语言不要用vj,它里面有很多微软自己写的包,不是java的标准包 J2EE ---- Java 2 Enterprise Edition 是一种标准,包括jsp,servlet,javabean.ejb等等JDK ---- Java Development Kit java开发包VJ、JBuilder都是IDE开发环境vj没有用过 jdk是development kitj2se、j2me、j2ee是三种不同的级别的规范每一个edition都有不同,不过一般说的jdk是j2sdk,针对j2se的(standard edition)先从j2se开始,以后再用j2ee(enterprise)里面较为高级的企业级的东西,如ejb,etc.不要使用vj,初学建议自己装一个jdk再加上jcreator import java.awt.*;import java.applet.*;import java.awt.event.* ; public class ex3d extends Applet implements TextListener, ActionListener { TextArea text1,text2; TextField text3,text4; Label 颜色,字体; Button copyto; public void init() { setLayout(null); text1=new TextArea(); text2=new TextArea(); text3=new TextField(); text4=new TextField(); copyto=new Button("复制"); 颜色=new Label ("设置颜色:"); 字体=new Label ("设置字体:"); add(text1);add(text2);add(text3);add(text4); add(copyto);add (颜色);add(字体); text1.setBounds(10,10,170,220); text2.setBounds (270,10,170,220); text3.setBounds (10,270,170,20); text4.setBounds (270,270,170,20); copyto.setBounds (190,100,60,20); 颜色.setBounds (10,245,60,20); 字体.setBounds (270,245,60,20); text3.addTextListener(this); text4.addTextListener(this); copyto.addActionListener(this); } public void textValueChanged(TextEvent e) { String tempStr; Font f; if (e.getSource()==text3) { tempStr=text3.getText (); if(tempStr.equals("red")) { text2.setBackground (Color.red); } else if (tempStr.equals("black")) { text2.setBackground (Color.black); } else if (tempStr.equals("green")) { text2.setBackground (Color.green); } else if (tempStr.equals("yellow")) { text2.setBackground (Color.yellow); } else if (tempStr.equals("pink")) { text2.setBackground (Color.pink); } else if (tempStr.equals("blue")) { text2.setBackground (Color.blue); } else if (tempStr.equals("white")) { text2.setBackground (Color.white); } else if (tempStr.equals("orange")) { text2.setBackground (Color.orange ); } else if (tempStr.equals("magenta")) { text2.setBackground (Color.magenta ); } else if (tempStr.equals("cyan")) { text2.setBackground (Color.cyan); } } else if (e.getSource() ==text4) { tempStr=text4.getText (); if (tempStr.equals ("粗体")) { f=new Font("宋体",Font.BOLD,18); text2.setFont (f); } else if (tempStr.equals ("恢复")) { f=new Font("宋体",Font.PLAIN ,20); text2.setFont (f); } else if (tempStr.equals ("斜体")) { f=new Font("宋体",Font.ITALIC ,20); text2.setFont (f); } else if (tempStr.equals ("大")) { f=new Font("宋体",text2.getFont().getSize() +1,FontSize.CELLHEIGHT);//这里报告错误 text2.setFont (f); } else if (tempStr.equals ("小")) { f=new Font("宋体",text2.getFont().getSize ()-1,FontSize.CELLHEIGHT); text2.setFont (f); } } } public void actionPerformed(ActionEvent e) { if (e.getSource() ==copyto) { text2.setText (text1.getText ()); } }} Label 颜色,字体;可以这样使用么? connot resolve symbolsymbol : variable FontSizelovation:class ex3d 是什么错误啊? 这绝对是用vj写出来的东西啊不要用vj阿因为如果你用vj的话就会种了微软的诡计了因为java最大的好处就是运行平台无关性用vj的话就会被微软限死在windows平台下的了那样微软就大条道理的介绍他抄sun.java而作出来的C#了 就是 vizier(船山) 说的那个错误,好像是不认识FontSize类,应该怎么办 啊?这帖子太挤了,请到http://expert.csdn.net/Expert/topic/1657/1657991.xml?temp=.1114466见教。我好多给一点分。谢谢了。 J2EE ---- Java 2 Enterprise EditionJDK ---- Java Develop KitVJ、JBuilder都是IDE开发环境 这年头竟然有人用VJ,不要用呀,楼主,VJ停产了呀!!! 紧急求救: java 如何读取MP3比特率 、时间长度等信息 用win7的兄弟姐妹们,过来看一看吧~ 关于文件输入输出的一个问题 十万火急!200分悬赏一个JAVA写的邮件群发程序。(要源码) ServerSocket写法 JFRAME 设置默认关闭操作总是不成功. 请教关于O'Reilly:Java网络编程(第2版) javac对了,java还有错?怎么办? 数据库连接若干问题? 一个让人迷惑的问题! 如何使用package 为什么不能装载mysql驱动?
VJ 微软的java编辑器,jbuild broland公司的编辑器
2,给出源码看看,建议用java语言不要用vj,它里面有很多微软自己写的包,不是java的标准包
JDK ---- Java Development Kit java开发包
VJ、JBuilder都是IDE开发环境vj没有用过
j2se、j2me、j2ee是三种不同的级别的规范
每一个edition都有不同,不过一般说的jdk是j2sdk,针对j2se的(standard edition)
先从j2se开始,以后再用j2ee(enterprise)里面较为高级的企业级的东西,如ejb,etc.不要使用vj,初学建议自己装一个jdk再加上jcreator
import java.applet.*;
import java.awt.event.* ;
public class ex3d extends Applet implements TextListener, ActionListener
{
TextArea text1,text2; TextField text3,text4;
Label 颜色,字体;
Button copyto;
public void init()
{
setLayout(null);
text1=new TextArea();
text2=new TextArea();
text3=new TextField();
text4=new TextField();
copyto=new Button("复制");
颜色=new Label ("设置颜色:");
字体=new Label ("设置字体:");
add(text1);add(text2);add(text3);add(text4);
add(copyto);add (颜色);add(字体);
text1.setBounds(10,10,170,220);
text2.setBounds (270,10,170,220);
text3.setBounds (10,270,170,20);
text4.setBounds (270,270,170,20);
copyto.setBounds (190,100,60,20);
颜色.setBounds (10,245,60,20);
字体.setBounds (270,245,60,20);
text3.addTextListener(this);
text4.addTextListener(this);
copyto.addActionListener(this);
}
public void textValueChanged(TextEvent e)
{
String tempStr;
Font f;
if (e.getSource()==text3)
{
tempStr=text3.getText ();
if(tempStr.equals("red"))
{
text2.setBackground (Color.red);
}
else if (tempStr.equals("black"))
{
text2.setBackground (Color.black);
}
else if (tempStr.equals("green"))
{
text2.setBackground (Color.green);
}
else if (tempStr.equals("yellow"))
{
text2.setBackground (Color.yellow);
}
else if (tempStr.equals("pink"))
{
text2.setBackground (Color.pink);
}
else if (tempStr.equals("blue"))
{
text2.setBackground (Color.blue);
}
else if (tempStr.equals("white"))
{
text2.setBackground (Color.white);
} else if (tempStr.equals("orange"))
{
text2.setBackground (Color.orange );
}
else if (tempStr.equals("magenta"))
{
text2.setBackground (Color.magenta );
}
else if (tempStr.equals("cyan"))
{
text2.setBackground (Color.cyan);
}
}
else if (e.getSource() ==text4)
{
tempStr=text4.getText ();
if (tempStr.equals ("粗体"))
{
f=new Font("宋体",Font.BOLD,18);
text2.setFont (f);
}
else if (tempStr.equals ("恢复"))
{
f=new Font("宋体",Font.PLAIN ,20);
text2.setFont (f);
}
else if (tempStr.equals ("斜体"))
{
f=new Font("宋体",Font.ITALIC ,20);
text2.setFont (f);
}
else if (tempStr.equals ("大"))
{
f=new Font("宋体",text2.getFont().getSize() +1,FontSize.CELLHEIGHT);//这里报告错误
text2.setFont (f);
}
else if (tempStr.equals ("小"))
{
f=new Font("宋体",text2.getFont().getSize ()-1,FontSize.CELLHEIGHT);
text2.setFont (f);
}
}
}
public void actionPerformed(ActionEvent e)
{
if (e.getSource() ==copyto)
{
text2.setText (text1.getText ());
}
}
}
symbol : variable FontSize
lovation:class ex3d
是什么错误啊?
不要用vj阿
因为如果你用vj的话就会种了微软的诡计了
因为java最大的好处就是运行平台无关性
用vj的话就会被微软限死在windows平台下的了
那样微软就大条道理的介绍他抄sun.java而作出来的C#了
http://expert.csdn.net/Expert/topic/1657/1657991.xml?temp=.1114466
见教。我好多给一点分。谢谢了。
JDK ---- Java Develop Kit
VJ、JBuilder都是IDE开发环境