View Single Post
Old Feb 26, 2009 | 12:45 PM
  #1  
PeterD's Avatar
PeterD
PassionFord Post Whore!!
 
Joined: Nov 2005
Posts: 4,062
Likes: 0
From: Edinburgh
Default Any PF programmers in? can i get a hand?

Hopefully somebody will know what I'm on about....

I'm trying to build a basic (windows) panel with two text entry fields. I'm trying to learn Groovy 1.6.0 and NetBeans is failing to compile this code and i think its to do with the open quotation mark in the two textfield statements, i cant take them out though because they are in the working examples I've been through from the developers website so they must work in the code, if they don't then I don't know what would

Here's my simple code......

import javax.swing.WindowConstants as WC

import groovy.swing.SwingBuilder

def swingB = new SwingBuilder()

def frame = swingB.frame(tittle:'Example01', location:[100,100],size:[800,800],
defaultCloseOperation:WC.EXIT_ON_CLOSE)
{
panel(border:titledBorder(title:'Name'))
{
label(text:'First name:')
textField(text:",columns:20)
label(text:'Last name:')
textField(text:",columns:20)
}
}

swingB.doLater{frame.visible = true}

Does anybody know why that causes an error?

Thanks in advance

Pete
Reply