aboutsummaryrefslogtreecommitdiff
path: root/libjava/javax/swing/SwingUtilities.java
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@redhat.com>2004-01-22 09:54:19 +0000
committerGraydon Hoare <graydon@gcc.gnu.org>2004-01-22 09:54:19 +0000
commitca3bb0c283932ab6342cac597f2a9e04e2b0c1b2 (patch)
tree0f7e79b1c6afb9ecf4b3d15908999b740f7cd2ef /libjava/javax/swing/SwingUtilities.java
parent1fd05073984ebdf3e087613adce163587b33e1e5 (diff)
downloadgcc-ca3bb0c283932ab6342cac597f2a9e04e2b0c1b2.zip
gcc-ca3bb0c283932ab6342cac597f2a9e04e2b0c1b2.tar.gz
gcc-ca3bb0c283932ab6342cac597f2a9e04e2b0c1b2.tar.bz2
2004-01-22 Graydon Hoare <graydon@redhat.com>
* gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java: * gnu/java/awt/peer/gtk/GdkGlyphVector.java: Predicate static initialization on GtkToolkit.useGraphics2D(). * java/awt/Component.java (processPaintEvent): Consume event. * javax/swing/AbstractButton.java: Reimplement, document. * javax/swing/DefaultButtonModel.java: Reimplement, document. * javax/swing/JComponent.java (paint): Use double buffer. (listenerList): Enable member. * javax/swing/ToggleButtonModel.java: Remove incorrect constructor. * javax/swing/JToggleButton.java (JToggleButton): Modify model constructor. * javax/swing/SwingUtilities.java (layoutCompoundLabel): Adjust arithmetic. * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document. * javax/swing/plaf/basic/BasicGraphicsUtils.java (getPreferredButtonSize): Include margins in calculation. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals): Receive up events from subordinate layout component. From-SVN: r76344
Diffstat (limited to 'libjava/javax/swing/SwingUtilities.java')
-rw-r--r--libjava/javax/swing/SwingUtilities.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/libjava/javax/swing/SwingUtilities.java b/libjava/javax/swing/SwingUtilities.java
index a9113f0..1591132 100644
--- a/libjava/javax/swing/SwingUtilities.java
+++ b/libjava/javax/swing/SwingUtilities.java
@@ -97,8 +97,8 @@ public class SwingUtilities implements SwingConstants
// view rect 'vr' already ok,
// we need to compute ir (icon rect) and tr (text-rect)
- int next_x = 0;//vr.x;
- int next_y = 0;//vr.y;
+ int next_x = vr.x;
+ int next_y = vr.y;
ir.height = ir.width = ir.y = ir.x = 0;
@@ -115,10 +115,10 @@ public class SwingUtilities implements SwingConstants
}
tr.x = next_x;
- tr.y = vr.y + (vr.height/2);
+ tr.y = vr.y; // + (vr.height/2);
tr.width = fm.stringWidth(text);
- tr.height = fm.getHeight() + fm.getAscent()/2;
+ tr.height = fm.getHeight(); // + fm.getAscent()/2;
return text;
}