Skip to content
Discussion options

You must be logged in to vote

The first word Java is a place where we bind constants for Java classes. The second word is the concatenated package name. Java::JavaxSwing::JButton means a Java class JButton in the package javax.swing. We cannot know all Java classes or where they load so we use a consistent unambiguous naming. Java::Awt could be a Java class with no package which happens to be called Awt.

Most people tend to use java_import and do not see these constants unless you happen to notice the constant binding which is defined.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@headius
Comment options

Answer selected by headius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #8356 on October 10, 2024 17:09.