“J”是什么意思? 在JApplet中是什么意思?
JApplet 中的“J”是什么意思?
What does the "J" in JApplet mean?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
JApplet 中的“J”是什么意思?
What does the "J" in JApplet mean?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
当 Sun 开始开发 Swing 时,他们有像 javax.swing.Button 这样的东西。 这给使用 java.awt.Button 的程序带来了问题。 如果我没记错的话,主要问题是编译器错误消息令人困惑。
Sun 决定为所有 Swing 组件添加 J 前缀以消除此问题。
最初 Swing 被称为 JFC - Java 基础类...大概 J 就是由此而来。
Netscape 的 IFC 是 JFC 的基础...两者都是同一团队开发的。
团队从 Netscape 搬到了 Sun。
J 出现在第一次向被许可人提供来源的时候(我就是在我的公司收到该来源的人)。
JClass BWT 和 IFC(成为JFC(后来成为 Swing)也不兼容......“我可以在 IFC 环境中使用 BWT 控件吗?”
编辑:回复 Swing 团队成员的电子邮件...
已经采取的部分确实与我所说的有关编译器的内容相符,但没有证实它。
When Sun started working on Swing they had things like javax.swing.Button. This caused problems for programs that mase use of java.awt.Button. The main issue, if I remember right, was that the compiler error messages were confusing.
Sun decided to prefix all of the Swing components with J to remove this issue.
Originally swing was called JFC - Java Foundation Classes... presumably the J came from that.
IFC from Netscape was the foundation for JFC... the same team developed both.
The team moved from Netscape to Sun.
The J was there at the first source drop to licensees (I was the person why received the drop at my company).
The JClass BWT and the IFC (which became the JFC, which became Swing) were incompatible as well... "Can I use BWT controls in an IFC environment?"
Edit: Response to an email from a member of the Swing team...
The already taken part does match with what I said about the compiler, but does not confirm it.
“J”首先由KL Group(现为 quest.com) 其革命性的 BWT 构成了当今改进的 AWT(称为 Swing /JFC)的基础。
因此,
它来自当今祖先 "https://support.quest.com/jclass-desktopviews/6.5.2" rel="nofollow noreferrer">KL JClass:(事实并非如此,根据TofuBeer的回答:我将其余部分保留为社区答案,因为它详细说明了 JClass 是什么,但“J”可能根本不是来自将其库集成到 Swing 中。)
来自 JClass 3.6 到 4.0 移植指南 和 KL Group 发布 JClassLine 的 Swing 更新(1998 年 3 月):
一些一般上下文:
来自 基本 Java Applet 和 JApplet:
Swing 是一大组组件,范围从非常简单的(例如标签)到非常复杂的(例如表格、树和样式文本文档)。
几乎所有 Swing 组件都派生自名为
JComponent
的单个父组件,该父组件扩展了AWT Container
类。因此,Swing 最好被描述为 AWT 之上的一层,而不是它的替代品。
如果将其与 AWT 组件层次结构进行比较,您会发现每个 AWT 组件都有一个带有前缀“
J
”的 Swing 等效组件。唯一的例外是
AWT Canvas
类,可以使用JComponent
、JLabel
或JPanel
作为替代品。 许多 Swing 类没有 AWT 对应类。The 'J' was first put out by the KL Group (now quest.com) whose revolutionary BWT forms the basis of today's Improved AWT called Swing /JFC.
So,
it comes from the ancestor of today's KL JClass:(not so, according to TofuBeer's answer: I leave the rest as a Community Answer because it details what was JClass, but the 'J' may not come at all from the integration of their library into Swing.)
From JClass 3.6 to 4.0 Porting Guide and KL Group Releases Swing Update for JClassLine (march 1998):
A bit of general context:
From The Basic Java Applet and JApplet:
Swing is a large set of components ranging from the very simple, such as labels, to the very complex, such as tables, trees, and styled text documents.
Almost all Swing components are derived from a single parent called
JComponent
which extends theAWT Container
class.Thus, Swing is best described as a layer on top of AWT rather than a replacement for it.
If you compare it with the AWT Component hierarchy, you will notice that for each AWT component there is a Swing equivalent with prefix “
J
”.The only exception to this is the
AWT Canvas
class, for whichJComponent
,JLabel
, orJPanel
can be used as a replacement. Many Swing classes have no AWT counterparts.J代表Java。 JSomeName 类与其“以前的”版本之间的主要区别在于,J-one 被设计为与 Swing(或任何其他图形工具包)一起使用,而其他类则从此时开始,仅 AWT 可用。
J stands for Java. The main difference between the JSomeName classes and their "previous" version, is that the J-ones where designed to be used with Swing (or any other graphical toolkit), while the others are from this time where only AWT was available.
J 遵循 Swing 类中使用的约定。
根据 javadoc:
JFC/Swing架构与AWT架构不同。
有几个区别,但最重要的是,AWT 使用本机代码来呈现小部件( SWT ) 而 Swing 是“轻量级”的,因为所有内容都是使用 Java 绘制的。
所以你的问题的答案
表示它是一个支持 Swing 架构的 Applet。
我认为 TofuBeer 和 VonC 是很好的答案,但它们没有解决(至少直接解决)你的问题。 相反,他们进一步解释了为什么 J 在 swing 组件中,并且不应该与 Sun 之外的其他类前面的大量其他 J 相混淆。
The J comes after the convention used in Swing classes.
According to the javadoc:
JFC/Swing architecture is different from AWT architecture.
There are several differences, but the most significant is, AWT uses native code to render widgets ( so does SWT ) while Swing is "light weight" because all the is painted using Java.
So the answer to your question
It means it is an Applet that supports Swing architecture.
I think TofuBeer and VonC are great answers, but they don't address ( at least directly ) your question. Instead they go further explaining why the J in swing components and should not be confused with tons of other J's in front of other classes outside Sun.