Class CodePane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class CodePane extends BaseTextPane
A pane for code editing supporting syntax highlighting etc. Editable by default
See Also:
  • Constructor Details

    • CodePane

      public CodePane()
  • Method Details

    • getScrollableTracksViewportWidth

      public boolean getScrollableTracksViewportWidth()
      Specified by:
      getScrollableTracksViewportWidth in interface Scrollable
      Overrides:
      getScrollableTracksViewportWidth in class JEditorPane
    • getMaxColumns

      public int getMaxColumns()
      Returns:
      Maximum number of columns when resizing
    • setMaxColumns

      public void setMaxColumns(int maxColumns)
      Parameters:
      maxColumns - Number of column maximum
    • getMaximumSize

      public Dimension getMaximumSize()
      Overrides:
      getMaximumSize in class JComponent
    • getColumnWidth

      protected int getColumnWidth()
    • docLength

      public int docLength()
      Gets the length of this document
      Returns:
      Document length