Deprecated API

Contents

Deprecated Interfaces

AttributeList
This interface has been replaced by the SAX2 Attributes interface, which includes Namespace support.
Certificate
use java.security.cert instead
DocumentHandler
This interface has been replaced by the SAX2 ContentHandler interface, which includes Namespace support.
LoaderHandler
Parser
This interface has been replaced by the SAX2 XMLReader interface, which includes Namespace support.
RegistryHandler
RemoteCall
Skeleton

Deprecated Classes

AccessibleResourceBundle
this class is no longer used
AttributeListImpl
This class implements a deprecated interface, AttributeList; that interface has been replaced by Attributes, which is implemented in the AttributesImpl helper class.
BasicMenuUI.ChangeHandler
DynamicImplementation
since 1.4.
HandlerBase
This class works with the deprecated DocumentHandler interface.
Identity
This class is no longer used.
IdentityScope
This class is no longer used.
LineNumberInputStream
This class is deprecated in favor if LineNumberReader because it operates on ASCII bytes instead of an encoded character stream.
LogStream
MetalComboBoxUI.MetalComboPopup
1.4
Operation
ParserFactory
This class works with the deprecated Parser interface.
Policy
The classes java.security.Policy and java.security.ProtectionDomain provide the functionality of this class.
Principal
by CORBA 2.2.
PrincipalHolder
by CORBA 2.2.
Signer
This class is no longer used.
StringBufferInputStream
TableView.TableCell
Table cells are now rendered by an arbitrary View implementation.

Deprecated Exceptions

RMISecurityException
use SecurityException instead
ServerRuntimeException
no replacement
SkeletonMismatchException
no replacement.
SkeletonNotFoundException
no replacement.

Deprecated Fields

javax.swing.plaf.basic.BasicDesktopPaneUI.closeKey
javax.swing.plaf.basic.BasicDesktopPaneUI.maximizeKey
javax.swing.plaf.basic.BasicDesktopPaneUI.minimizeKey
javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey
javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey2
javax.swing.plaf.basic.BasicInternalFrameUI.openMenuKey
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardDownRightListener
The handler for down and right key presses.
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardEndListener
The handler for end key presses.
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardHomeListener
The handler for home key presses.
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardResizeToggleListener
The handler for toggling resizes.
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardUpLeftListener
The handler for up and left key presses.
javax.swing.plaf.basic.BasicSplitPaneUI.dividerResizeToggleKey
The divider resize toggle key.
javax.swing.plaf.basic.BasicSplitPaneUI.downKey
The down key.
javax.swing.plaf.basic.BasicSplitPaneUI.endKey
The end key.
javax.swing.plaf.basic.BasicSplitPaneUI.homeKey
The home key.
javax.swing.plaf.basic.BasicSplitPaneUI.leftKey
The left key.
javax.swing.plaf.basic.BasicSplitPaneUI.rightKey
The right key.
javax.swing.plaf.basic.BasicSplitPaneUI.upKey
The up key.
javax.swing.plaf.basic.BasicTabbedPaneUI.downKey
1.3
javax.swing.plaf.basic.BasicTabbedPaneUI.leftKey
1.3
javax.swing.plaf.basic.BasicTabbedPaneUI.rightKey
1.3
javax.swing.plaf.basic.BasicTabbedPaneUI.upKey
1.3
javax.swing.plaf.basic.BasicToolBarUI.leftKey
since JDK1.3.
javax.swing.plaf.basic.BasicToolBarUI.rightKey
since JDK1.3.
javax.swing.plaf.basic.BasicToolBarUI.upKey
since JDK1.3.
javax.swing.plaf.basic.BasicToolBarUI.downKey
since JDK1.3.
java.awt.datatransfer.DataFlavor.plainTextFlavor
The charset unicode is platform specific and InputStream deals with bytes not chars.
java.awt.Frame.DEFAULT_CURSOR
Replaced by Cursor.DEFAULT_CURSOR instead.
java.awt.Frame.CROSSHAIR_CURSOR
Use Cursor.CROSSHAIR_CURSOR instead.
java.awt.Frame.TEXT_CURSOR
Use Cursor.TEXT_CURSOR instead.
java.awt.Frame.WAIT_CURSOR
Use Cursor.WAIT_CURSOR.
java.awt.Frame.SW_RESIZE_CURSOR
Use Cursor.SW_RESIZE_CURSOR instead.
java.awt.Frame.SE_RESIZE_CURSOR
Use Cursor.SE_RESIZE_CURSOR instead.
java.awt.Frame.NW_RESIZE_CURSOR
Use Cursor.NW_RESIZE_CURSOR instead.
java.awt.Frame.NE_RESIZE_CURSOR
Use Cursor.NE_RESIZE_CURSOR instead.
java.awt.Frame.N_RESIZE_CURSOR
Use Cursor.N_RESIZE_CURSOR instead.
java.awt.Frame.S_RESIZE_CURSOR
Use Cursor.S_RESIZE_CURSOR instead.
java.awt.Frame.E_RESIZE_CURSOR
Use Cursor.E_RESIZE_CURSOR instead.
java.awt.Frame.W_RESIZE_CURSOR
Use Cursor.W_RESIZE_CURSOR instead.
java.awt.Frame.HAND_CURSOR
Use Cursor.HAND_CURSOR instead.
java.awt.Frame.MOVE_CURSOR
Use Cursor.MOVE_CURSOR instead.
java.net.HttpURLConnection.HTTP_SERVER_ERROR
javax.swing.JRootPane.defaultPressAction
since JDK1.3
javax.swing.JRootPane.defaultReleaseAction
since JDK1.3
javax.swing.JTable.cellSelectionEnabled
javax.swing.JViewport.backingStore
since JDK 1.3
java.awt.event.KeyEvent.VK_SEPARATER
java.lang.SecurityManager.inCheck
javax.swing.table.TableColumn.resizedPostingDisableCount
1.3

