Re: CodeArea: request to raise priority of JDK-8357405 (text length metrics for ContentChange)

2025-05-28 Thread PavelTurk
ong time, but also produce result that does not fit into 31 bits.  Which means, for all intents and purposes, this functionality should be implemented by a custom model. What do you think? Cheers, -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Thursday, May 22, 2025 at 05:29

CodeArea: request to raise priority of JDK-8357405 (text length metrics for ContentChange)

2025-05-22 Thread PavelTurk
I'd like to kindly ask for consideration in raising the priority of JDK-8357405 about adding text length metrics to ContentChange for removed/inserted text for CodeArea. The reason for this request is that accurate and reliable information about text changes is essential when integrating CodeAr

Re: Let's discuss JDK-8338952

2025-05-19 Thread PavelTurk
? -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Monday, May 19, 2025 at 00:59 *To: *openjfx-dev@openjdk.org *Subject: *Let's discuss JDK-8338952 About six months ago, I opened JDK-8338952 with a proposal to add an item comparator to (Tree)TableView. The reason for this issue i

Let's discuss JDK-8338952

2025-05-19 Thread PavelTurk
About six months ago, I opened JDK-8338952 with a proposal to add an item comparator to (Tree)TableView. The reason for this issue is that when using non-standard sorting — for example, when there is a "Total" row in the table — the standard API becomes insufficient. One has to reinvent the wh

Re: CodeArea: how to convert offset to TextPos?

2025-05-17 Thread PavelTurk
ue for the reverse operation, TextPos -> offset. -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Wednesday, May 7, 2025 at 09:29 *To: *openjfx-dev@openjdk.org *Subject: *CodeArea: how to convert offset to TextPos? Could anyone say how to convert offset to TextPos in CodeArea? Fo

Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights

2025-05-12 Thread PavelTurk
g list as a new message, so it does not get appended to the PR? The reason is - it'll take some time to percolate the ticket through the webbugs system. Thanks! -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Monday, May 12, 2025 at 10:31 *To: *openjfx-dev@openjdk.org *Su

Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights

2025-05-12 Thread PavelTurk
ent being added, but also multiple segments of parts of segments.  So, in effect, the existing APIs (plus JDK-8355774) allow you address your requirements. Or is there something you that is still impossible to do? -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Monday, May 12, 202

Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights

2025-05-12 Thread PavelTurk
situation.  "The most frequent operations must be easy, all other must be possible". -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Monday, May 12, 2025 at 09:34 *To: *openjfx-dev@openjdk.org *Subject: *Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of

Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights

2025-05-12 Thread PavelTurk
StyleAttributeMap.UNDERLINE (using text color).  On the other hand, adding this functionality via addHighlight() would allow the application to style the shapes via CSS. -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Thursday, May 8, 2025 at 22:18 *To: *openjfx-dev@openjdk.org *Subject

Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights

2025-05-08 Thread PavelTurk
lly for the case to highlight the content range regardless of what is in it. I've reopened https://bugs.openjdk.org/browse/JDK-8356436 for the background color. Thank you for your patience and good suggestions! -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Thursday, May

Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights

2025-05-08 Thread PavelTurk
ion-border, would be extremely unlikely. -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Thursday, May 8, 2025 at 11:44 *To: *openjfx-dev@openjdk.org *Subject: *Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights Andy, thank you for your reply. I have alread

Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights

2025-05-08 Thread PavelTurk
how to achieve that in the code. -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Thursday, May 8, 2025 at 11:04 *To: *openjfx-dev@openjdk.org *Subject: *Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights I am not a member of the JavaFX team, but if I m

Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights

2025-05-08 Thread PavelTurk
I am not a member of the JavaFX team, but if I may, I’d like to express my opinion. I believe that creating separate methods for styling individual properties is a very problematic and dangerous decision. First, the usefulness of such methods is minimal because when styling is done via CSS, th

Re: CodeArea: -fx-background-color doesn't work.

2025-05-07 Thread PavelTurk
ing public APIs are missing, JDK-8355774).  Same applies to wavy lines. I'll try to clarify these points in https://bugs.openjdk.org/browse/JDK-8355774 -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Wednesday, May 7, 2025 at 11:54 *To: *openjfx-dev@openjdk.org *Subject: *Re: CodeA

Re: CodeArea: -fx-background-color doesn't work.

2025-05-07 Thread PavelTurk
s statically instead - like a document stylesheet, since these names do not change at all. *From: *openjfx-dev on behalf of PavelTurk *Date: *Wednesday, May 7, 2025 at 10:30 *To: *openjfx-dev@openjdk.org *Subject: *Re: CodeArea: -fx-background-color doesn't work. Andy, thank you very mu

