Re: Updating printers while application is running?

2022-06-07 Thread Thiago Milczarek Sayão
Hi, I use it through the javax.print API: ObservableList printServices = FXCollections.observableArrayList( PrintServiceLookup.lookupPrintServices(null, null)); Maybe it may help for now, but to me it seems it should not be static. Em ter., 7 de jun. de

Re: @font-face question

2022-05-23 Thread Thiago Milczarek Sayão
Hi, After further investigation, I think there's a bug that font-family is not working (defining a font family name). Because regardless of the font-family I use, the font name within the font is used. It's openjfx 17.0.2 -- Thiago. Em sex., 20 de mai. de 2022 às 18:06, Thiago Milcz

@font-face question

2022-05-20 Thread Thiago Milczarek Sayão
Hi, I want to have one font that is "regular" and a variation of the same font as "bold", used when specified "-fx-font-weight: bold". @font-face { font-family: 'Gotham Condensed'; src: url('../fonts/GothamCondensed-Book.otf'); } @font-face { font-family: 'Gotham Condensed Bold';

Re: Xlib backend

2022-05-17 Thread Thiago Milczarek Sayão
n dialogs" such as file open, etc. I'm also investigating Wayland. It's somewhat similar to Xorg when it comes to events and the use of XDG specs. Probably will replace cairo with egl. -- Thiago. Em dom., 24 de abr. de 2022 às 17:40, Thiago Milczarek Sayão < thiago.sa...@gm

kenai closed

2022-05-11 Thread Thiago Milczarek Sayão
Hi, http://duke.kenai.com/misc/DrinkingBeer.jpg This is on HelloImage.java A quick search for "kenai.com" shows some entries, mostly commented. -- Thiago.

Re: Xlib backend

2022-04-24 Thread Thiago Milczarek Sayão
've got a > version that is reasonably stable. > > Best regards, > Greg > > Thiago Milczarek Sayão writes: > > > Kevin, > > > > Sure, I was hoping for the question. > > > > "The focus of GTK has moved away from being a “meta to

Re: Xlib backend

2022-04-11 Thread Thiago Milczarek Sayão
ity mode, I would > expect more use of gtk and less use of Xlib, not the other way around. > > -- Kevin > > On 4/10/2022 2:43 PM, Thiago Milczarek Sayão wrote: > > Hi, > > > > I got simple samples running on the pure Xlib port of the Gtk backend. > > >

Xlib backend

2022-04-10 Thread Thiago Milczarek Sayão
Hi, I got simple samples running on the pure Xlib port of the Gtk backend. It still has gtk code, but mainly uses Xlib by now. Don't judge the code, I'm porting it gradually. https://github.com/openjdk/jfx-sandbox/tree/tsayao_xlib java @build/run.args -cp apps/toys/Hello/dist/Hello.jar hello.He

Self built openjfx 17.0.2

2022-03-30 Thread Thiago Milczarek Sayão
Hi, Does the "jfx17" branch contain the latest javafx 17.0.2 code ? https://github.com/openjdk/jfx/tree/jfx17 Also, I have built jmods of this branch with "gradlew jmodLinux" and the resulting jmods are quite bigger comparing to the released ones. I guess it's some debug symbols or something. Sh

Re: Use pure X11 backend for glass native

2022-02-10 Thread Thiago Milczarek Sayão
Hi, So far, it seems native Xlib is a good fit: https://github.com/openjdk/jfx-sandbox/tree/tsayao_xlib It's still a big mess since I'm porting gradually while learning X11. -- Thiago. Em ter., 25 de jan. de 2022 às 12:06, Thiago Milczarek Sayão < thiago.sa...@gmail.com> escr

JavaFX with Python/JS

2022-02-07 Thread Thiago Milczarek Sayão
Hi, Would it be possible to use JavaFx with python/graalvm ? Maybe javascript? Gluon, Would that not be a huge marketing opportunity? Write apps in python/js ? Cheers.

Thank you for JavaFX

2022-01-23 Thread Thiago Milczarek Sayão
Hi, Just wanted to share, the software on this pharmacy store has all it's frontend on JavaFX, including the self checkout, that doesn't look like a traditional desktop app yet uses pure JavaFX (customized with css). https://ndmais.com.br/saude/joinville-ganha-uma-farmacia-do-futuro-entenda/ Tha

Gtk4 on openjfx-sandbox

2021-10-05 Thread Thiago Milczarek Sayão
Hi, I have done some porting to gtk4: https://github.com/openjdk/jfx-sandbox/tree/tsayao_gtk4_playground It currently compiles, but does not show any windows (I suspect of an threading issue). Some parts such as DND are commented out. To use it, pass: -Djdk.gtk.version=4 -Djdk.gtk.verbose=true

Re: Gtk4 and Wayland

2021-09-14 Thread Thiago Milczarek Sayão
gt; be > >> many installs that have no X11, but only Wayland, and that have GTK3 > and no > >> GTK4. > > I tend to agree with you, I think we should consider this for Wakefield > too. > > > > Cheers, > > Mario > > > >> - Johan > &

Re: Announcing the new jfx-sandbox repo

2021-09-13 Thread Thiago Milczarek Sayão
ill add a > commit soon with a diff for the Robot API. > I will have a look at Thiago's gtk4 branch as well. > > - Johan > > On Mon, Sep 13, 2021 at 12:52 AM Thiago Milczarek Sayão < > thiago.sa...@gmail.com> wrote: > >> Hi Kevin, >> >> https://g

Re: Announcing the new jfx-sandbox repo

2021-09-12 Thread Thiago Milczarek Sayão
Hi Kevin, https://github.com/tsayao/jfx-sandbox/tree/tsayao_gtk4_playground I have started this as an experiment to make a gtk4 version of the native lib. I did a fork because I don't have permission to branch on jfx-sandbox (or maybe I did something wrong). @Johan Vos has stated that he is ex

Gtk4 and Wayland

2021-08-31 Thread Thiago Milczarek Sayão
Hi, I did some investigation on gtk4 and wayland. After some research I ended up with the conclusion that the best way is to do a separate gtk4 backend, that would support X11 and Wayland. This would be a good start: https://github.com/openjdk/jfx/pull/77/files Why? Gtk4 moves the decoration t

Re: Why GTK4 glass backend will not (probably) be an #IFDEF

2021-08-16 Thread Thiago Milczarek Sayão
than 3.8) or starting from Gtk4. -- Thiago. Em sáb., 14 de ago. de 2021 às 18:41, Thiago Milczarek Sayão escreveu: > > Gtk4 glass implementation will probably be a new glass implementation > based on the current one because there are too many "breaking" > changes. >

