Java Swing UIManager init()

Here you can find the source of init()

Description

init

License

Open Source License

Declaration

public static final void init() 

Method Source Code

//package com.java2s;
/**//  www  .ja v a2  s.  c o  m
 * Copyright? 2014-2016 LIST (Luxembourg Institute of Science and Technology), all right reserved.
 * Authorship : Olivier PARISOT, Yoanne DIDRY
 * Licensed under GNU General Public License version 3
 */

import javax.swing.*;
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;

public class Main {
    public static final void init() {
        JFrame.setDefaultLookAndFeelDecorated(true);
        JDialog.setDefaultLookAndFeelDecorated(true);
        //SubstanceLookAndFeel.setSkin(new ModerateSkin());
        try {
            UIManager.setLookAndFeel(new WindowsLookAndFeel());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Related

  1. getUnfocusedSelectionForeground()
  2. getUnfocusedSelectionForeground()
  3. getUnfocusedSelectionForeground()
  4. getWindowsVisualStyle()
  5. GUI_unit(double p_GUI_unit, java.awt.Component c)
  6. initComponentHeight(final Component... components)
  7. initGui()
  8. initialize()
  9. initLnF()