I'm tired of JButtons, how can I make a nicer GUI in java?

前端 未结 10 1257
予麋鹿
予麋鹿 2020-12-13 20:19

So far I\'ve only built \"small\" graphical applications, using swing and JComponents as I learned at school. Yet I can\'t bear ugly JButtons anymore. I\'ve tried to play wi

相关标签:
10条回答
  • 2020-12-13 20:50
    try
    {
         UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch(Exception e)
    {}
    
    0 讨论(0)
  • 2020-12-13 20:51

    You may want to try JavaFX. For all its problems, I find that if you want to put a decent (preetier than Swing) interface over your Java application, its quite easy to do. Plus good Java integration. You can implement Java interfaces in JavaFX and vice versa.

    0 讨论(0)
  • 2020-12-13 20:51

    If you are a little bit into graphics design, you might want to consider creating your own design with Synth, which is part of the standard JRE. If you don't want to create your own, google for free existing themes which you may use.

    Alternatives to Synth are either Synthetica (free for personal, non commercial use) or Substance ("free" as in "BSD License").

    0 讨论(0)
  • 2020-12-13 20:54

    Our project manager doesn't like JButtons as well and we're using JIDE OSS buttons instead(and lot's of other JIDE components). SwingX also offers an alternative - JXButton. IMO these are the two most valuable external Swing libraries around.

    0 讨论(0)
  • 2020-12-13 21:01

    It would be nice if Java had a similar tool to Interface Builder (the GUI development tool that comes with Xcode) - by far the best UI builder I've ever seen.

    0 讨论(0)
  • 2020-12-13 21:02

    This article shows how to extend JButton and overide the methods for painting the component.

    0 讨论(0)
提交回复
热议问题