All pastes #391184 Raw Edit

Someone

public java v1 · immutable
·published 2007-03-11 23:02 UTC
rendered paste body
                    try {                       XMLEncoder e = new XMLEncoder(                          new BufferedOutputStream(                              new FileOutputStream("Test.xml")));       e.writeObject(new JButton("Hello, world"));       e.close();            }            catch(IOException e){System.out.println("Failed");}