Deprecated Methods

javax.swing.AbstractButton.setLabel(String)
use setText(text)
javax.swing.AbstractButton.getLabel()
use getText()
javax.accessibility.AccessibleResourceBundle.getContents()
do not use this class
org.omg.CORBA.Any.extract_Principal()
by CORBA 2.2.
org.omg.CORBA.Any.insert_Principal(Principal)
by CORBA 2.2.
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardUpLeftListener()
1.3
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardDownRightListener()
1.3
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardHomeListener()
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardEndListener()
1.3
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardResizeToggleListener()
1.3
javax.swing.plaf.basic.BasicSplitPaneUI.getDividerBorderSize()
1.3
java.awt.BorderLayout.addLayoutComponent(String,Component)
This method is deprecated in favor of addLayoutComponent(Component, Object).
java.io.ByteArrayOutputStream.toString(int)
java.sql.CallableStatement.getBigDecimal(int,int)
Use getBigDecimal(int parameterIndex) or getBigDecimal(String parameterName) instead.
java.awt.CardLayout.addLayoutComponent(String,Component)
This method is deprecated in favor of addLayoutComponent(Component, Object).
java.lang.Character.isJavaLetter(char)
java.lang.Character.isJavaLetterOrDigit(char)
java.lang.Character.isSpace(char)
Replaced by isWhitespace(char)
java.awt.CheckboxGroup.getCurrent()
This method is deprecated in favor of getSelectedCheckbox().
java.awt.CheckboxGroup.setCurrent(Checkbox)
This method is deprecated in favor of setSelectedCheckbox().
java.awt.Choice.countItems()
This method is deprecated in favor of getItemCount.
java.lang.ClassLoader.defineClass(byte[],int,int)
java.awt.Component.getPeer()
user programs should not directly manipulate peers; use isDisplayable() instead
java.awt.Component.enable()
java.awt.Component.enable(boolean)
java.awt.Component.disable()
java.awt.Component.show()
java.awt.Component.show(boolean)
java.awt.Component.hide()
java.awt.Component.location()
use getLocation() instead
java.awt.Component.move(int,int)
java.awt.Component.size()
use getSize() instead
java.awt.Component.resize(int,int)
use setSize(int,int) instead
java.awt.Component.resize(Dimension)
use setSize(Dimension) instead
java.awt.Component.bounds()
use getBounds() instead
java.awt.Component.reshape(int,int,int,int)
java.awt.Component.preferredSize()
use getPreferredSize() instead
java.awt.Component.minimumSize()
use getMinimumSize() instead
java.awt.Component.layout()
use doLayout() instead
java.awt.Component.inside(int,int)
use contains(int,int) instead
java.awt.Component.locate(int,int)
java.awt.Component.deliverEvent(Event)
use (AWTEvent) instead
java.awt.Component.postEvent(Event)
java.awt.Component.handleEvent(Event)
java.awt.Component.mouseDown(Event,int,int)
java.awt.Component.mouseDrag(Event,int,int)
java.awt.Component.mouseUp(Event,int,int)
java.awt.Component.mouseMove(Event,int,int)
java.awt.Component.mouseEnter(Event,int,int)
java.awt.Component.mouseExit(Event,int,int)
java.awt.Component.keyDown(Event,int)
java.awt.Component.keyUp(Event,int)
java.awt.Component.action(Event,Object)
in classes which support actions, use processActionEvent(ActionEvent) instead
java.awt.Component.gotFocus(Event,Object)
java.awt.Component.lostFocus(Event,Object)
java.awt.Component.isFocusTraversable()
use isFocusable() instead
java.awt.Component.nextFocus()
use () instead
java.awt.ComponentOrientation.getOrientation(ResourceBundle)
java.awt.Container.countComponents()
java.awt.Container.insets()
use getInsets() instead
java.awt.Container.layout()
use doLayout() instead
java.awt.Container.preferredSize()
use getPreferredSize() instead
java.awt.Container.minimumSize()
use getMinimumSize() instead
java.awt.Container.deliverEvent(Event)
java.awt.Container.locate(int,int)
java.awt.datatransfer.DataFlavor.equals(String)
Not compatible with hashCode().
java.awt.datatransfer.DataFlavor.normalizeMimeTypeParameter(String,String)
java.awt.datatransfer.DataFlavor.normalizeMimeType(String)
java.net.DatagramSocketImpl.setTTL(byte)
java.net.DatagramSocketImpl.getTTL()
// FIXME: when ?
java.io.DataInputStream.readLine()
java.sql.Date.getHours()
java.sql.Date.getMinutes()
java.sql.Date.getSeconds()
java.sql.Date.setHours(int)
java.sql.Date.setMinutes(int)
java.sql.Date.setSeconds(int)
java.util.Date.UTC(int,int,int,int,int,int)
Use Calendar with a UTC TimeZone instead.
java.util.Date.getTimezoneOffset()
use Calendar.get(Calendar.ZONE_OFFSET)+Calendar.get(Calendar.DST_OFFSET) instead.
java.util.Date.toLocaleString()
Use DateFormat.format(Date)
java.util.Date.toGMTString()
Use DateFormat.format(Date) with a GMT TimeZone.
java.util.Date.parse(String)
Use DateFormat.parse(String)
java.util.Date.getYear()
Use Calendar instead of Date, and use get(Calendar.YEAR) instead.
java.util.Date.setYear(int)
Use Calendar instead of Date, and use set(Calendar.YEAR, year) instead.
java.util.Date.getMonth()
Use Calendar instead of Date, and use get(Calendar.MONTH) instead.
java.util.Date.setMonth(int)
Use Calendar instead of Date, and use set(Calendar.MONTH, month) instead.
java.util.Date.getDate()
Use Calendar instead of Date, and use get(Calendar.DATE) instead.
java.util.Date.setDate(int)
Use Calendar instead of Date, and use set(Calendar.DATE, date) instead.
java.util.Date.getDay()
Use Calendar instead of Date, and use get(Calendar.DAY_OF_WEEK) instead.
java.util.Date.getHours()
Use Calendar instead of Date, and use get(Calendar.HOUR_OF_DAY) instead.
java.util.Date.setHours(int)
Use Calendar instead of Date, and use set(Calendar.HOUR_OF_DAY, hours) instead.
java.util.Date.getMinutes()
Use Calendar instead of Date, and use get(Calendar.MINUTE) instead.
java.util.Date.setMinutes(int)
Use Calendar instead of Date, and use set(Calendar.MINUTE, minutes) instead.
java.util.Date.getSeconds()
Use Calendar instead of Date, and use get(Calendar.SECOND) instead.
java.util.Date.setSeconds(int)
Use Calendar instead of Date, and use set(Calendar.SECOND, seconds) instead.
java.util.zip.Deflater.end()
Just clear all references to deflater instead.
java.sql.DriverManager.setLogStream(PrintStream)
Use setLogWriter instead.
java.sql.DriverManager.getLogStream()
Use getLogWriter() instead.
org.omg.CORBA.DynamicImplementation.invoke(ServerRequest)
since 1.4.
org.omg.CORBA.DynamicImplementation._ids()
since 1.4.
javax.swing.FocusManager.disableSwingFocusManager()
1.4
javax.swing.FocusManager.isFocusManagerEnabled()
1.4
java.awt.Font.getPeer()
java.awt.FontMetrics.getMaxDecent()
This method is deprecated in favor of getMaxDescent().
java.awt.Frame.getCursorType()
Use Component.getCursor() instead.
java.awt.Frame.setCursor(int)
Use Component.setCursor(Cursor) instead.
java.awt.Graphics.getClipRect()
This method is deprecated in favor of getClipBounds().
javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane,HTMLDocument,int,Element,String,HTML.Tag,HTML.Tag)
as of v1.3, use insertAtBoundary
java.util.zip.Inflater.end()
Just clear all references to inflater instead.
org.omg.CORBA.portable.InputStream.read_Principal()
by CORBA 2.2
javax.swing.JComponent.getNextFocusableComponent()
javax.swing.JComponent.isManagingFocus()
javax.swing.JComponent.getConditionForKeyStroke(KeyStroke)
As of 1.3 KeyStrokes can be registered with multiple simultaneous conditions.
javax.swing.JComponent.getActionForKeyStroke(KeyStroke)
javax.swing.JComponent.requestDefaultFocus()
Use requestFocus() on the default component provided from the FocusTraversalPolicy instead.
javax.swing.JComponent.setNextFocusableComponent(Component)
Use FocusTraversalPolicy instead
javax.swing.JComponent.disable()
javax.swing.JComponent.enable()
javax.swing.JInternalFrame.getMenuBar()
1.0.3
javax.swing.JInternalFrame.setMenuBar(JMenuBar)
1.0.3
javax.swing.JMenuBar.getComponentAtIndex(int)
Replaced by getComponent(int)
javax.swing.JPasswordField.getText()
javax.swing.JPasswordField.getText(int,int)
javax.swing.JPopupMenu.getComponentAtIndex(int)
Replaced by getComponent(int)
javax.swing.JRootPane.setMenuBar(JMenuBar)
Replaced by setJMenuBar()
javax.swing.JRootPane.getMenuBar()
Replaced by getJMenuBar()
javax.swing.JTable.createScrollPaneForTable(JTable)
1.0.2, replaced by new JScrollPane(JTable)
javax.swing.JTable.sizeColumnsToFit(boolean)
Replaced by doLayout()
javax.swing.JViewport.isBackingStoreEnabled()
1.4
javax.swing.JViewport.setBackingStoreEnabled(boolean)
1.4
java.awt.event.KeyEvent.setModifiers(int)
javax.swing.KeyStroke.getKeyStroke(char,boolean)
Use getKeyStroke(char) This method, unlike all the other factory methods on this object, returns a non-cached, non-shared object.
javax.swing.text.LabelView.getFontMetrics()
this is not used anymore
java.awt.List.countItems()
This method is deprecated in favor of getItemCount()
java.awt.List.allowsMultipleSelections()
This method is deprecated in favor of isMultipleMode().
java.awt.List.setMultipleSelections(boolean)
java.awt.List.minimumSize()
This method is deprecated in favor of getMinimumSize.
java.awt.List.minimumSize(int)
This method is deprecated in favor of getMinimumSize(int)>
java.awt.List.preferredSize()
This method is deprecated in favor of getPreferredSize.
java.awt.List.preferredSize(int)
This method is deprecated in favor of getPreferredSize(int)>
java.awt.List.addItem(String)
Use add() instead.
java.awt.List.addItem(String,int)
Use add() instead.
java.awt.List.delItem(int)
java.awt.List.delItems(int,int)
This method is deprecated for some unknown reason.
java.awt.List.clear()
This method is deprecated in favor of removeAll().
java.awt.List.isSelected(int)
This method is deprecated in favor of isIndexSelected(int).
java.rmi.server.LoaderHandler.loadClass(String)
java.rmi.server.LoaderHandler.loadClass(URL,String)
java.rmi.server.LoaderHandler.getSecurityContext(ClassLoader)
java.rmi.server.LogStream.log(String)
java.rmi.server.LogStream.getDefaultStream()
java.rmi.server.LogStream.setDefaultStream(PrintStream)
java.rmi.server.LogStream.getOutputStream()
java.rmi.server.LogStream.setOutputStream(OutputStream)
java.rmi.server.LogStream.write(int)
java.rmi.server.LogStream.write(byte[],int,int)
java.rmi.server.LogStream.toString()
java.rmi.server.LogStream.parseLevel(String)
java.awt.Menu.countItems()
As of JDK 1.1, replaced by getItemCount().
java.awt.MenuBar.countMenus()
This method is deprecated in favor of getMenuCount().
java.awt.MenuComponent.getPeer()
java.awt.MenuComponent.postEvent(Event)
Deprecated in favor of dispatchEvent().
java.awt.MenuContainer.postEvent(Event)
java.awt.MenuItem.enable(boolean)
This method is deprecated in favor of setEnabled().
java.awt.MenuItem.enable()
This method is deprecated in favor of setEnabled().
java.awt.MenuItem.disable()
This method is deprecated in favor of setEnabled().
javax.swing.plaf.metal.MetalComboBoxUI.editablePropertyChanged(PropertyChangeEvent)
1.4
javax.swing.plaf.metal.MetalComboBoxUI.removeListeners()
1.4
javax.swing.plaf.metal.MetalToggleButtonUI.paintText(Graphics,JComponent,Rectangle,String)
java.net.MulticastSocket.getTTL()
1.2 Replaced by getTimeToLive()
java.net.MulticastSocket.setTTL(byte)
1.2 Replaced by setTimeToLive
java.net.MulticastSocket.send(DatagramPacket,byte)
java.io.ObjectInputStream.readLine()
java.io.ObjectOutputStream.PutField.write(ObjectOutput)
java.rmi.server.Operation.getOperation()
java.rmi.server.Operation.toString()
org.omg.CORBA.ORB.create_recursive_sequence_tc(int,int)
It is easier and clearler to use a combination of create_recursive_tc and create_sequence_tc instead.
org.omg.CORBA.ORB.get_current()
org.omg.CORBA.portable.OutputStream.write_Principal(Principal)
by CORBA 2.2
java.awt.Polygon.getBoundingBox()
use getBounds() instead
java.awt.Polygon.inside(int,int)
use contains(int,int) instead
java.sql.PreparedStatement.setUnicodeStream(int,InputStream,int)
org.omg.CORBA.Principal.name()
by CORBA 2.2
org.omg.CORBA.Principal.name(byte[])
by CORBA 2.2
java.util.Properties.save(OutputStream,String)
java.awt.Rectangle.reshape(int,int,int,int)
java.awt.Rectangle.move(int,int)
java.awt.Rectangle.resize(int,int)
use setSize(int,int) instead
java.awt.Rectangle.inside(int,int)
use contains(int,int) instead
java.rmi.registry.RegistryHandler.registryStub(String,int)
java.rmi.registry.RegistryHandler.registryImpl(int)
java.rmi.server.RemoteCall.getOutputStream()
java.rmi.server.RemoteCall.releaseOutputStream()
java.rmi.server.RemoteCall.getInputStream()
java.rmi.server.RemoteCall.releaseInputStream()
java.rmi.server.RemoteCall.getResultStream(boolean)
java.rmi.server.RemoteCall.executeCall()
java.rmi.server.RemoteCall.done()
java.rmi.server.RemoteRef.invoke(RemoteCall)
java.rmi.server.RemoteRef.newCall(RemoteObject,Operation[],int,long)
java.rmi.server.RemoteRef.done(RemoteCall)
java.rmi.server.RemoteStub.setRef(RemoteStub,RemoteRef)
java.awt.image.renderable.RenderContext.preConcetenateTransform(AffineTransform)
java.awt.image.renderable.RenderContext.concetenateTransform(AffineTransform)
java.sql.ResultSet.getBigDecimal(int,int)
java.sql.ResultSet.getUnicodeStream(int)
Use getCharacterStream instead.
java.sql.ResultSet.getBigDecimal(String,int)
java.sql.ResultSet.getUnicodeStream(String)
Use getCharacterStream instead.
java.rmi.server.RMIClassLoader.loadClass(String)
java.rmi.server.RMIClassLoader.getSecurityContext(ClassLoader)
java.lang.Runtime.runFinalizersOnExit(boolean)
never rely on finalizers to do a clean, thread-safe, mop-up from your code
java.lang.Runtime.getLocalizedInputStream(InputStream)
InputStreamReader is the preferred way to read local encodings
java.lang.Runtime.getLocalizedOutputStream(OutputStream)
OutputStreamWriter is the preferred way to write local encodings
java.awt.Scrollbar.getVisible()
This method is deprecated in favor of getVisibleAmount().
java.awt.Scrollbar.getLineIncrement()
This method is deprecated in favor of getUnitIncrement().
java.awt.Scrollbar.setLineIncrement(int)
This method is deprecated in favor of setUnitIncrement().
java.awt.Scrollbar.getPageIncrement()
This method is deprecated in favor of getBlockIncrement().
java.awt.Scrollbar.setPageIncrement(int)
This method is deprecated in favor of setBlockIncrement().
java.awt.ScrollPane.layout()
This method is deprecated in favor of doLayout().
javax.swing.ScrollPaneLayout.getViewportBorderBounds(JScrollPane)
As of Swing 1.1 replaced by JScrollPane.getViewportBorderBounds().
java.security.Security.getAlgorithmProperty(String,String)
This method used to return the value of a proprietary property in the master file of the "SUN" Cryptographic Service Provider in order to determine how to parse algorithm-specific parameters.
java.lang.SecurityManager.getInCheck()
java.lang.SecurityManager.currentClassLoader()
java.lang.SecurityManager.currentLoadedClass()
java.lang.SecurityManager.classDepth(String)
java.lang.SecurityManager.classLoaderDepth()
java.lang.SecurityManager.inClass(String)
java.lang.SecurityManager.inClassLoader()
java.lang.SecurityManager.checkMulticast(InetAddress,byte)
org.omg.CORBA.ServerRequest.result(Any)
since 1.2
org.omg.CORBA.ServerRequest.except(Any)
since 1.2.
org.omg.CORBA.ServerRequest.params(NVList)
since 1.2
org.omg.CORBA.ServerRequest.op_name()
since 1.2
java.security.Signature.setParameter(String,Object)
Use setParameter(AlgorithmParameterSpec).
java.security.Signature.getParameter(String)
java.security.SignatureSpi.engineSetParameter(String,Object)
Replaced by engineSetParameter(AlgorithmParameterSpec).
java.security.SignatureSpi.engineGetParameter(String)
java.rmi.server.Skeleton.dispatch(Remote,RemoteCall,int,long)
java.rmi.server.Skeleton.getOperations()
java.lang.String.getBytes(int,int,dst[],int)
use getBytes(), which uses a char to byte encoder
javax.swing.SwingUtilities.findFocusOwner(Component)
1.4 Replaced by KeyboardFocusManager.getFocusOwner().
java.lang.System.runFinalizersOnExit(boolean)
never rely on finalizers to do a clean, thread-safe, mop-up from your code
javax.swing.table.TableColumn.disableResizedPosting()
1.3
javax.swing.table.TableColumn.enableResizedPosting()
1.3
javax.swing.text.TableView.createTableCell(Element)
Table cells are now rendered by an arbitrary View implementation.
javax.swing.text.TableView.TableCell.getColumnCount()
Table cells are now rendered by an arbitrary View implementation.
javax.swing.text.TableView.TableCell.getRowCount()
Table cells are now rendered by an arbitrary View implementation.
javax.swing.text.TableView.TableCell.setGridLocation(int,int)
Table cells are now rendered by an arbitrary View implementation.
javax.swing.text.TableView.TableCell.getGridRow()
Table cells are now rendered by an arbitrary View implementation.
javax.swing.text.TableView.TableCell.getGridColumn()
Table cells are now rendered by an arbitrary View implementation.
java.awt.TextArea.minimumSize()
This method is deprecated in favor of getMinimumSize ().
java.awt.TextArea.minimumSize(int,int)
This method is deprecated in favor of getMinimumSize (int, int).
java.awt.TextArea.preferredSize()
This method is deprecated in favor of getPreferredSize ().
java.awt.TextArea.preferredSize(int,int)
This method is deprecated in favor of getPreferredSize (int, int).
java.awt.TextArea.appendText(String)
This method is deprecated in favor of append ().
java.awt.TextArea.insertText(String,int)
This method is deprecated in favor of insert ().
java.awt.TextArea.replaceText(String,int,int)
This method is deprecated in favor of replaceRange ().
java.awt.TextField.setEchoCharacter(char)
This method is deprecated in favor of setEchoChar()
java.awt.TextField.minimumSize()
This method is deprecated in favor of getMinimumSize().
java.awt.TextField.minimumSize(int)
This method is deprecated in favor of getMinimumSize(int).
java.awt.TextField.preferredSize()
This method is deprecated in favor of getPreferredSize().
java.awt.TextField.preferredSize(int)
This method is deprecated in favor of getPreferredSize(int).
java.lang.Thread.countStackFrames()
pointless, since suspend is deprecated
java.lang.Thread.resume()
pointless, since suspend is deprecated
java.lang.Thread.stop()
unsafe operation, try not to use
java.lang.Thread.stop(Throwable)
unsafe operation, try not to use
java.lang.Thread.suspend()
unsafe operation, try not to use
java.lang.ThreadGroup.stop()
unsafe operation, try not to use
java.lang.ThreadGroup.suspend()
unsafe operation, try not to use
java.lang.ThreadGroup.resume()
pointless, since suspend is deprecated
java.lang.ThreadGroup.allowThreadSuspension(boolean)
pointless, since suspend is deprecated
java.sql.Time.getDate()
java.sql.Time.getDay()
java.sql.Time.getMonth()
java.sql.Time.getYear()
java.sql.Time.setDate(int)
java.sql.Time.setMonth(int)
java.sql.Time.setYear(int)
java.awt.Toolkit.getFontPeer(String,int)
java.awt.Toolkit.getFontList()
java.awt.Toolkit.getFontMetrics(Font)
java.net.URLConnection.setDefaultRequestProperty(String,String)
1.3 The method setRequestProperty should be used instead.
java.net.URLConnection.getDefaultRequestProperty(String)
1.3 The method getRequestProperty should be used instead.
java.net.URLDecoder.decode(String)
java.net.URLEncoder.encode(String)
java.net.URLStreamHandler.setURL(URL,String,String,int,String,String)
1.2 Please use #setURL(URL,String,String,int,String,String,String,String);
javax.swing.text.View.modelToView(int,Shape)
javax.swing.text.View.viewToModel(float,float,Shape)
java.rmi.dgc.VMID.isUnique()
java.awt.Window.hide()
java.awt.Window.postEvent(Event)
java.awt.Window.applyResourceBundle(ResourceBundle)
java.awt.Window.applyResourceBundle(String)

