Java Swing UIManager configureStandardUI()

Here you can find the source of configureStandardUI()

Description

Sets up the standard UI.

License

Open Source License

Declaration

public static void configureStandardUI() 

Method Source Code

//package com.java2s;
/*//  w  w  w.j  a v a 2s  .  c  o m
 * Copyright (c) 1998-2017 by Richard A. Wilkes. All rights reserved.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, version 2.0. If a copy of the MPL was not distributed with
 * this file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This Source Code Form is "Incompatible With Secondary Licenses", as
 * defined by the Mozilla Public License, version 2.0.
 */

import javax.swing.UIManager;

public class Main {
    /** Sets up the standard UI. Should be called very early in the application launch process. */
    public static void configureStandardUI() {
        System.setProperty("apple.laf.useScreenMenuBar", Boolean.TRUE.toString()); //$NON-NLS-1$
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception ex) {
            ex.printStackTrace(System.err);
        }
    }
}

Related

  1. adjustBackground(JComponent c)
  2. applySizeVariant(JComponent c)
  3. beep(Component comp)
  4. canChangeSize()
  5. clearErrorLabel(JLabel label)
  6. createDefaultHorizontalAlignment()
  7. createErrorLabel(String errorMsg)
  8. createFlow(final Object... components)
  9. createHorizontalAlignment(int scoutAlign)