From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25637 invoked by alias); 9 Feb 2005 17:31:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25495 invoked by uid 48); 9 Feb 2005 17:31:29 -0000 Date: Wed, 09 Feb 2005 22:18:00 -0000 From: "hendrich at informatik dot uni-hamburg dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20050209173126.19860.hendrich@informatik.uni-hamburg.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug AWT/19860] New: Swing JOptionPane and multiline texts X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg00704.txt.bz2 List-Id: JOptionPane fails to render multiline text in the 'standard' dialogs. Testcase attached; tested with gcc-4.0-20050130 snapshot and current gui-branch-20040128 cvs. (the location of the JButtons is sub-optimal, too.) /* MultilineJOptionPane.java * * demonstrates GCJ doesn't display multiple lines of text in a JOptionPane * * (C) 2005 FNH */ import java.awt.*; import javax.swing.*; public class MultilineJOptionPane { public static void main( String args[] ) { JFrame frame = new JFrame( "just a frame" ); frame.setSize(50,50); frame.show(); String s = "The first line of text, five to follow...\n" + "A second line of text,\n" + "and the third,\n" + "fourth,\n" + "and fifth line of text. Click ok to exit.\n" ; JOptionPane.showMessageDialog( frame, s ); System.exit( 0 ); } } -- Summary: Swing JOptionPane and multiline texts Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: AWT AssignedTo: fitzsim at redhat dot com ReportedBy: hendrich at informatik dot uni-hamburg dot de CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19860