Java Swing JTextComponent

Java examples for Swing:JTextComponent

Description

Click the following links for the tutorial for Swing and JTextComponent.

  1. Setting the Blink Rate of a JTextComponent's Caret
  2. Retrieving All the Text from a JTextComponent Efficiently
  3. Overriding Many Default Typed Key Bindings in a JTextComponent
  4. Asynchronously Reading the Contents of a Visible JTextComponent
  5. Using the Selection of a JTextComponent
  6. Listening for Editing Changes in a JTextComponent
  7. Overriding a Few Default Typed Key Bindings in a JTextComponent
  8. Overriding the Default Action of a JTextComponent


  9. Select Previous Word in a JTextComponent
  10. Highlighting Words in a JTextComponent
  11. Listing the Key Bindings in a JTextComponent Keymap
  12. Moving the Caret of a JTextComponent
  13. Enumerating All the Views in a JTextComponent
  14. Retrieving Text from a JTextComponent
  15. Listening for Caret Movement Events in a JTextComponent
  16. Retrieving the Visible Lines in a JTextComponent


  17. Limiting the Capacity of a JTextComponent using custom DocumentFilter
  18. Limiting the Capacity of a JTextComponent using custom Document
  19. Modifying Text in a JTextComponent
  20. Creating a Custom Editing Command for a JTextComponent
  21. Sharing a Document Between JTextComponents
  22. Adding Undo and Redo to a Text Component
  23. Select next word in Text Component
  24. Select word in Text Component
  25. is JTextComponent Completely Visible
  26. JTextComponent model To View
  27. Install the JTextComponent border
  28. Gets the line index which contains specified offset in JTextComponent.
  29. get Document from JTextComponent
  30. add Hint to JTextComponent
  31. Determines the end of a word for the given model location in Swing Text Component.
  32. Determines the start of a word for the given model location in Swing text Component.
  33. Appends a String to the end of the document of the JTextComponent
  34. bind Undo Manager for JTextComponent
  35. Returns the Dimension for the given JTextComponent subclass that will show the whole word wrapped text in the given width.
  36. read JTextComponent Selection To String
  37. read JTextComponent Text To String
  38. change swing Text Component Background
  39. update Swing Text Area in Thread
  40. create Swing Text Style
  41. Get number of rows in the content being shown in JTextComponent.
  42. Get first visible line of the text component in a JScrollPane.
  43. Given a line returns the offset number where the line ends in JTextComponent.
  44. Given a line returns the offset number where the line starts in JTextComponent.