Rich Text Support

Tom Schindl tom.schindl at bestsolution.at
Fri Oct 5 20:46:43 UTC 2018


Hi,

I'm not Kevin but I'd like to outline my view.

To me there are multiple points:

* if it is part of the core the burden of maintenance (even if it is
  just to review changes produces by us externals) is put on the
  existing committers and the barrier to get those is high (which is a
  good thing IMHO)

* breaking changes (even small ones) are impossible to do

* treating a control as an external thing makes it easier to mix it with
  different versions of OpenJFX

* beside the simple standard controls (and even there) an API that
  pleases everyone is next to impossible to do

* Now that OpenJFX is "just" a library I don't see why getting part of
  it does make anything different to just adding another dependency. The
  only difference is IP-Checks, ...

I think the OpenJFX-Team should concentrate to provide the low-level
APIs to implement controls from TextField to TreeTable to RichText and
spend their time on that.

Tom

On 05.10.18 21:59, John-Val Rose wrote:
> Kevin,
> 
> I am somewhat curious as to this idea that new JavaFX controls should not be part of the core toolkit.
> 
> Why do feel this way?
> 
> And I guess it begs the question: Why have *any* controls in the core of JavaFX at all?
> 
> Graciously,
> 
> John-Val Rose
> Rosethorn Technology
> 
>> On 5 Oct 2018, at 23:34, Kevin Rushforth <kevin.rushforth at oracle.com> wrote:
>>
>> I agree that new controls, especially a RichText control, should very likely not be part of the core -- at least not at first. Somewhere like ControlsFX might be a great place to develop it. What we need to do is identify the missing pieces that prevent it from being implemented as an external control. The text measurement API is one such missing piece, but I'll bet there are others.
>>
>> -- Kevin
>>
>>
>>> On 10/3/2018 11:08 AM, Tom Schindl wrote:
>>> Hi,
>>>
>>> I fully agree and I don't think such a control should be part of the
>>> OpenJFX but should live in an other library.
>>>
>>> /me thinks OpenJFX should not get *ANY* new controls (I would even argue
>>> that the current controls should be split out) but provide the core APIs
>>> needed to implement them.
>>>
>>> Tom
>>>
>>>> On 03.10.18 19:39, Phil Race wrote:
>>>>
>>>>> On 10/03/2018 05:50 AM, Pedro Duque Vieira wrote:
>>>>> I think to start, probably a class like Swing's FontMetrics would be good
>>>>> to have? Before Java 9 there was one but it was private implementation.
>>>>> Just to have the basic API that would allow to build rich text editing
>>>>> support more easily, sorted out..
>>>>> This is also, generally, needed for calculating how to lay out text.
>>>> I agree, and maybe I should aim to finally implement this in 12 :
>>>> https://bugs.openjdk.java.net/browse/JDK-8090775: Need font/text
>>>> measurement API
>>>>
>>>> -phil.
>>

-- 
Tom Schindl, CTO
BestSolution.at EDV Systemhaus GmbH
Eduard-Bodem-Gasse 5-7. A-6020 Innsbruck
Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck


More information about the openjfx-discuss mailing list