Re: CodeArea: -fx-background-color doesn't work.

2025-05-07 Thread PavelTurk
Andy, thank you very much for your help! Best regards, Pavel On 5/7/25 20:29, Andy Goryachev wrote: This bug is still percolating through the system.  I'll respond once I get it. Thank you for all the questions and the feedback! -andy *From: *openjfx-dev on behalf of PavelTurk

CodeArea: how to convert offset to TextPos?

2025-05-07 Thread PavelTurk
Could anyone say how to convert offset to TextPos in CodeArea? For example, in RTFX CodeArea we have: var pos = codeArea.offsetToPosition(offset, Bias.Backward); var paragraph = pos.getMajor(); Best regards, Pavel

CodeArea: how to get the indexes of the first visible paragraph and the last one?

2025-05-07 Thread PavelTurk
Could anyone say how to get the indexes of the first visible paragraph and the last visible paragraph. If it currently possible. I am talking about indexes relative to all paragraphs in the code area. Best regards, Pavel

Re: CodeArea: -fx-background-color doesn't work.

2025-05-05 Thread PavelTurk
sue today, so, when it is approved there won't be any questions. Best regards, Pavel On 5/6/25 00:04, Andy Goryachev wrote: Will not happen.  CSS compatibility with a third party library is not a requirement in this case. -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Mo

Re: CodeArea: -fx-background-color doesn't work.

2025-05-05 Thread PavelTurk
e(s) within the paragraph, since these ranges might contain semi-transparent Nodes.  Once JDK-8355774 is fixed you'll be able to style highlights with CSS and all will be well.  Right? -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Monday, May 5, 2025 at 13:10 *To: *ope

Re: CodeArea: -fx-background-color doesn't work.

2025-05-05 Thread PavelTurk
penjfx-dev on behalf of PavelTurk *Date: *Monday, May 5, 2025 at 12:47 *To: *openjfx-dev@openjdk.org *Subject: *Re: CodeArea: -fx-background-color doesn't work. Hello, Andy Yes, I need to add a background color for a text segment within a paragraph using CSS. I have just opened a

Re: CodeArea: -fx-background-color doesn't work.

2025-05-05 Thread PavelTurk
ndy *From: *openjfx-dev on behalf of PavelTurk *Date: *Saturday, May 3, 2025 at 10:07 *To: *openjfx-dev@openjdk.org *Subject: *CodeArea: -fx-background-color doesn't work. For styling CodeArea, I use exclusively style classes, and this is the  foundation of my entire architecture. T

CodeArea: -fx-background-color doesn't work.

2025-05-03 Thread PavelTurk
For styling CodeArea, I use exclusively style classes, and this is the  foundation of my entire architecture. Today I tried to implement search highlighting (via background color), but it  didn't work. Below is my test code. Can anyone tell me how to set the background color using CSS? For exampl

CodeArea: What should SyntaxDecorator.createRichParagraph return for empty paragraphs?

2025-05-02 Thread PavelTurk
Could anyone say what createRichParagraph should return if the paragraph is empty (length = 0)? For example, RichParagraph.builder().build(), or null, or ? Best regards, Pavel

Re: RichTextArea: RichTextArea doesn't have a setText method, but CodeArea does

2025-05-01 Thread PavelTurk
Kevin On 5/1/2025 7:55 AM, Andy Goryachev wrote: Intentionally: the CodeArea model contains plain text, while in the RichTextArea the content depends on the model.  It may not contain anything and be generated on the fly. -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Thursday,

RichTextArea: RichTextArea doesn't have a setText method, but CodeArea does

2025-05-01 Thread PavelTurk
I've just found out that RichTextArea doesn't have a setText method, but CodeArea does. Is this a mistake or was it done intentionally? Best regards, Pavel PS. Just don't think I spend my free time analyzing Javadoc. It's just that I once opened an issue in RTFX suggesting to add a setText me

Re: CodeArea: are tab lines supported?

2025-04-30 Thread PavelTurk
Ok, I've just opened a new issue, id: 9078453 Best regards, Pavel On 5/1/25 00:22, Andy Goryachev wrote: CodeArea does not support tab lines. -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Wednesday, April 30, 2025 at 14:19 *To: *openjfx-dev@openjdk.org *Subject: *Cod

CodeArea: are tab lines supported?

2025-04-30 Thread PavelTurk
Does CodeArea support tab lines (see this link )? If not I will open an issue. Best regards, Pavel

Re: CodeArea: too frequent model updates

