Java in Linux - different look and feel classes for root and non-root
问题 I noticed that Java proposes different look and feel classes for root and non-root users. I am trying to understand how to make LAF consistent. Moreover, it's inconsistent even within a user/root: depends on how user/root logged in: Sample code (compiled and packaged in laf.jar ): import javax.swing.UIManager; public class laf { public static void main(java.lang.String[] args) { try { System.out.print(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } } } Scenario 1 Logs in