65 Interface broken when maximized - yEd Q&A
Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Interface broken when maximized

0 votes
In Linux Mint 12, i never experienced it before, but today i discovered that :

maximizing yed window cause widget (like color choices) appear in wrong places, but the mouse must be clicked in the expected position.

If i click on the widget odd things happens, because I am not really clicking on it , but behind it. It seems like the draw offset is wrong and the logic position of the mouse is still right.

This makes yed unusable.
in Help by
I have the exact same problem and it appeared only after I upgraded to Ubuntu 14.04, Gnome Shell 3.10.4 - my java version is 1.7.0_67, but I think Gnome Shell is the culprit (it has caused a bunch of problems in other programs) I guess waiting is the game to play here... :S

1 Answer

0 votes

That is a problem with Java, your window manager, or (even more likely) a combination thereof. Which version of Java are you using (see "Help" -> "About")? Your best bet will be upgrading to the most recent Oracle Java (Java SE 7u3 as of this writing).

by [yWorks] (163k points)
This issue is unfortunately still open in 2025.

On Fedora 42 / KDE Plasma
yEd 3.25-1
The JDK is "OpenJDK Runtime Environment Temurin-22.0.2+9 (build 22.0.2+9)"
This should be the JRE that comes packaged with the "yEd for Linux" setup file.

Running Wayland if I understand correctly.

I cannot run the window maximized, the program evidently receives the wrong mouse coordinates for menu selections (the main menu and the attribute menus are affected). This is easily tested with the "Fill Color" for example. On has to select "below" the position given by the displayed elements. Or you can try "File > New" and fail miserably.

Special: I have a dual screen. But switching to single screen doesn't change anything, actually.

I thought it could be an offset problem due to the KDE Plasma "panel" at the bottom of the screen but the offset doesn't seem to match the width of the panel. Additionally the problem appears irrespective of whether the maximized window is on the screen with the "panel" at the bottom or the screen without the "panel" at the bottom.

It could be some special interaction with Wayland, who knows. But it doesn't seem to be a problem that appears generally in Java GUI applications (?)

"yEd 3.25-1" is not how we format yEd version numbers. Is that a simple typo or did you install yEd from an alternative source? The only "official" way to install yEd is  by downloading an installer script from the yEd download page.

Moreover, we do not bundle Temurin with yEd installers but only Oracle or BellSoft Liberica JREs.

So, my advice is to test the official installer with Liberica JRE. Due to its old age, running yEd requires some special configuration flags that an installer from an alternative source may not reproduce.

Sorry for the late reply And the confusion.

This is definitely the official yEd package. You are correct about the formatting:

The correct version code is "3.25.1".

It also uses the JRE that comes with the package. I don't know why I thought it might be the Temurin (which is also on this system but in another location entirely). We find that the JRE is:

$ /usr/local/yed/yEd-3.25.1/jre/bin/java -version
openjdk version "23.0.1" 2024-10-15
OpenJDK Runtime Environment (build 23.0.1+13)
OpenJDK 64-Bit Server VM (build 23.0.1+13, mixed mode)

The "About yEd" dialog says:

===
"OpenJDK 64-Bit Server VM, BellSoft"
===

So we are good here.

I thought that the problem may just be the AWT libraries that are not fully interoperable with / have quirks that do not work well with / Wayland. I'm currently working on a JavaFX application and have not encountered a similar problem.

UPDATE
------------

Actually running yEd with Adoptium JVM, which prints itself as
"OpenJDK 64-Bit Server VM Temurin-22.0.2+9"

by setting

app_java_home=/usr/local/java/jdk22_64_adopt

(which is the JAVA_HOME of that JVM) at the top of the yEd startup script doesn't help, yEd still can't with a maximized window.
Thank you for the additional information.

I guess, this is a Swing/Wayland issue then. I am running yEd 3.25.1 on KDE Plasma 5.24 and X11 without any issues.

To be honest, I do not think that there is much that can be done on the yEd side of things. This is something Oracle, the vendor of the Java runtime environment, and/or the Wayland maintainers have to improve.

That said, there is one thing left you could try (even though I fear the chances for success are not too good): Instead of running yEd with Java 22 (which is older than the bundled Java 23), you could try to run it with Java 24 or even Java 25. Maybe a newer version has less issues with Wayland.
Legal Disclosure | Privacy Policy
...