[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-classpath] [bug #13419] swing: JOptionPane.showInputDialog does not
From: |
Anthony Balkissoon |
Subject: |
[bug-classpath] [bug #13419] swing: JOptionPane.showInputDialog does not show multiple lines |
Date: |
Mon, 20 Jun 2005 13:49:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4 |
Follow-up Comment #1, bug #13419 (project classpath):
I emailed the following patch to classpath-patches on June 17, 2005.
Index: javax/swing/SwingUtilities.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/SwingUtilities.java,v
retrieving revision 1.30
diff -u -r1.30 SwingUtilities.java
--- javax/swing/SwingUtilities.java 3 Jun 2005 11:55:28 -0000 1.30
+++ javax/swing/SwingUtilities.java 17 Jun 2005 18:36:42 -0000
@@ -848,8 +848,14 @@
}
else
{
+ int fromIndex = 0;
textR.width = fm.stringWidth(text);
textR.height = fm.getHeight();
+ while (text.indexOf('\n', fromIndex) != -1)
+ {
+ textR.height += fm.getHeight();
+ fromIndex=text.indexOf('\n', fromIndex)+1;
+ }
}
// Work out the position of text and icon, assuming the top-left coord
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13419>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug-classpath] [bug #13419] swing: JOptionPane.showInputDialog does not show multiple lines,
Anthony Balkissoon <=