0

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 ?

Yasmin
  • 931
  • 3
  • 14
  • 35

2 Answers2

2

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.

Community
  • 1
  • 1
Joop Eggen
  • 107,315
  • 7
  • 83
  • 138
0

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

monkSinha
  • 341
  • 3
  • 10