Class JComponent

    • Field Detail

      • autoScrolls

        protected boolean autoScrolls
      • actionCommand

        protected String actionCommand
      • actionListener

        protected Object actionListener
    • Constructor Detail

      • JComponent

        protected JComponent​(String type)
    • Method Detail

      • setAutoscrolls

        public void setAutoscrolls​(boolean b)
      • addActionListener

        public void addActionListener​(Object listener)
        Note that it will be the job of the JavaScript on the page to do with actionListener what is desired. In javax.swing, these methods are in AbstractButton, but this is better for org.jmol.awtjs.swing, reducing the duplication of JTextField's actionListener business.
        Parameters:
        listener -
      • getActionCommand

        public String getActionCommand()
      • setActionCommand

        public void setActionCommand​(String actionCommand)