“J"是什么意思?在 JApplet 中是什么意思? [英] What does the "J" in JApplet mean?

查看:94
本文介绍了“J"是什么意思?在 JApplet 中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JApplet 中的J"是什么意思?

What does the "J" in JApplet mean?

推荐答案

当 Sun 开始开发 Swing 时,他们有诸如 javax.swing.Button 之类的东西.这导致大量使用 java.awt.Button 的程序出现问题.如果我没记错的话,主要问题是编译器错误消息令人困惑.

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 决定为所有 Swing 组件添加 J 前缀以解决此问题.

Sun decided to prefix all of the Swing components with J to remove this issue.

最初的 Swing 被称为 JFC - Java 基础类......大概 J 来自那个.

Originally swing was called JFC - Java Foundation Classes... presumably the J came from that.

来自 Netscape 的 IFC 是 JFC 的基础……两者都是由同一个团队开发的.
团队从 Netscape 搬到了 Sun.
J 是在第一次向被许可人提供货源时就在那里(我是我公司收到货源的人).

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).

JClass BWT 和 IFC(变成了 JFC,变成了 Swing)也不兼容......我可以在 IFC 环境中使用 BWT 控件吗?"

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?"

回复来自 Swing 团队成员的电子邮件...

Response to an email from a member of the Swing team...

un-J'd 的名字已经被占用了通过 AWT,我们认为使用它很有用一个共同的前缀来区分来自其他类的组件"包."

"The un-J'd names were already taken by AWT and we thought it useful to use a common prefix to distinguish "components" from other classes in the package."

已经参与的部分确实与我所说的编译器相符,但没有证实.

The already taken part does match with what I said about the compiler, but does not confirm it.

这篇关于“J"是什么意思?在 JApplet 中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