I have seen similar problems. Unfortunately I have been unable to resolve them. The way around it is to pass the JList instance to the constructor of the JScrollPane.
-----Original Message----- From: Ken Miller [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 1:37 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: JScrollPane problem I am trying to implement scroll bars to both a JList and a JTextArea using the method adding the JList to the JScrollPane and then adding the JScrollPane to the panel where I want the JList to appear. Without using the scrollpane, the JList and JTextArea are fine on the panel, but for some strange reason, when I add then via adding them to a JScrollPane, they disappear. Is something going on that I am missing :) ex... JPanel testPanel = new JPanel(null); JList testList = new JList(); ..set the bounds for absolute layout.. testList.setVisible(true); testPanel.add(testList); // this works testPanel.add(new JScrollPane(testList)); // this makes the list disappear Any help would be appreciated. Thanks in advance. Ken _______________________________________________ Swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/swing _____________________________________________________________________ This message has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit http://www.messagelabs.com/stats.asp ********************************************************************** This email is intended only for the addressee. This email and any files transmitted with it may contain confidential or privileged information. If you are not the named addressee or the person responsible for delivering the message to the named addressee, please contact [EMAIL PROTECTED] This email has been scanned by MIMEsweeper. ********************************************************************** _____________________________________________________________________ This message has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit http://www.messagelabs.com/stats.asp _______________________________________________ Swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/swing