Author: allain.lalonde
Date: Thu Jul 16 07:48:17 2009
New Revision: 478

Added:
     
piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/pswingexamples/
     
piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/pswingexamples/PSwingExample1.java
       - copied, changed from r461,  
/piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/TestPSwing.java
     
piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/pswingexamples/PSwingExample2.java
       - copied, changed from r461,  
/piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/TestPSwingFull.java
Removed:
     
piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/TestPSwing.java
     
piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/TestPSwingFull.java

Log:
Fixes Issue 97 and possibly Issue 53 as a result.

Moved incorrectly labeled examples TestPSwing and TestPSwingFull to the  
examples module. Renaming them to PSwingExample1 and PSwingExample2 for  
lack of a better imagination.

Copied:  
piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/pswingexamples/PSwingExample1.java
  
(from r461,  
/piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/TestPSwing.java)
==============================================================================
---  
/piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/TestPSwing.java
    
(original)
+++  
piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/pswingexamples/PSwingExample1.java
        
Thu Jul 16 07:48:17 2009
@@ -26,7 +26,7 @@
   * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE  
USE OF THIS SOFTWARE, EVEN IF
   * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   */
-package edu.umd.cs.piccolox.pswing;
+package edu.umd.cs.piccolo.pswingexamples;

  import java.awt.Color;
  import java.awt.Dimension;
@@ -52,12 +52,15 @@
  import edu.umd.cs.piccolo.PNode;
  import edu.umd.cs.piccolo.event.PZoomEventHandler;
  import edu.umd.cs.piccolo.nodes.PText;
+import edu.umd.cs.piccolox.pswing.PComboBox;
+import edu.umd.cs.piccolox.pswing.PSwing;
+import edu.umd.cs.piccolox.pswing.PSwingCanvas;

  /**
   * User: Sam Reid Date: Jul 11, 2005 Time: 12:15:55 PM
   */

-public class TestPSwing {
+public class PSwingExample1 {
      public static void main(String[] args) {
          PSwingCanvas pCanvas = new PSwingCanvas();
          final PText pText = new PText("PText");

Copied:  
piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/pswingexamples/PSwingExample2.java
  
(from r461,  
/piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/TestPSwingFull.java)
==============================================================================
---  
/piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/TestPSwingFull.java
        
(original)
+++  
piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/pswingexamples/PSwingExample2.java
        
Thu Jul 16 07:48:17 2009
@@ -26,7 +26,7 @@
   * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE  
USE OF THIS SOFTWARE, EVEN IF
   * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   */
-package edu.umd.cs.piccolox.pswing;
+package edu.umd.cs.piccolo.pswingexamples;

  import java.awt.BorderLayout;
  import java.awt.Color;
@@ -69,13 +69,15 @@
  import javax.swing.table.TableColumn;

  import edu.umd.cs.piccolo.PNode;
+import edu.umd.cs.piccolox.pswing.PSwing;
+import edu.umd.cs.piccolox.pswing.PSwingCanvas;

  /**
   * User: Sam Reid Date: Jul 11, 2005 Time: 12:15:55 PM
   */

-public class TestPSwingFull extends JFrame {
-    public TestPSwingFull() {
+public class PSwingExample2 extends JFrame {
+    public PSwingExample2() {
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          ClassLoader loader;
          PSwingCanvas canvas;
@@ -454,7 +456,7 @@
      }

      public static void main(String[] args) {
-        new TestPSwingFull().setVisible(true);
+        new PSwingExample2().setVisible(true);
      }

      public static class ZVisualLeaf extends PNode {

--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to