package com.blogspot.diegopacheco.groovy.builder.usage import java.awt.* import javax.swing.* import groovy.swing.* import com.blogspot.diegopacheco.groovy.builder.* /** * Classe groovy que mostra como usar o builder. * * @autor Diego Pacheco * @since 20/01/2009 * @version 1.0 * */ public class GroovyUsage { def swing = new CustomSwingBuilder() public void renderMe(){ def frame = swing.frame(title:'Tela de Teste', size:[300,300]) { borderLayout() caixaNumeros(text:"",constraints: BorderLayout.NORTH) } frame.show() } public static void main(String []args){ new GroovyUsage().renderMe() } }