All Downloads are FREE. Search and download functionalities are using the official Maven repository.

examples.legacy.GridBag Maven / Gradle / Ivy

The newest version!
package examples.legacy;
import javax.swing.JFrame;

import org.swixml.SwingEngine;




/**
 * The GridBag class shows how to do a simple GridBag layout
 *
 * @author Wolf Paulus
 * @version $Revision: 1.1 $
 *
 * @since swixml 0.5
 */
public class GridBag extends JFrame {
  /** Default ctor for a SwingEngine. */

  private GridBag() {
    try {
    	new SwingEngine( this ).render( "xml/gridbag.xml" ).setVisible( true );
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

  public static void main(String[] args) {
    new GridBag();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy