Add support for the java awt and swing components whenever possible.
There is a new Apple System setting in which we can select Prefer Tabs -> to Always or Full Screen.
java components behave differently when opening in new tab.
1. opening two JFrame in tab works fine
2. opening dialog in new tab cause application freeze(https://bugs.openjdk.java.net/browse/JDK-8256465)
Need to examine the behaviour of different components and add support for the components which can be opened in new tab.
More discussion : https://github.com/openjdk/jdk/pull/3407
http://mail.openjdk.java.net/pipermail/awt-dev/2021-April/017464.html