@@ -0,0 +1,2831 @@
+/*%0A * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.%0A *%0A * Redistribution and use in source and binary forms, with or without%0A * modification, are permitted provided that the following conditions%0A * are met:%0A *%0A *   - Redistributions of source code must retain the above copyright%0A *     notice, this list of conditions and the following disclaimer.%0A *%0A *   - Redistributions in binary form must reproduce the above copyright%0A *     notice, this list of conditions and the following disclaimer in the%0A *     documentation and/or other materials provided with the distribution.%0A *%0A *   - Neither the name of Oracle or the names of its%0A *     contributors may be used to endorse or promote products derived%0A *     from this software without specific prior written permission.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS %22AS%0A * IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,%0A * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR%0A * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR%0A * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,%0A * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,%0A * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR%0A * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF%0A * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING%0A * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS%0A * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0A %0Aimport javax.swing.SpringLayout;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JLabel;%0Aimport javax.swing.JTextField;%0Aimport java.awt.Container;%0A %0Apublic class SpringDemo1 %7B%0A    /**%0A     * Create the GUI and show it.  For thread safety,%0A     * this method should be invoked from the%0A     * event-dispatching thread.%0A     */%0A    private static void createAndShowGUI() %7B%0A        //Create and set up the window.%0A        JFrame frame = new JFrame(%22SpringDemo1%22);%0A        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A %0A        //Set up the content pane.%0A        Container contentPane = frame.getContentPane();%0A        SpringLayout layout = new SpringLayout();%0A        contentPane.setLayout(layout);%0A        contentPane.add(new JLabel(%22Label: %22));%0A        contentPane.add(new JTextField(%22Text field%22, 15));%0A %0A        //Display the window.%0A        frame.pack();%0A        frame.setVisible(true);%0A    %7D%0A %0A    public static void main(String%5B%5D args) %7B%0A        //Schedule a job for the event-dispatching thread:%0A        //creating and showing this application's GUI.%0A        javax.swing.SwingUtilities.invokeLater(new Runnable() %7B%0A            public void run() %7B%0A                createAndShowGUI();%0A            %7D%0A        %7D);%0A    %7D%0A%7D%0A

Create SpringDemo1.java