From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28656 invoked by alias); 15 Oct 2008 11:32:55 -0000 Received: (qmail 28648 invoked by uid 22791); 15 Oct 2008 11:32:55 -0000 X-Spam-Check-By: sourceware.org Received: from cp-out1.libero.it (HELO cp-out1.libero.it) (212.52.84.101) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Oct 2008 11:32:13 +0000 Received: from libero.it (192.168.16.58) by cp-out1.libero.it (8.5.014) id 48DBAC25020EDBD0 for java@gcc.gnu.org; Wed, 15 Oct 2008 13:32:10 +0200 Date: Wed, 15 Oct 2008 11:32:00 -0000 Message-Id: Subject: Problem with AWT/Swing code MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "ffileppo" To: "java" X-XaM3-API-Version: 4.3 (R1) (B3pl25) X-SenderIP: 130.192.86.37 X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg00013.txt.bz2 Hi everyone, I'm doing some testing with AWT/Swing applications compiled with gcj 4.4 (w= hich is using classpath 0.97.2). I'm having some troubles with the following code; it does not show the JComponent inside the JFrame (I've tried both on x86 and arm). This code runs fine if compiled with OpenJDK, so I guess that this issue is= more related to gcj rather then classpath. Any thoughts or ideas? Thank you Francesco Code: import java.awt.BorderLayout; import javax.swing.DefaultListModel; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.ListSelectionModel; import javax.swing.SwingUtilities; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; public class MainPanel extends JPanel implements ListSelectionListener { static final int NUM_ROWS =3D 500; JList list; JLabel lblSelection; DefaultListModel listModel; int startRow =3D 0; long startTime =3D 0; Runnable r =3D new Runnable() { public void run() { long deltaTime =3D System.currentTimeMillis() - startTime; for (int i=3DstartRow; i