HTML elements = Java components

E

enrique

Is there anyone else besides myself bothered by the idea that some
Java programmers refer to HTML elements as "components" (in reference
to the Java widgets that wrap HTML)? Why is the Java community doing
this? I must stay this seems to make something that should be simple
complicated.
 
B

bencoe

Is there anyone else besides myself bothered by the idea that some
Java programmers refer to HTML elements as "components" (in reference
to the Java widgets that wrap HTML)? Why is the Java community doing
this? I must stay this seems to make something that should be simple
complicated.

Well, when you use HTML in Swing, or other 3rd party HTML renderers,
the HTML page displayed is just a collection of various components
positioned based on the markup. So the buttons in the HTML page are,
for instance, JButtons.

Ben.
 
R

Roedy Green

Is there anyone else besides myself bothered by the idea that some
Java programmers refer to HTML elements as "components" (in reference
to the Java widgets that wrap HTML)? Why is the Java community doing
this? I must stay this seems to make something that should be simple
complicated.

because in AWT nearly all those widgets are subclasses of Component
and in Swing of JComponent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top