Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4085359

ScrollPane is not serializable ScrollPane is not serializable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1
    • client-libs
    • sparc
    • solaris_2.6

      Detailed Description:
        Try this.
      ---------
      import java.awt.*;
      import java.awt.event.*;
      import java.io.*;

      public class test {
        public static void main(String args[]) throws IOException {
          ObjectOutputStream oos = new ObjectOutputStream(
            new ByteArrayOutputStream());
          ScrollPane sp = new ScrollPane();
          sp.getHAdjustable().addAdjustmentListener(new AdjustmentListener() {
            public void adjustmentValueChanged(AdjustmentEvent ev) {}
          }); // this is key
          oos.writeObject(sp);
        }
      }

            xdengsunw Xianfa Deng (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: