import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.net.URL; import java.util.ArrayList; import javax.swing.JScrollPane; public class ventanaurl extends JFrame { private Actualizar v= null; private ArrayList urls = new ArrayList(); public ventanaurl(Actualizar a) { v=a; urls = v.getURLs(); /* //1. Create the frame. JFrame frame = new JFrame("FrameDemo"); //2. Optional: What happens when the frame closes? frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); Component yellowLabel = null; //3. Create components and put them in the frame. //...create emptyLabel... frame.getContentPane().add(yellowLabel, BorderLayout.CENTER); //4. Size the frame. frame.pack(); //5. Show it. frame.setVisible(true);*/ for(URL u:urls) System.out.println(u); } }