+2003-06-24 Michael Koch <konqueror@gmx.de>
+
+ * java/awt/Font.java,
+ java/awt/Window.java,
+ java/awt/color/ColorSpace.java,
+ java/awt/datatransfer/StringSelection.java,
+ java/awt/image/ColorModel.java:
+ New versions from classpath.
+
2003-06-24 Michael Koch <konqueror@gmx.de>
* Makefile.am
package java.awt;
-import java.awt.peer.FontPeer;
import java.awt.font.FontRenderContext;
import java.awt.font.LineMetrics;
+import java.awt.peer.FontPeer;
import java.io.Serializable;
import java.util.StringTokenizer;
/**
* This class represents a top-level window with no decorations.
*
- * @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Aaron M. Renn <arenn@urbanophile.com>
* @author Warren Levy <warrenl@cygnus.com>
*/
public class Window extends Container
Window()
{
setVisible(false);
- setLayout((LayoutManager) new BorderLayout());
+ setLayout(new BorderLayout());
}
Window(GraphicsConfiguration gc)
public boolean isCS_sRGB()
{
- return false;
+ return type == CS_sRGB;
}
/**
*/
// List of flavors we support
-public static final DataFlavor[] supported_flavors
- = { DataFlavor.plainTextFlavor };
+// XXX: DataFlavor.plainTextFlavor is deprecated.
+static final DataFlavor[] supported_flavors
+ = { DataFlavor.stringFlavor,
+ DataFlavor.plainTextFlavor };
/*************************************************************************/
return sm.getTransferType() == transferType;
}
+ public final int getTransferType ()
+ {
+ return transferType;
+ }
+
public void finalize()
{
}