Gtk3 minimum required version

2021-08-16 Thread Thiago Milczarek Sayão
Hi, Currently the minimum required version is 3.8. Beginning on 3.10 Gtk added support for client-side decorations and the GtkHeaderBar is the default widget to do that. https://docs.gtk.org/gtk3/ctor.HeaderBar.new.html Gtk 3.10 was released Sep/2013. Gtk4 and Gnome apps default to this behavi

Why GTK4 glass backend will not (probably) be an #IFDEF

2021-08-14 Thread Thiago Milczarek Sayão
Gtk4 glass implementation will probably be a new glass implementation based on the current one because there are too many "breaking" changes. Changes are listed here: https://docs.gtk.org/gtk4/migrating-3to4.html Specially note: https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-gtkwindow-api

Re: apps compilation fails on ubuntu 20.04

2021-08-12 Thread Thiago Milczarek Sayão
/2021 12:33 PM, Abhinay Agarwal wrote: > > I am on Ubuntu 20.04. Using ANT 1.10.8, "gradlew apps" works for me. > > > > However, "gradlew sdk" fails for me since we upgraded to Gradle 7.0.1. I > always switch back to Gradle 6.9 to build a local sdk. > >

Re: Enhancements for JavaFX 18

2021-08-11 Thread Thiago Milczarek Sayão
ayland > gtk4-x11 > gtk4-wayland > > Not sure whether that makes sense or not. > > I imagine that 1 should be feasible in the JavaFX 18 time frame. A > native Wayland port will be a lot of work, but since JavaFX already uses > GTK for most things, it should be significantly les

