[Patch][gui] JRootPane and JTable
Michael Koch
konqueror@gmx.de
Fri Dec 31 11:18:00 GMT 2004
Hi list,
I commited the attached patch to add four missing @deprecated tags.
Michael
2004-12-31 Michael Koch <konqueror@gmx.de>
* javax/swing/JRootPane.java
(setMenuBar): Added @deprecated tag.
(getMenuBar): Likewise.
* javax/swing/JTable.java
(sizeColumnsToFit): Likewise.
-------------- next part --------------
Index: javax/swing/JRootPane.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JRootPane.java,v
retrieving revision 1.18
diff -u -r1.18 JRootPane.java
--- javax/swing/JRootPane.java 24 Dec 2004 11:50:42 -0000 1.18
+++ javax/swing/JRootPane.java 31 Dec 2004 10:19:00 -0000
@@ -350,6 +350,9 @@
getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER);
}
+ /**
+ * @deprecated Replaced by <code>setJMenuBar()</code>
+ */
public void setMenuBar(JMenuBar m)
{
setJMenuBar(m);
@@ -365,6 +368,9 @@
return menuBar;
}
+ /**
+ * @deprecated Replaced by <code>getJMenuBar()</code>
+ */
public JMenuBar getMenuBar()
{
return getJMenuBar();
Index: javax/swing/JTable.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JTable.java,v
retrieving revision 1.19
diff -u -r1.19 JTable.java
--- javax/swing/JTable.java 30 Dec 2004 19:07:20 -0000 1.19
+++ javax/swing/JTable.java 31 Dec 2004 10:19:00 -0000
@@ -1633,11 +1633,17 @@
}
}
+ /**
+ * @deprecated Replaced by <code>doLayout()</code>
+ */
public void sizeColumnsToFit(boolean lastColumnOnly)
{
doLayout();
}
+ /**
+ * Obsolete since JDK 1.4. Please use <code>doLayout()</code>.
+ */
public void sizeColumnsToFit(int resizingColumn)
{
doLayout();
More information about the Java-patches
mailing list