[seam-commits] Seam SVN: r9494 - in trunk/examples/itext: src/org/jboss/seam/example/pdf and 1 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Nov 3 20:18:15 EST 2008
Author: norman.richards at jboss.com
Date: 2008-11-03 20:18:15 -0500 (Mon, 03 Nov 2008)
New Revision: 9494
Modified:
trunk/examples/itext/resources/WEB-INF/components.xml
trunk/examples/itext/src/org/jboss/seam/example/pdf/SwingComponent.java
trunk/examples/itext/view/swing.xhtml
Log:
JBSEAM-3472
Modified: trunk/examples/itext/resources/WEB-INF/components.xml
===================================================================
--- trunk/examples/itext/resources/WEB-INF/components.xml 2008-11-04 01:03:07 UTC (rev 9493)
+++ trunk/examples/itext/resources/WEB-INF/components.xml 2008-11-04 01:18:15 UTC (rev 9494)
@@ -21,8 +21,4 @@
key-alias="pdfKey" />
<core:init debug="true" jndi-pattern="@jndiPattern@" />
-
- <component name="sampleButton" class="javax.swing.JButton">
- <property name="label">A JButton!</property>
- </component>
</components>
Modified: trunk/examples/itext/src/org/jboss/seam/example/pdf/SwingComponent.java
===================================================================
--- trunk/examples/itext/src/org/jboss/seam/example/pdf/SwingComponent.java 2008-11-04 01:03:07 UTC (rev 9493)
+++ trunk/examples/itext/src/org/jboss/seam/example/pdf/SwingComponent.java 2008-11-04 01:18:15 UTC (rev 9494)
@@ -17,13 +17,19 @@
System.out.println("Error setting Java LAF: " + e);
}
- System.out.println("** " + UIManager.getLookAndFeel());
+ //System.out.println("** " + UIManager.getLookAndFeel());
}
- public Component getButton() {
+ public Component getLabel1() {
JLabel label = new JLabel("Hello, Seam", SwingConstants.CENTER);
return label;
}
+ public Component getLabel2() {
+ JLabel label = new JLabel("A label!", SwingConstants.CENTER);
+
+ return label;
+ }
+
}
Modified: trunk/examples/itext/view/swing.xhtml
===================================================================
--- trunk/examples/itext/view/swing.xhtml 2008-11-04 01:03:07 UTC (rev 9493)
+++ trunk/examples/itext/view/swing.xhtml 2008-11-04 01:18:15 UTC (rev 9494)
@@ -3,10 +3,9 @@
xmlns:p="http://jboss.com/products/seam/pdf">
- <p:paragraph>A JLabel, from Java: </p:paragraph>
- <p:swing width="310" height="120" component="#{swing.button}" />
+ <p:paragraph>Label 1:</p:paragraph>
+ <p:swing width="310" height="120" component="#{swing.label1}" />
- <p:paragraph>A JButton, defined in components.xml: </p:paragraph>
- <p:swing width="310" height="120" component="#{sampleButton}" />
-
+ <p:paragraph>Label 2:</p:paragraph>
+ <p:swing width="310" height="120" component="#{swing.label2}" />
</p:document>
More information about the seam-commits
mailing list