Package ManejoVentanas

Source Code of ManejoVentanas.principal

/*
* principal.java
*
* Created on 22 de noviembre de 2007, 02:56 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

package ManejoVentanas;

import javax.swing.UIManager;
import org.jvnet.substance.skin.SubstanceGreenMagicLookAndFeel;

/**
*
* @author JaMi2o
*/
public class principal {
   
    /** Creates a new instance of principal */
   public static void main(String[] args) {

         // set system properties here that affect Quaqua
         // for example the default layout policy for tabbed
         // panes:
         System.setProperty(
            "Quaqua.tabLayoutPolicy","wrap"

         );

         // set the Quaqua Look and Feel in the UIManager
        try{
           
            // Get current size of heap in bytes
        long heapSize = Runtime.getRuntime().totalMemory();
   
    // Get maximum size of heap in bytes. The heap cannot grow beyond this size.
    // Any attempt will result in an OutOfMemoryException.
        long heapMaxSize = Runtime.getRuntime().maxMemory();
   
    // Get amount of free memory within the heap in bytes. This size will increase
    // after garbage collection and decrease as new objects are created.
        long heapFreeSize = Runtime.getRuntime().freeMemory();
          //UIManager.setLookAndFeel(new SubstanceBusinessBlackSteelLookAndFeel());
          // UIManager.setLookAndFeel(new SubstanceFieldOfWheatLookAndFeel());
           UIManager.setLookAndFeel(new SubstanceGreenMagicLookAndFeel());
        }
        catch (Exception e) {
            e.printStackTrace();
        }   
         // insert your application initialization code here
         new VentanaPrincipal() ;
        
   
     }
   
}
TOP

Related Classes of ManejoVentanas.principal

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.