2025-04-30 Thread PavelTurk
pear slow on my macOS.  Would you provide a reproducer which can illustrate the issue? Thanks -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Wednesday, April 30, 2025 at 04:14 *To: *openjfx-dev@openjdk.org *Subject: *CodeArea: too frequent model updates Trying to understand why my Jfx

CodeArea: too frequent model updates

2025-04-30 Thread PavelTurk
Trying to understand why my Jfx CodeArea works so slowly I wrote a test application (see below). And I got interesting results. If you start the application you will see that about 10 paragraphs are visible. 1. If after start you click on the report button you will see that about 113 paragraph

Re: RichTextArea: does CodeArea support code folding?

2025-04-29 Thread PavelTurk
Yes, in JBS. I have no link. The system showed only ID - 9078447. The link comes when the issue  is approved. Best regards, Pavel On 4/30/25 00:02, Andy Goryachev wrote: In JBS?  What's the link? -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Tuesday, April 29, 2025 at

Re: RichTextArea: does CodeArea support code folding?

2025-04-29 Thread PavelTurk
I've just opened an issue about code folding. Best regards, Pavel On 4/29/25 22:52, Andy Goryachev wrote: I do not disagree. -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Tuesday, April 29, 2025 at 12:47 *To: *openjfx-dev@openjdk.org *Subject: *Re: RichTextArea: does Cod

Re: RichTextArea: does CodeArea support code folding?

2025-04-29 Thread PavelTurk
I believe the community's interest in this feature can be demonstrated with three simple arguments: 1. The amount of code needed to implement what you described is comparable to the size of the existing CodeArea itself. 2. This feature already exists in RichTextFX (JavaFX) and RSyntaxTextArea

RichTextArea: does CodeArea support code folding?

2025-04-29 Thread PavelTurk
RTFX CodeArea has methods for code folding: codeArea.foldParagraphs(int, int) codeArea.unfoldParagraphs(int); However, I can't find something with 'fold' in https://download.java.net/java/early_access/javafx25/docs/api/jfx.incubator.richtext/jfx/incubator/scene/control/richtext/CodeArea.html C

Re: RichTextArea: How to return existing paragraphs from SyntaxDecorator?

2025-04-29 Thread PavelTurk
the same approach works without performance problems in RTFX. Best regards, Pavel -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Tuesday, April 29, 2025 at 08:39 *To: *openjfx-dev@openjdk.org *Subject: *Re: RichTextArea: How to return existing paragraphs from SyntaxDecorator? Andy, t

Re: RichTextArea: How to return existing paragraphs from SyntaxDecorator?

2025-04-29 Thread PavelTurk
the "optimizations"? -andy Best regards, Pavel *From: *openjfx-dev on behalf of PavelTurk *Date: *Monday, April 28, 2025 at 16:54 *To: *openjfx-dev@openjdk.org *Subject: *RichTextArea: How to return existing paragraphs from SyntaxDecorator? I noticed that paragraphs in CodeArea are u

RichTextArea: How to return existing paragraphs from SyntaxDecorator?

2025-04-28 Thread PavelTurk
I noticed that paragraphs in CodeArea are updated too aggressively. For example, when I press a single key like '1', about 100 paragraphs get refreshed. To improve performance, I decided to implement it this way: I store information for each paragraph indicating whether its styles are up-to-dat

Re: RichTextArea: how to set wavy underline using CSS?

2025-04-28 Thread PavelTurk
ault web wave radius. Best regards, Pavel -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Monday, April 28, 2025 at 08:57 *To: *openjfx-dev@openjdk.org *Subject: *Re: RichTextArea: how to set wavy underline using CSS? Hello, Andy. Thank you for your reply. I'm working on a

Re: RichTextArea: how to set wavy underline using CSS?

2025-04-28 Thread PavelTurk
nd we have a similar situation with the similar method RichParagraph.Builder.addHighlight(). Could you describe your use case in more detail please? -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Sunday, April 27, 2025 at 11:27 *To: *openjfx-dev@openjdk.org *Subject: *RichTextArea:

RichTextArea: how to set wavy underline using CSS?

2025-04-27 Thread PavelTurk
RichParagraph.Builder has public RichParagraph.Builder addWavyUnderline(int start, int length, Color color) method. However, I can't find a way how to make a wavy underline via CSS. It is very important for me because I want to make all styling via CSS - I don't want to make users use different

What strategy would you recommend for styling large documents in CodeArea?

2025-04-24 Thread PavelTurk
Suppose we have a very large file (1,000,000+ lines). For example, it could be an XML file or a Java class written by a beginner programmer :). The question is: how should we handle styling for such large files? The simplest solution is to apply styles to all lines at once. Another option is to

