diff options
author | Michael Koch <konqueror@gmx.de> | 2003-06-19 16:30:09 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-06-19 16:30:09 +0000 |
commit | 536a695f0454b7c12015e0ac94aaa7125e1df351 (patch) | |
tree | ed5f4608b18c023ffe55eddd194f6b2db913b1c6 /libjava/javax/swing/SwingUtilities.java | |
parent | 50af15ec616940c40dfbefe865c89853ee09622e (diff) | |
download | gcc-536a695f0454b7c12015e0ac94aaa7125e1df351.zip gcc-536a695f0454b7c12015e0ac94aaa7125e1df351.tar.gz gcc-536a695f0454b7c12015e0ac94aaa7125e1df351.tar.bz2 |
JComponent.java, [...]: New versions from classpath.
2003-06-19 Michael Koch <konqueror@gmx.de>
* javax/swing/JComponent.java,
javax/swing/JInternalFrame.java,
javax/swing/MenuSelectionManager.java,
javax/swing/SwingUtilities.java,
javax/swing/ToggleButtonModel.java:
New versions from classpath.
From-SVN: r68207
Diffstat (limited to 'libjava/javax/swing/SwingUtilities.java')
-rw-r--r-- | libjava/javax/swing/SwingUtilities.java | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/libjava/javax/swing/SwingUtilities.java b/libjava/javax/swing/SwingUtilities.java index 974ee4f..a123ad8 100644 --- a/libjava/javax/swing/SwingUtilities.java +++ b/libjava/javax/swing/SwingUtilities.java @@ -35,20 +35,34 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ -package javax.swing; - -import java.awt.*; +package javax.swing; -public class SwingUtilities +import java.awt.Component; +import java.awt.Container; +import java.awt.EventQueue; +import java.awt.Font; +import java.awt.FontMetrics; +import java.awt.Graphics; +import java.awt.Insets; +import java.awt.Point; +import java.awt.Rectangle; +import java.awt.Toolkit; +import java.awt.Window; +import java.awt.event.KeyEvent; +import java.awt.event.MouseEvent; +import java.lang.reflect.InvocationTargetException; +import javax.accessibility.Accessible; +import javax.accessibility.AccessibleStateSet; + +public class SwingUtilities implements SwingConstants +{ + public static FontMetrics getFontMetrics (Font font) { - - public static FontMetrics getFontMetrics ( Font font ) { return Toolkit.getDefaultToolkit().getFontMetrics(font); } - - static JRootPane getRootPane(Component a) + public static JRootPane getRootPane (Component a) { if (a instanceof JRootPane) return (JRootPane) a; @@ -63,11 +77,11 @@ public class SwingUtilities return null; } - static void updateComponentTreeUI(JFrame comp) + public static void updateComponentTreeUI(JFrame comp) { } - static public String layoutCompoundLabel(JComponent c, + public static String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon i, |