Can we ape the GTK+ 2.0 button style in Java Swing?

*爱你&永不变心* 提交于 2019-11-27 16:22:34
mKorbel

there are two ways

  • write own JButton

  • but correct way (don't reinvent the wheel) use proper Look and Feel,

  • possible scenario

    1. go to Insubstantial

    2. download code source,

    3. import all classes to the IDE (2-15 min depends of PC HardWare)

    4. search for folder test, there is Check.java,

    5. run that and to try everything in JMenu Look and Feel, required download jar files for every good Custom Java Swing Look and Feels are accesible from JMenu

    6. nothing better around, all standard and good custom Swing's Look and Feel in one JFrame

    7. maybe better would be to use Substance together with SwingX, very good Custom implementation for Custom Swing, again nothing better around

    8. NOTICE: SwingX required more than basic Swing knowledge, Substance (my view) required update and customize some methods in original code too

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