Class TextEditor

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

@Deprecated
public class TextEditor
extends JTextPane
implements Pageable, Printable
Deprecated.
A simple text pane that is printable and wrapping is optional.
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • TextEditor

      public TextEditor()
      Deprecated.
      Creates a new instance of TextEditor
    • TextEditor

      public TextEditor​(boolean tabsAsSpaces)
      Deprecated.
      Creates a new instance of TextEditor
    • TextEditor

      public TextEditor​(boolean tabsAsSpaces, boolean multiLineTab)
      Deprecated.
      Creates a new instance of TextEditor
    • TextEditor

      public TextEditor​(boolean tabsAsSpaces, boolean multiLineTab, boolean unwrapped)
      Deprecated.
      Creates a new instance of TextEditor
  • Method Details

    • addNotify

      public void addNotify()
      Deprecated.
      Overrides:
      addNotify in class JComponent
    • getNumberOfPages

      public int getNumberOfPages()
      Deprecated.
      Specified by:
      getNumberOfPages in interface Pageable
    • getPageFormat

      public PageFormat getPageFormat​(int pageIndex) throws IndexOutOfBoundsException
      Deprecated.
      Specified by:
      getPageFormat in interface Pageable
      Throws:
      IndexOutOfBoundsException
    • getPrintable

      public Printable getPrintable​(int param) throws IndexOutOfBoundsException
      Deprecated.
      Specified by:
      getPrintable in interface Pageable
      Throws:
      IndexOutOfBoundsException
    • print

      public int print​(Graphics graphics, PageFormat pageFormat, int page) throws PrinterException
      Deprecated.
      Specified by:
      print in interface Printable
      Throws:
      PrinterException
    • getScrollableTracksViewportWidth

      public boolean getScrollableTracksViewportWidth()
      Deprecated.
      Specified by:
      getScrollableTracksViewportWidth in interface Scrollable
      Overrides:
      getScrollableTracksViewportWidth in class JEditorPane
    • isMultiLineTabbed

      public boolean isMultiLineTabbed()
      Deprecated.
      Whether using the tab key indents the selected lines of code
      Returns:
      true if multiline tabbing is active
    • isOvertypeMode

      public static boolean isOvertypeMode()
      Deprecated.
      Returns:
      true if overtype mode is active, false for insert mode
    • isTabsAsSpaces

      public boolean isTabsAsSpaces()
      Deprecated.
      Returns:
      true if tabs are converted to spaces upon typing
    • isUnwrapped

      public boolean isUnwrapped()
      Deprecated.
      Returns:
      true if text wrapping is disabled
    • processKeyEvent

      protected void processKeyEvent​(KeyEvent e)
      Deprecated.
      Overrides:
      processKeyEvent in class JComponent
    • removeNotify

      public void removeNotify()
      Deprecated.
      Overrides:
      removeNotify in class JTextComponent
    • replaceSelection

      public void replaceSelection​(String text)
      Deprecated.
      Overrides:
      replaceSelection in class JTextPane
    • setBounds

      public void setBounds​(int x, int y, int width, int height)
      Deprecated.
      Overrides:
      setBounds in class Component
    • isMultiLineTabbed

      public void isMultiLineTabbed​(boolean multiLineTab)
      Deprecated.
      Parameters:
      multiLineTab - the new multiLine tab value
    • isTabsAsSpaces

      public void isTabsAsSpaces​(boolean tabsAsSpaces)
      Deprecated.
      Parameters:
      tabsAsSpaces - whether tabs are converted to spaces
    • setOvertypeMode

      public void setOvertypeMode​(boolean isOvertypeMode)
      Deprecated.
      Set the caret to use depending on overtype/insert mode
      Parameters:
      isOvertypeMode - the new mode; true = overtype
    • setUnwrapped

      public void setUnwrapped​(boolean unwrapped)
      Deprecated.
      Parameters:
      unwrapped - the new unwrapped value