yEd is a powerful graph editor that is coded in Java and supports a variety of platforms, including Ubuntu. However, by default it looks quite alien to the Ubuntu desktop as it doesn't appear to use a GTK theme. Unfortunately there is no setting to change is.

Is there anything I can do to make yEd more integrated into the Ubuntu desktop?


yEd uses Java's metallic theme by default. What you want is Java's GTKLookandFeel theme. Normally you would be able to do this by starting yEd with:

java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar yed.jar

Due to a bug in yEd/Java this does not work currently. For now you will have to apply the following workaround:

1.) Navigate to yEd's installation folder

cd $HOME/.yed

2.) Edit yed.jar and delete the class causing the theme issues

mv yed.jar yed.zip
zip -d yed com/jgoodies/looks/plastic/Plastic3DLookAndFeel.class
mv yed.zip yed.jar

You can now start yEd in GTK mode.

With some Java versions you might run into a scenario where all fonts in the GTK theme are formatted in bold. You can troubleshoot this by uninstalling a korean font package:

sudo apt-get remove --purge  fonts-unfonts-core 

If you don't feel like removing packages just to troubleshoot Oracle's bugs you can try out the workaround outlined in this comment.




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.