Class JComponent

Direct Known Subclasses:
AbstractButton, JContentPane, JEditorPane, JLabel, JPanel, JScrollPane, JSplitPane, JTable, JTextField, JTextPane

public abstract class JComponent extends Container
  • Field Details

    • autoScrolls

      protected boolean autoScrolls
    • actionCommand

      protected String actionCommand
    • actionListener

      protected Object actionListener
  • Constructor Details

    • JComponent

      protected JComponent(String type)
  • Method Details

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