What does the “J” in JApplet mean?

后端 未结 4 477
有刺的猬
有刺的猬 2020-12-11 23:03

What does the \"J\" in JApplet mean?

4条回答
  •  攒了一身酷
    2020-12-11 23:59

    The J comes after the convention used in Swing classes.

    According to the javadoc:

    An extended version of java.applet.Applet that adds support for the JFC/Swing component architecture

    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

    What does the "J" in JApplet mean?

    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.

提交回复
热议问题