Re: Enhancements for JavaFX 18

2021-08-11 Thread Thiago Milczarek Sayão
Hi, One feature I will probably submit is touch events on Linux. Cheers. Em sex., 30 de jul. de 2021 às 09:59, Kevin Rushforth < kevin.rushfo...@oracle.com> escreveu: > Now that JavaFX 17 is in RDP2, we can turn more attention to bug fixes > and enhancement requests for JavaFX 18. It's the summ

Re: Enhancements for JavaFX 18

2021-08-10 Thread Thiago Milczarek Sayão
Hi Johan, Would you prefer a pure Wayland backend or support it with gdk/GTK on top of the current glass backend? Cheers Em ter, 10 de ago de 2021 07:52, Johan Vos escreveu: > I think we (everyone committing/reviewing in openjdk/jfx) did a great job > with the 17-work: an impressive amount of

apps compilation fails on ubuntu 20.04

2021-08-05 Thread Thiago Milczarek Sayão
Hi Does anyone knows how to get *gradlew apps* working on ubuntu 20.04? I have: Apache Ant(TM) version 1.10.7 compiled on October 24 2019 openjdk version "16.0.1" 2021-04-20 I want to run the test apps. -do-compile: [javac] Compiling 143 source files to /home/tsayao/IdeaProjects/jfx/apps/sa

Wayland glass backend

2021-03-29 Thread Thiago Milczarek Sayão
I've been superficially looking into this (wayland). Seems like we could bind libwayland to java and build a managed backend from there. This would be so cool. Looks like here is an easy way to create bindings: https://github.com/wayland-project/wayland/blob/master/protocol/wayland.xml It's too

Re: Glass backends - xGravity and yGravity

2020-12-23 Thread Thiago Milczarek Sayão
avity set to a non-zero > value is in the centerOnScreen method. > > -- Kevin > > > On 12/14/2020 2:26 PM, Thiago Milczarek Sayão wrote: > > Hi, > > > > Question: Are the xGravity and yGravity still in use? > > > > Windows glass backend seems to igno

Glass backends - xGravity and yGravity

2020-12-14 Thread Thiago Milczarek Sayão
Hi, Question: Are the xGravity and yGravity still in use? Windows glass backend seems to ignore it, and I can't think of any scenario where this would be used on Linux glass backend. package com.sun.glass.ui; public abstract class Window { .. /** * Sets the window bounds to the specified

Re: Linux basic application not displaying correctly

2020-12-14 Thread Thiago Milczarek Sayão
Hi Chad, I did not get the issue, please send the screenshots to my e-mail as they don't get through the list. One possibility: The Gtk glass backend tries to follow Windows (as in the operating system) sizes. On Windows, window sizes are the whole window, including decorations. On X (Linux) wind

Using awt calls within OpenJfx context

2018-10-25 Thread Thiago Milczarek Sayão
With JavaFx that shipped with Oracle Java 10 I was able to do: Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK) This is used to get if caps lock key is On. With OpenJfx 11 this call produces: java.awt.HeadlessException: null Is there a way to get the caps lock key state

Window opening glitch on ubuntu 18.04

2018-10-11 Thread Thiago Milczarek Sayão
I have migrated our development environment from java-10 javafx to java-11 and openjfx-11. One thing I have noticed is that windows opens on the top left corner of the screen and than moves to a center location. The weird thing is that we can see the window moving. It appears to be a glitch. Th

How to use OpenJFX Early-Access Builds?

2018-06-21 Thread Thiago Milczarek Sayão
Hi, I am trying to use the openjfx early-access builds with openjdk as described in http://jdk.java.net/openjfx/ (the page says to give feedback here). openjdk version "10.0.1" 2018-04-17 OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1) OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubunt