src/share/classes/com/sun/java/swing/plaf/motif/MotifDesktopPaneUI.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -70,20 +70,22 @@
public Insets getInsets(JComponent c) {return new Insets(0,0,0,0);}
////////////////////////////////////////////////////////////////////////////////////
/// DragPane class
////////////////////////////////////////////////////////////////////////////////////
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
private class DragPane extends JComponent {
public void paint(Graphics g) {
g.setColor(Color.darkGray);
g.drawRect(0, 0, getWidth()-1, getHeight()-1);
}
};
////////////////////////////////////////////////////////////////////////////////////
/// MotifDesktopManager class
////////////////////////////////////////////////////////////////////////////////////
+ @SuppressWarnings("serial") // JDK-implementation class
private class MotifDesktopManager extends DefaultDesktopManager implements Serializable, UIResource {
JComponent dragPane;
boolean usingDragPane = false;
private transient JLayeredPane layeredPaneForDragPane;
int iconWidth, iconHeight;