diff --git a/extras/src/main/java/edu/umd/cs/piccolox/PFrame.java b/extras/src/main/java/edu/umd/cs/piccolox/PFrame.java index a7337fd..690572d 100644 --- a/extras/src/main/java/edu/umd/cs/piccolox/PFrame.java +++ b/extras/src/main/java/edu/umd/cs/piccolox/PFrame.java @@ -66,7 +66,7 @@ private final GraphicsDevice graphicsDevice; /** Listener that listens for escape key. */ - private EventListener escapeFullScreenModeListener; + private transient EventListener escapeFullScreenModeListener; /** * Creates a PFrame with no title, not full screen, and with the default diff --git a/extras/src/main/java/edu/umd/cs/piccolox/nodes/P3DRect.java b/extras/src/main/java/edu/umd/cs/piccolox/nodes/P3DRect.java index a2d502c..00150c3 100644 --- a/extras/src/main/java/edu/umd/cs/piccolox/nodes/P3DRect.java +++ b/extras/src/main/java/edu/umd/cs/piccolox/nodes/P3DRect.java @@ -51,17 +51,14 @@ * @author Ben Bederson */ public class P3DRect extends PNode { - - /** - * - */ + private static final long serialVersionUID = 1L; private Color topLeftOuterColor; private Color topLeftInnerColor; private Color bottomRightInnerColor; private Color bottomRightOuterColor; private final GeneralPath path; - private final Stroke stroke; + private transient final Stroke stroke; private boolean raised; public P3DRect() { @@ -161,6 +158,7 @@ } } + //TODO: Move this into an example (if not already) public static void main(final String[] args) { new PFrame() { /** diff --git a/extras/src/main/java/edu/umd/cs/piccolox/nodes/PLens.java b/extras/src/main/java/edu/umd/cs/piccolox/nodes/PLens.java index bccb3b1..ee5df8f 100644 --- a/extras/src/main/java/edu/umd/cs/piccolox/nodes/PLens.java +++ b/extras/src/main/java/edu/umd/cs/piccolox/nodes/PLens.java @@ -63,9 +63,6 @@ */ public class PLens extends PNode { - /** - * - */ private static final long serialVersionUID = 1L; public static double LENS_DRAGBAR_HEIGHT = 20; public static Paint DEFAULT_DRAGBAR_PAINT = Color.DARK_GRAY; @@ -73,7 +70,7 @@ private final PPath dragBar; private final PCamera camera; - private final PDragEventHandler lensDragger; + private transient final PDragEventHandler lensDragger; public PLens() { // Drag bar gets resized to fit the available space, so any rectangle diff --git a/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java b/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java index bac488a..76e9789 100644 --- a/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java +++ b/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java @@ -247,7 +247,7 @@ private final List listeningTo = new ArrayList(); /* The parent listener for camera/canvas changes. */ - private final PropertyChangeListener parentListener = new PropertyChangeListener() { + private transient final PropertyChangeListener parentListener = new PropertyChangeListener() { /** {@inheritDoc} */ public void propertyChange(final PropertyChangeEvent evt) { final PNode parent = (PNode) evt.getNewValue(); diff --git a/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingMouseEvent.java b/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingMouseEvent.java index 0144fbe..9e8cc6f 100644 --- a/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingMouseEvent.java +++ b/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingMouseEvent.java @@ -80,7 +80,7 @@ */ private static final long serialVersionUID = 1L; private final int id; - private final PInputEvent event; + private transient final PInputEvent event; /** * Constructs a new PMouse event from a Java MouseEvent.