2

I want to create platform independent desktop application with modern look and feel (Simmilar to github desktop application). Is it possible to design desktop application with same kind of look and feel that the github desktop application is providing using java ?

Please see github windows application first for reference. Because I already know awt and swing in java, but I don't think we can create same look and feel with awt or swing.

Thanks in advance.

mKorbel
  • 109,525
  • 20
  • 134
  • 319
Nikhil N
  • 4,507
  • 1
  • 35
  • 53

2 Answers2

7

Of course you can!

You can make your own custom LookAndFeel [tutorial] for your applications. Or you can look at one of the ones already available on your computer to see if it's "modern" enough for you:

System.out.println(Arrays.toString(UIManager.getInstalledLookAndFeels()));
Jeffrey
  • 44,417
  • 8
  • 90
  • 141
1

It is possible to apply the Synth look and feel to your swing application, then you are able to completely redesign your widgets with a xml file so you don't have to write additional code. Nearly every attribute of a Swing widget can be configured.

final SynthLookAndFeel laf = new SynthLookAndFeel();

try {
    laf.load(new FileInputStream("/path/to/your/style.xml"), this.getClass());
    UIManager.setLookAndFeel(laf);
} catch (final UnsupportedLookAndFeelException e) {
    e.printStackTrace();
} catch (final ParseException e) {
    e.printStackTrace();
}