Skip to main content

example (tutorial) for swingx components

3 replies [Last post]
Anonymous

Is there any ?

regards

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
snpe

Hello,
I need simple example (I am interessing for binding swing-POJO).This is example from swt workbench
public class EditProperty {

private class Employee {
private String ssn="";

public String getSSN() {
return ssn;
}

public void setSSN(String ssn) {
this.ssn = ssn;
}

private String name="";

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
}

private Employee employee = new Employee();

public void setupUI(Shell parent) {
parent.setLayout(new RowLayout(SWT.VERTICAL));

new Label(parent, SWT.NULL).setText("Social Security Number");
Text ssnField = new Text(parent, SWT.BORDER);
new POJOFieldAdapter(ssnField, "SSN", employee);

new Label(parent, SWT.NULL).setText("Name");
Text nameField = new Text(parent, SWT.BORDER);
new POJOFieldAdapter(nameField, "Name", employee);
}

public void afterClose() {
System.out.println("Social Security Number = " +
employee.getSSN());
System.out.println("Name = " + employee.getName());
}

This is binding :
new Label(parent, SWT.NULL).setText("Name");
Text nameField = new Text(parent, SWT.BORDER);
new POJOFieldAdapter(nameField, "Name", employee);

How I can do with JDNC ?

regards
On Thursday 22 July 2004 01:41 am, snpe wrote:
> Is there any ?
>
> regards
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Anonymous

We are planning to include more Swingx API examples and eventually a tutorial, but they arn't available yet.

I'll post the JavaOne master/detail example to get the ball rolling. (just need time to clean it up & add comments because like most demos, I ripped it out in a hurry!)

Aim

Patrick Wright

Would be great to see code posted...is this a good use for a wiki page,
one or more ZZZTutorial? Then people can either post code samples (or
links to them) or wish lists for tutorial stuff.

Patrick

> We are planning to include more Swingx API examples and eventually a
> tutorial, but they arn't available yet.
>
> I'll post the JavaOne master/detail example to get the ball rolling. (just
> need time to clean it up & add comments because like most demos, I ripped
> it out in a hurry!)
>
> Aim
> ---
> [Message sent by forum member 'Aim' (Amy Fowler)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=18460䠜
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net