What does look and feel (java swing) mean?

这一生的挚爱 提交于 2019-12-07 01:15:18

问题


Actually what is meant by look and feel?


回答1:


It means how the Graphical User Interface (GUI) looks like and behaves. Every OS has its own typical Look&Feel.

At the beginning, Java had its own, but of course most people want to have their applications look like the others of their OS.

You can change the L&F of your Java applications, read about it in the tutorials.

Read about L&F in general at Wikipedia.




回答2:


To directly quote the Sun tutorials:

"Look" refers to the appearance of GUI widgets (more formally, JComponents) and "feel" refers to the way the widgets behave.




回答3:


This is how your application looks like. Read here.




回答4:


Others have said it is a way to change the way your program looks and feel.

To demonstrate, go to http://java.sun.com/javase/technologies/desktop/javawebstart/demos-nojavascript.html and launch "The SwingSet Demo" (requires Java installed).

In the menu under "Look & Feel" several options exist that allows you to choose between different Look and Feels included with the default Java installation.

You can also bring your own if you want to. See http://www.jgoodies.com/freeware/metamorphosis/index.html for a demonstration about how to tweak your Look and Feel. You can launch the demo directly from http://www.jgoodies.com/download/demos/metamorphosis/metamorphosis.jnlp



来源:https://stackoverflow.com/questions/2612888/what-does-look-and-feel-java-swing-mean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!