This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: javax.swing
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 24 Mar 2003 15:07:00 +0100
- Subject: FYI: Patch: javax.swing
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I commited the attache patch to trunk to fix some swing things.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+fxEEWSOgCCdjSDsRAki5AJ9mJkFWuF2IP2gu40jBTj+W4jSf9ACfcOdR
VaKK1Al9KWxYmVXAJIceZ7w=
=wFEH
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1813
diff -u -r1.1813 ChangeLog
--- ChangeLog 24 Mar 2003 14:01:40 -0000 1.1813
+++ ChangeLog 24 Mar 2003 14:04:25 -0000
@@ -1,5 +1,14 @@
2003-03-24 Michael Koch <konqueror at gmx dot de>
+ * javax/swing/text/ComponentView.java
+ (getComponent): Must be final.
+ * javax/swing/tree/DefaultTreeCellRenderer.java:
+ Reformatted.
+ * javax/swing/undo/StateEditable.java:
+ Reformatted.
+
+2003-03-24 Michael Koch <konqueror at gmx dot de>
+
* java/rmi/activation/ActivationInstantiator.java:
Reformatted.
* java/rmi/activation/Activator.java:
Index: javax/swing/text/ComponentView.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/text/ComponentView.java,v
retrieving revision 1.1
diff -u -r1.1 ComponentView.java
--- javax/swing/text/ComponentView.java 9 Aug 2002 04:26:12 -0000 1.1
+++ javax/swing/text/ComponentView.java 24 Mar 2003 14:04:25 -0000
@@ -46,7 +46,6 @@
super(elem);
}
-
protected Component createComponent()
{
return null;
@@ -57,7 +56,7 @@
return 0;
}
- public Component getComponent()
+ public final Component getComponent()
{
return null;
}
Index: javax/swing/tree/DefaultTreeCellRenderer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/tree/DefaultTreeCellRenderer.java,v
retrieving revision 1.1
diff -u -r1.1 DefaultTreeCellRenderer.java
--- javax/swing/tree/DefaultTreeCellRenderer.java 9 Aug 2002 04:26:12 -0000 1.1
+++ javax/swing/tree/DefaultTreeCellRenderer.java 24 Mar 2003 14:04:26 -0000
@@ -45,8 +45,10 @@
* DefaultTreeCellRenderer
* @author Andrew Selkirk
*/
-public class DefaultTreeCellRenderer extends JLabel implements TreeCellRenderer {
-
+public class DefaultTreeCellRenderer
+ extends JLabel
+ implements TreeCellRenderer
+{
//-------------------------------------------------------------
// Variables --------------------------------------------------
//-------------------------------------------------------------
Index: javax/swing/undo/StateEditable.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/undo/StateEditable.java,v
retrieving revision 1.1
diff -u -r1.1 StateEditable.java
--- javax/swing/undo/StateEditable.java 9 Aug 2002 04:26:13 -0000 1.1
+++ javax/swing/undo/StateEditable.java 24 Mar 2003 14:04:26 -0000
@@ -44,19 +44,22 @@
* StateEditable interface
* @author Andrew Selkirk
*/
-public interface StateEditable {
-
- /**
- * Restore State
- * @param state State
- */
- public void restoreState(Hashtable state);
-
- /**
- * Store State
- * @param state State
- */
- public void storeState(Hashtable state);
+public interface StateEditable
+{
+ /**
+ * Upon receiving this message the receiver should extract any relevant
+ * state out of state
+ *
+ * @param state State
+ */
+ public void restoreState(Hashtable state);
+ /**
+ * Upon receiving this message the receiver should place any relevant state
+ * into state
+ *
+ * @param state State
+ */
+ public void storeState(Hashtable state);
} // StateEditable