/** * Computes and returns the initial <code>LayoutStyle</code>. * Checks the OS name and returns <code>MacLayoutStyle</code> * on Mac OS X and <code>WindowLayoutStyle</code> on all other platforms. * * @return MacLayoutStyle on Mac, WindowsLayoutStyle on all other platforms */ private static LayoutStyle initialLayoutStyle() { if (isOSMac()) return MacLayoutStyle.INSTANCE; return WindowsLayoutStyle.INSTANCE; }
/** * Computes and returns the initial <code>LayoutStyle</code>. Checks the * OS name and returns <code>MacLayoutStyle</code> on Mac OS X and * <code>WindowLayoutStyle</code> on all other platforms. * * @return MacLayoutStyle on Mac, WindowsLayoutStyle on all other platforms */ private static LayoutStyle initialLayoutStyle() { if (isOSMac()) return MacLayoutStyle.INSTANCE; else return WindowsLayoutStyle.INSTANCE; }