Deprecated Constructors

javax.accessibility.AccessibleResourceBundle.AccessibleResourceBundle()
do not use this class
java.sql.Date.Date(int,int,int)
java.util.Date.Date(int,int,int)
use new GregorianCalendar(year+1900, month, day) instead.
java.util.Date.Date(int,int,int,int,int)
use new GregorianCalendar(year+1900, month, day, hour, min) instead.
java.util.Date.Date(int,int,int,int,int,int)
use new GregorianCalendar(year+1900, month, day, hour, min, sec) instead.
java.util.Date.Date(String)
use java.text.DateFormat.parse(s) instead.
javax.swing.text.DefaultTextUI.DefaultTextUI()
use BasicTextUI instead
java.awt.event.KeyEvent.KeyEvent(Component,int,long,int,int)
java.rmi.server.Operation.Operation(String)
org.omg.CORBA.Principal.Principal()
java.rmi.RMISecurityException.RMISecurityException(String)
no longer needed
java.rmi.RMISecurityException.RMISecurityException(String,String)
no longer needed
java.rmi.ServerRuntimeException.ServerRuntimeException(String,Exception)
no longer needed
java.rmi.server.SkeletonMismatchException.SkeletonMismatchException(String)
no longer needed
java.net.Socket.Socket(String,int,boolean)
Use the DatagramSocket class to create datagram oriented sockets.
java.net.Socket.Socket(InetAddress,int,boolean)
Use the DatagramSocket class to create datagram oriented sockets.
java.io.StreamTokenizer.StreamTokenizer(InputStream)
Since JDK 1.1.
java.lang.String.String(byte[],int,int,int)
use String(byte[],int,int,String) to perform correct encoding
java.lang.String.String(byte[],int)
use String(byte[],String) to perform correct encoding
javax.swing.text.TableView.TableCell.TableCell(Element)
Table cells are now rendered by an arbitrary View implementation.
org.omg.CORBA.TCKind.TCKind(int)
it is recommended to use from_int(int) that reuses existing TCKind object instead of allocating the new instance.
java.sql.Time.Time(int,int,int)
java.sql.Timestamp.Timestamp(int,int,int,int,int,int,int)