Yasmin
Yasmin

Reputation: 951

Java GUI compatible with Mac and Windows

I have a project whose GUI was implemented in MAC notebook, when I tried to run it in Windows, there is different GUI and also different buttons' characters. I checked the type of all used fonts, and I am sure they are all installed in windows, Are there any other things I have to consider to work in both platforms ?

Upvotes: 0

Views: 1472

Answers (2)

monkSinha
monkSinha

Reputation: 361

You can Swing as the same code you develop will run on Mac, Windows or Linux.

  1. You can install Windows Builder for eclipse. Tute is here: https://www.youtube.com/watch?v=oeswfZz4IW0 (till 5:05 in the video)

  2. A comprehensive guide to Swing and its various components can be found here: https://www.youtube.com/watch?v=rgkWfz7Vy40

Upvotes: 0

Joop Eggen
Joop Eggen

Reputation: 109547

In swing there exists a LookAndFeel which by default is set to be platform specific: adapt to the normal platform theme. A nice cross-platform look-and-feel is nimbus.

What the fonts are concerned: look at this where registerFont is called.

Upvotes: 2

Related Questions