Is it not possible to create a JavaFX bug because site doesn't work

2024-12-27 Thread PavelTurk
Hello everyone, Unfortunately https://bugreport.java.com/ doesn't work. On submitting a bug the site returns a blank page with: Request method 'POST' not supported Best regards, Pavel

My bug report seems to have been lost

2024-11-12 Thread PavelTurk
Hello everyone, I submitted a bug report on November 6, but I still haven’t received any  notification about it. Review ID - 9077800. The bug was about Font.loadFont() Best regards, Pavel

Re: RFR: 8301121: RichTextArea Control (Incubator) [v36]

2024-11-05 Thread PavelTurk
On Fri, 1 Nov 2024 23:12:58 GMT, Andy Goryachev wrote: >> Incubating a new feature - rich text control, **RichTextArea**, intended to >> bridge the functional gap with Swing and its StyledEditorKit/JEditorPane. >> The main design goal is to provide a control that is complete enough to be >> us

Re: It is not possible to create a new bug in Java Bug Database

2024-08-25 Thread PavelTurk
Hi Dalibor, I've checked. Everything is working. Thank you very much! Best regards, Pavel On 8/24/24 17:26, Dalibor Topic wrote: On 23.08.2024 22:32, Dalibor Topic wrote: On 22.08.2024 08:33, PavelTurk wrote: Hello, all. It is the second day I am trying to create a JavaFX bug -

It is not possible to create a new bug in Java Bug Database

2024-08-21 Thread PavelTurk
Hello, all. It is the second day I am trying to create a JavaFX bug - https://bugreport.java.com/bugreport/submit_start. After I fill in all the fields and press the submit button I get 504 Gateway Time-out. I even can't create a bug that Bug Database not working :) Please inform your collea

Re: [External] : Re: Is it possible to disable JavaFX shutdown hook?

2024-07-27 Thread PavelTurk
On 7/27/24 16:49, Kevin Rushforth wrote: Note, particularly, that last sentence. Asking JavaFX to ignore the fact that there is a shutdown in progress doesn't change that. Having said that, I can take another look at this (not right away, though) and see what else we can do. That would be gre

Re: Is it possible to disable JavaFX shutdown hook?

2024-07-26 Thread PavelTurk
to queue the request. There might be other solutions.” ------- -- Kevin On 7/25/2024 8:43 AM, PavelTurk wrote: Hello all. JavaFX adds its own shutdown hook. That gives many problems when it is necessary to work with application, when system is shutting down, for example, if user pres

Is it possible to disable JavaFX shutdown hook?

2024-07-25 Thread PavelTurk
Hello all. JavaFX adds its own shutdown hook. That gives many problems when it is necessary to work with application, when system is shutting down, for example, if user presses CTRL+C. The first problem I described here - https://bugs.openjdk.org/browse/JDK-8320923 Another problem is that afte

Re: There is no workaround for JDK-8324327

2024-05-09 Thread PavelTurk
n the palette and it would work as expected.  This is just a workaround, the bug is still there. -andy *From: *openjfx-dev on behalf of PavelTurk *Date: *Thursday, May 9, 2024 at 07:56 *To: *openjfx-dev@openjdk.org *Subject: *There is no workaround for JDK-8324327 Hello all. This is about

There is no workaround for JDK-8324327

2024-05-09 Thread PavelTurk
Hello all. This is about https://bugs.openjdk.org/browse/JDK-8324327 . Andy Goryachev wrote in comment "Change to the default constructor and the issue disappears". I don't see that using default constructor solves the problem. I tried the following code : public class JavaFxTest7 extends App

What about 5000 issues?

2024-04-17 Thread PavelTurk
Hello all. I've been using JavaFX for a long time. JavaFX is great, but unfortunately rather buggy. As a user every time I find a new bug I open new issues. So, I opened many issues. The problem is that from all my issues only one was resolved. Today I decided to understand what is going on. I

Re: My issue seems to be lost

2024-01-22 Thread PavelTurk
ee if can be moved along. -- Kevin On 1/22/2024 2:20 AM, PavelTurk wrote: Hello all. On January 10, 2024 I opened an issue with internal review ID 9076431 about bug in ColorPicker and still didn't get any answer. I waited, but almost two weeks has passed. Could anyone say anything about

My issue seems to be lost

2024-01-22 Thread PavelTurk
Hello all. On January 10, 2024 I opened an issue with internal review ID 9076431 about bug in ColorPicker and still didn't get any answer. I waited, but almost two weeks has passed. Could anyone say anything about it? Best regards, Pavel