Search code examples
javaswinguser-interfacelook-and-feel

Do Java GUIs display the same on all operating systems?


Do programs written in Java that use components from Swing to build their GUI display exactly the same on all operating systems?

EDIT: let me ask the question this way: using Java is it possible to design a GUI that is guaranteed to display exactly the same on all platforms?


Solution

  • Saying shortly it will look differently by default, because swing uses system look & feel, but you can override it (http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html), in this case application will look the same on all platforms with the same look & feel, or you may disable some look & feel features like -Dswing.noxp=true