I think we could (easily?) introduce a new layer for style sheets that sits
at the right spot in the precedence order. The issue that makes things
difficult is that the scene can have only one user agent stylesheet, so it
is a pain to layer on changes to the defaults with the desired precedence.
I
IMO the current CSS priorities are wrong. A value set from code should be
adjacent to an in-line style in terms of precedence. They are both ways of
saying saying “this particular instance should have this value”
Scott
> On Jan 30, 2024, at 8:31 AM, John Hendrikx wrote:
>
> Hi Michael,
>
>
I agree. I was going to write pretty much this exact email, but you beat me to
it.
I was implementing some user-configurable colour customizations in an
application and needed to do it with style sheets, along with something that
reads colours along the lines of what the new platform preferences
I was about to say the same. I wish it did, and applied the rule that null
never matches.
You could probably trick it with an ugly cast though.
((Object)getScene()) instanceof Scene s
Maybe?
Scott
> On Dec 5, 2023, at 3:43 PM, Michael Strauß wrote:
>
> Unfortunately, this doesn't work. The
> On Nov 15, 2023, at 9:32 AM, Nir Lisker wrote:
>
>
>> removal of AWT
>
> Isn't that *a lot* of work? All the image IO is AWT, no?
It was a mistake to tie ImageIO to GUI framework image classes. The image
raster should be returned in a generic wrapper around a byte array or
ByteBuffer fro
I think Option 1 makes the most sense. Specially since JDK 21 is LTS. Do we
want to be stuck with OS 10.x through the entire LTS period?
Scott
> On May 11, 2023, at 3:23 PM, Kevin Rushforth
> wrote:
>
> Thanks for the additional info. I had meant to look it up and add it prior
> to sending
should not modify the children list directly or indirectly.
As I pointed out in my other reply, you may be able to set a
dummy graphic on all cells, and just hide it when it is not
needed.
--John
On 22/02/2023 02:26, Scott Palmer wrote:
We
this should
be considered a bug.
Scott
On Tue, Feb 21, 2023 at 7:37 PM Scott Palmer wrote:
> I agree, this seems like it could be the same issue. Could you give me a
> little more context as to how this code works? I'm not implementing my own
> skin (maybe I should, I've
I'm seeing an odd issue with using CSS to colour a Shape when I have it as
a child of a TextFlow.
My use case is a "rich" text Cell in a tree or list. I want to have the
text portion in multiple colours and so instead of using the graphic and
text parts of a typical Cell, I'm using only the Graph
Created JDK-8302336 <https://bugs.openjdk.org/browse/JDK-8302336>
On Mon, Feb 13, 2023 at 8:42 AM Kevin Rushforth
wrote:
> Yes, please file a bug. An intermittent exception would be one thing,
> but it shouldn't actually crash when doing that.
>
> -- Kevin
>
>
I'm seeing a hard crash in native code that brings down the JVM when I
accidentally called removeChild on an element from a WebView Document while
not on the Platform thread. While I know it's my error, bringing down the
JVM instead of throwing an exception seems wrong.
Should this be considered
On Tue, Jan 31, 2023 at 6:15 PM Andy Goryachev wrote:
> On Tue, 31 Jan 2023 23:04:50 GMT, Scott Palmer
> wrote:
>
> > Is it necessary for any application to know about "auto"?
>
> I actually don't know how the "auto" behaves. From the descripti
On Sun, 29 Jan 2023 17:10:26 GMT, Michael Strauß wrote:
>> Platform preferences are the preferred UI settings of the operating system.
>> For example, on Windows this includes the color values identified by the
>> `Windows.UI.ViewManagement.UIColorType` enumeration; on macOS this includes
>> t
t; Also, a question for the wider audience: is there a need to have
> caretBlinkRate property for each control, or a single global one would
> suffice? In other words, are there use cases when two or more controls
> might need a different blink rate?
>
>
>
> Thank you.
>
>
election of a cell, updateItem is called once,
creating new Nodes for the Cell's graphic, and getBaselineOffset for the
StackPane is called 4 times. The first 3 times the first managed child of
the StackPane has layoutY = 0.0, the last time it is 7.5.
There's a bug here somewhere...
Scot
rned off to match macOS). On Windows the
emojis are never in color.
Regards,
Scott
On Wed, Jan 25, 2023 at 10:41 PM Scott Palmer wrote:
> I've been using RichTextFX to make my own code editor/IDE. I see that you
> have asked that project specifically on GitHub, excellent.
> One t
I'm seeing something odd with the alignment of content in a TextFlow and
I'm not sure if I'm doing something wrong, or if there is a bug there.
The getBaselineOffset() method of the StackPane is returning inconsistent
values. If I sub-class it to force a constant offset, everything works.
Since th
Are small simplifying changes to the gradle scripts welcome?
E.g. instead of:
def inStream = new java.io.BufferedReader(new java.io.InputStreamReader(new
java.lang.ProcessBuilder(JAVA, "-fullversion").start().getErrorStream()));
try {
String v = inStream.readLine().trim();
if (v != null) {
int ib
I guess --patch-module should be used instead of --update-module-path ? It
seems to be a little more complicated.
On Thu, Jan 19, 2023 at 2:17 PM Scott Palmer wrote:
> I found the problem. I'm using a build of OpenJDK from Azul that includes
> the javafx modules. You probably ar
build worked.
I think this will have to be fixed somehow or the documentation needs to
change to forbid a JDK with built-in JavaFX modules. The current attempts
in the build script to deal with existing javafx modules are not working.
A fix would be better.
Scott
On Thu, Jan 19, 2023 at 1:29
This isn't affecting anything, but while trying to figure out my build
issues I noticed this typo and mismatch between the comment and the code..
"verion" at https://github.com/openjdk/jfx/blob/master/build.gradle#L617
But more significant, the actual command issued is "java -fullversion"
which ou
" working, then it will do that).
>
> What version of gradle are you using? You will need gradle 7.6 to use JDK
> 19.
>
> -- Kevin
>
>
> On 1/19/2023 10:17 AM, Scott Palmer wrote:
>
> Tried again with JDK 17.0.5, just in case... still not working.
>
> On Wed, Jan 18,
Tried again with JDK 17.0.5, just in case... still not working.
On Wed, Jan 18, 2023 at 3:18 PM Scott Palmer wrote:
> I'm trying to build OpenJFX on my Mac. I figured out an issue with the
> Gradle scripts, they fail if there is a stale mac_tools.properties file. A
> 'clean&
I'm trying to build OpenJFX on my Mac. I figured out an issue with the
Gradle scripts, they fail if there is a stale mac_tools.properties file. A
'clean' also fails for the same reason so you have to manually delete the
file to get it to be re-built. But now the build fails with the following
err
er to the web standard.
> You wrote that it might not be worth to wait for the standard; does
> that mean that you'd get a lot of value from this proposed feature?
> Improving one line of code in Modena.css is probably not enough
> justification.
>
> On Sun, Jan 15, 2023 at 1
I was looking at Modena.css and came across this:
/* A bright blue for the focus indicator of objects. Typically used as
the
* first color in -fx-background-color for the "focused" pseudo-class.
Also
* typically used with insets of -1.4 to provide a glowing effect.
*/
-fx-fo
I’ve been experimenting, trying to figure out a cross-platform way of
displaying emojis in a JavaFX application. It has been interesting.
I tested on macOS and Windows 11. On macOS I explicitly set the font to “Apple
Color Emoji”, on Windows 11, I used “Segoe UI Emoji”. Those appear to be the
+1 to doing something like this. I just recently discovered FXCollections.concat(ObservableList…) doesn’t do what you propose. I figured that was the whole point.ScottOn Dec 31, 2022, at 3:44 PM, Nir Lisker wrote:We can do better than that. Instead of introducing methods for specific operations,
also does something like
`splitPane.getItems().addAll(x, y, z)`.
Same may apply to items in a List / Table / TreeView -- are they
children?
--John
On 24/12/2022 19:09, Scott Palmer
wrote:
That’s interesting. It leads me to wonder
;
> I doubt this is documented anywhere at all, it's one of those things that
> doesn't work quite right in JavaFX before a Scene is displayed.
>
> --John
>
> On 23/12/2022 23:49, Scott Palmer wrote:
>> I just want to make sure this is not expected behaviour. I d
I just want to make sure this is not expected behaviour. I don’t think so, the
documentation for lookupAll doesn’t mention anything related, but maybe I
missed something somewhere else.
I was just coding something to query the Scene for all SplitPanes and
save/restore the divider positions for
I just noticed that Dialogs set to be resizable don’t have any constraints on
min/max size. So no min/max size properties on Dialog, nor does it limit
resizing to within the constraints of the DialogPane.
Am I missing something, or shall I file an enhancement request?
Scott
I like "when" (partly because it is short and to the point, Java is already
verbose enough.)
I also thought of "trackWhile" to indicate the value is only tracking the
value of the source ObservableValue while the condition is true.
Scott
On Mon, Nov 14, 2022 at 12:47 PM Andy Goryachev
wrote:
This is why I suggested long ago that there should be .jmod zips in Maven
central or similar. We need a dependency management system that works with
JMODs for exactly this reason. Zips in the current public repos would work.
Scott
> On Nov 21, 2022, at 11:08 AM, Armin Schrenk wrote:
>
> Oh,
While reading this I was thinking of a similar, but not quite the same use
case. A visual Diff program that is showing two versions of the same
source file side-by-side. Scrolling both views in a synchronized way such
that lines that are the same are aligned is a common feature, but since one
fil
ot; list in my
> head and maybe
> even on a wiki somewhere .. but no concrete timetable exists.
>
> But it is good to get feedback like this so we know it is interesting to
> developers.
>
> -phil.
>
> On 10/24/22 12:07 PM, Scott Palmer wrote:
>> Something I noti
Something I noticed while experimenting with RichTextFX, when I set it to use
Fira Code for the font, like I do in NetBeans, I see that JavaFX doesn't
support ligatures. I found this issue that's been around for quite some time:
https://bugs.openjdk.org/browse/JDK-8091616
Is there any drive to
>
> --John
>
> On 20/09/2022 06:25, Scott Palmer wrote:
>> Windows applications often have an “Exit” menu item, but since it isn’t
>> standardized like it is on macOS, calling a quit handler for it would need
>> to be a manual step - but the exact same method for th
Windows applications often have an “Exit” menu item, but since it isn’t
standardized like it is on macOS, calling a quit handler for it would need to
be a manual step - but the exact same method for the quit handler could be
called, leaving it up to the programmer to continue or not with the app
The link to the Release Notes at https://openjfx.io/ goes to
https://github.com/openjdk/jfx/blob/jfx19/doc-files/release-notes-19.md which
is giving me a 404 error.
It seems the release note files at
https://github.com/openjdk/jfx/tree/jfx19/doc-files only go up to v18.
The same folder on the
> On Jul 21, 2022, at 9:48 PM, Alexander Matveev
> wrote:
>
> Greetings!
>
> We are running a little survey to get input on possible JavaFX Media
> enhancements. Below you can find a list of possible JavaFX Media
> enhancements, which we might implement in the future, although there is no
41 matches
Mail list logo