JDK-4644241 : Need API to set BreakIterator of JTextComponent
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2002-02-27
  • Updated: 2018-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
Name: nl37777			Date: 02/27/2002

The JTextComponent implementation currently creates break
iterators on the fly, and always uses a natural language break iterator
obtained from BreakIterator.get*Instance methods. This makes it hard to
use JTextComponent to implement a program editor, where word breaks
should correspond to programming language tokens. There should be an API
that lets a client program set the BreakIterator to be used for all
breaking operations in the JTextComponent.

See the related RFE 4644224.
======================================================================

Comments
EVALUATION Line breaking rules are specific to the model; AbstractDocument seems to be a suitable place for setting BreakIterator for a Document. GlyphView should check for existence of explicit BreakIterator for a Document before creating its own.
20-11-2006