Deprecated API


Contents
Deprecated Interfaces
org.xml.sax.AttributeList sample code for org.xml.sax.AttributeList definition code for org.xml.sax.AttributeList
          This interface has been replaced by the SAX2 Attributes sample code for org.xml.sax.Attributes definition code for org.xml.sax.Attributes interface, which includes Namespace support. 
java.security.Certificate sample code for java.security.Certificate definition code for java.security.Certificate
          A new certificate handling package is created in the Java 2 platform. This Certificate interface is entirely deprecated and is here to allow for a smooth transition to the new package. 
org.xml.sax.DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler
          This interface has been replaced by the SAX2 ContentHandler sample code for org.xml.sax.ContentHandler definition code for org.xml.sax.ContentHandler interface, which includes Namespace support. 
org.omg.CORBA.DynAny sample code for org.omg.CORBA.DynAny definition code for org.omg.CORBA.DynAny
          Use the new DynAny instead 
org.omg.CORBA.DynArray sample code for org.omg.CORBA.DynArray definition code for org.omg.CORBA.DynArray
          Use the new DynArray instead 
org.omg.CORBA.DynEnum sample code for org.omg.CORBA.DynEnum definition code for org.omg.CORBA.DynEnum
          Use the new DynEnum instead 
org.omg.CORBA.DynFixed sample code for org.omg.CORBA.DynFixed definition code for org.omg.CORBA.DynFixed
          Use the new DynFixed instead 
org.omg.CORBA.DynSequence sample code for org.omg.CORBA.DynSequence definition code for org.omg.CORBA.DynSequence
          Use the new DynSequence instead 
org.omg.CORBA.DynStruct sample code for org.omg.CORBA.DynStruct definition code for org.omg.CORBA.DynStruct
          Use the new DynStruct instead 
org.omg.CORBA.DynUnion sample code for org.omg.CORBA.DynUnion definition code for org.omg.CORBA.DynUnion
          Use the new DynUnion instead 
org.omg.CORBA.DynValue sample code for org.omg.CORBA.DynValue definition code for org.omg.CORBA.DynValue
          Use the new DynValue instead 
java.rmi.server.LoaderHandler sample code for java.rmi.server.LoaderHandler definition code for java.rmi.server.LoaderHandler
          no replacement 
org.xml.sax.Parser sample code for org.xml.sax.Parser definition code for org.xml.sax.Parser
          This interface has been replaced by the SAX2 XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader interface, which includes Namespace support. 
java.rmi.registry.RegistryHandler sample code for java.rmi.registry.RegistryHandler definition code for java.rmi.registry.RegistryHandler
          no replacement 
java.rmi.server.RemoteCall sample code for java.rmi.server.RemoteCall definition code for java.rmi.server.RemoteCall
          no replacement. 
java.rmi.server.Skeleton sample code for java.rmi.server.Skeleton definition code for java.rmi.server.Skeleton
          no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater. 
 

Deprecated Classes
javax.accessibility.AccessibleResourceBundle sample code for javax.accessibility.AccessibleResourceBundle definition code for javax.accessibility.AccessibleResourceBundle
          This class is deprecated as of version 1.3 of the Java 2 Platform. 
org.xml.sax.helpers.AttributeListImpl sample code for org.xml.sax.helpers.AttributeListImpl definition code for org.xml.sax.helpers.AttributeListImpl
          This class implements a deprecated interface, AttributeList sample code for org.xml.sax.AttributeList definition code for org.xml.sax.AttributeList ; that interface has been replaced by Attributes sample code for org.xml.sax.Attributes definition code for org.xml.sax.Attributes , which is implemented in the AttributesImpl sample code for org.xml.sax.helpers.AttributesImpl definition code for org.xml.sax.helpers.AttributesImpl helper class. 
javax.management.DefaultLoaderRepository sample code for javax.management.DefaultLoaderRepository definition code for javax.management.DefaultLoaderRepository
          Use MBeanServer.getClassLoaderRepository() sample code for javax.management.MBeanServer.getClassLoaderRepository() definition code for javax.management.MBeanServer.getClassLoaderRepository() instead. 
javax.management.loading.DefaultLoaderRepository sample code for javax.management.loading.DefaultLoaderRepository definition code for javax.management.loading.DefaultLoaderRepository
          Use MBeanServer.getClassLoaderRepository() sample code for javax.management.MBeanServer.getClassLoaderRepository() definition code for javax.management.MBeanServer.getClassLoaderRepository() } instead. 
javax.swing.text.DefaultTextUI sample code for javax.swing.text.DefaultTextUI definition code for javax.swing.text.DefaultTextUI
            
org.omg.CORBA.DynamicImplementation sample code for org.omg.CORBA.DynamicImplementation definition code for org.omg.CORBA.DynamicImplementation
          org.omg.CORBA.DynamicImplementation 
org.xml.sax.HandlerBase sample code for org.xml.sax.HandlerBase definition code for org.xml.sax.HandlerBase
          This class works with the deprecated DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler interface. It has been replaced by the SAX2 DefaultHandler sample code for org.xml.sax.helpers.DefaultHandler definition code for org.xml.sax.helpers.DefaultHandler class. 
java.security.Identity sample code for java.security.Identity definition code for java.security.Identity
          This class is no longer used. Its functionality has been replaced by java.security.KeyStore, the java.security.cert package, and java.security.Principal. 
java.security.IdentityScope sample code for java.security.IdentityScope definition code for java.security.IdentityScope
          This class is no longer used. Its functionality has been replaced by java.security.KeyStore, the java.security.cert package, and java.security.Principal. 
java.io.LineNumberInputStream sample code for java.io.LineNumberInputStream definition code for java.io.LineNumberInputStream
          This class incorrectly assumes that bytes adequately represent characters. As of JDK 1.1, the preferred way to operate on character streams is via the new character-stream classes, which include a class for counting line numbers. 
java.rmi.server.LogStream sample code for java.rmi.server.LogStream definition code for java.rmi.server.LogStream
          no replacement 
javax.swing.plaf.metal.MetalComboBoxUI.MetalComboPopup sample code for javax.swing.plaf.metal.MetalComboBoxUI.MetalComboPopup definition code for javax.swing.plaf.metal.MetalComboBoxUI.MetalComboPopup
          As of Java 2 platform v1.4. 
java.rmi.server.Operation sample code for java.rmi.server.Operation definition code for java.rmi.server.Operation
          no replacement 
org.xml.sax.helpers.ParserFactory sample code for org.xml.sax.helpers.ParserFactory definition code for org.xml.sax.helpers.ParserFactory
          This class works with the deprecated Parser sample code for org.xml.sax.Parser definition code for org.xml.sax.Parser interface. 
javax.security.auth.Policy sample code for javax.security.auth.Policy definition code for javax.security.auth.Policy
          as of JDK version 1.4 -- Replaced by java.security.Policy. java.security.Policy has a method:
        public PermissionCollection getPermissions
            (java.security.ProtectionDomain pd)
 
 
and ProtectionDomain has a constructor:
        public ProtectionDomain
            (CodeSource cs,
             PermissionCollection permissions,
             ClassLoader loader,
             Principal[] principals)
 
These two APIs provide callers the means to query the Policy for Principal-based Permission entries.
 
org.omg.CORBA.Principal sample code for org.omg.CORBA.Principal definition code for org.omg.CORBA.Principal
          Deprecated by CORBA 2.2. 
org.omg.CORBA.PrincipalHolder sample code for org.omg.CORBA.PrincipalHolder definition code for org.omg.CORBA.PrincipalHolder
          Deprecated by CORBA 2.2. 
java.security.Signer sample code for java.security.Signer definition code for java.security.Signer
          This class is no longer used. Its functionality has been replaced by java.security.KeyStore, the java.security.cert package, and java.security.Principal. 
java.io.StringBufferInputStream sample code for java.io.StringBufferInputStream definition code for java.io.StringBufferInputStream
          This class does not properly convert characters into bytes. As of JDK 1.1, the preferred way to create a stream from a string is via the StringReader class. 
javax.swing.text.TableView.TableCell sample code for javax.swing.text.TableView.TableCell definition code for javax.swing.text.TableView.TableCell
          A table cell can now be any View implementation. 
javax.management.timer.TimerAlarmClockNotification sample code for javax.management.timer.TimerAlarmClockNotification definition code for javax.management.timer.TimerAlarmClockNotification
          This class is of no use to user code. It is retained purely for compatibility reasons. 
 

Deprecated Exceptions
java.rmi.RMISecurityException sample code for java.rmi.RMISecurityException definition code for java.rmi.RMISecurityException
          Use SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException instead. Application code should never directly reference this class, and RMISecurityManager no longer throws this subclass of java.lang.SecurityException. 
java.rmi.ServerRuntimeException sample code for java.rmi.ServerRuntimeException definition code for java.rmi.ServerRuntimeException
          no replacement 
java.rmi.server.SkeletonMismatchException sample code for java.rmi.server.SkeletonMismatchException definition code for java.rmi.server.SkeletonMismatchException
          no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater. 
java.rmi.server.SkeletonNotFoundException sample code for java.rmi.server.SkeletonNotFoundException definition code for java.rmi.server.SkeletonNotFoundException
          no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater. 
 

Deprecated Fields
javax.management.monitor.Monitor.alreadyNotified sample code for javax.management.monitor.Monitor.alreadyNotified definition code for javax.management.monitor.Monitor.alreadyNotified
          equivalent to Monitor.alreadyNotifieds sample code for javax.management.monitor.Monitor.alreadyNotifieds definition code for javax.management.monitor.Monitor.alreadyNotifieds [0]. 
javax.swing.JViewport.backingStore sample code for javax.swing.JViewport.backingStore definition code for javax.swing.JViewport.backingStore
          As of Java 2 platform v1.3 
javax.swing.plaf.basic.BasicDesktopPaneUI.closeKey sample code for javax.swing.plaf.basic.BasicDesktopPaneUI.closeKey definition code for javax.swing.plaf.basic.BasicDesktopPaneUI.closeKey
          As of 1.3. 
java.awt.Frame.CROSSHAIR_CURSOR sample code for java.awt.Frame.CROSSHAIR_CURSOR definition code for java.awt.Frame.CROSSHAIR_CURSOR
          replaced by Cursor.CROSSHAIR_CURSOR. 
javax.management.monitor.Monitor.dbgTag sample code for javax.management.monitor.Monitor.dbgTag definition code for javax.management.monitor.Monitor.dbgTag
          No replacement. 
java.awt.Frame.DEFAULT_CURSOR sample code for java.awt.Frame.DEFAULT_CURSOR definition code for java.awt.Frame.DEFAULT_CURSOR
          replaced by Cursor.DEFAULT_CURSOR. 
javax.swing.JRootPane.defaultPressAction sample code for javax.swing.JRootPane.defaultPressAction definition code for javax.swing.JRootPane.defaultPressAction
          As of Java 2 platform v1.3. 
javax.swing.JRootPane.defaultReleaseAction sample code for javax.swing.JRootPane.defaultReleaseAction definition code for javax.swing.JRootPane.defaultReleaseAction
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.dividerResizeToggleKey sample code for javax.swing.plaf.basic.BasicSplitPaneUI.dividerResizeToggleKey definition code for javax.swing.plaf.basic.BasicSplitPaneUI.dividerResizeToggleKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicToolBarUI.downKey sample code for javax.swing.plaf.basic.BasicToolBarUI.downKey definition code for javax.swing.plaf.basic.BasicToolBarUI.downKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicTabbedPaneUI.downKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.downKey definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.downKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.downKey sample code for javax.swing.plaf.basic.BasicSplitPaneUI.downKey definition code for javax.swing.plaf.basic.BasicSplitPaneUI.downKey
          As of Java 2 platform v1.3. 
java.awt.Frame.E_RESIZE_CURSOR sample code for java.awt.Frame.E_RESIZE_CURSOR definition code for java.awt.Frame.E_RESIZE_CURSOR
          replaced by Cursor.E_RESIZE_CURSOR. 
javax.swing.plaf.basic.BasicSplitPaneUI.endKey sample code for javax.swing.plaf.basic.BasicSplitPaneUI.endKey definition code for javax.swing.plaf.basic.BasicSplitPaneUI.endKey
          As of Java 2 platform v1.3. 
java.awt.Frame.HAND_CURSOR sample code for java.awt.Frame.HAND_CURSOR definition code for java.awt.Frame.HAND_CURSOR
          replaced by Cursor.HAND_CURSOR. 
javax.swing.plaf.basic.BasicSplitPaneUI.homeKey sample code for javax.swing.plaf.basic.BasicSplitPaneUI.homeKey definition code for javax.swing.plaf.basic.BasicSplitPaneUI.homeKey
          As of Java 2 platform v1.3. 
java.net.HttpURLConnection.HTTP_SERVER_ERROR sample code for java.net.HttpURLConnection.HTTP_SERVER_ERROR definition code for java.net.HttpURLConnection.HTTP_SERVER_ERROR
          it is misplaced and shouldn't have existed. 
java.lang.SecurityManager.inCheck sample code for java.lang.SecurityManager.inCheck definition code for java.lang.SecurityManager.inCheck
          This type of security checking is not recommended. It is recommended that the checkPermission call be used instead. 
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardDownRightListener sample code for javax.swing.plaf.basic.BasicSplitPaneUI.keyboardDownRightListener definition code for javax.swing.plaf.basic.BasicSplitPaneUI.keyboardDownRightListener
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardEndListener sample code for javax.swing.plaf.basic.BasicSplitPaneUI.keyboardEndListener definition code for javax.swing.plaf.basic.BasicSplitPaneUI.keyboardEndListener
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardHomeListener sample code for javax.swing.plaf.basic.BasicSplitPaneUI.keyboardHomeListener definition code for javax.swing.plaf.basic.BasicSplitPaneUI.keyboardHomeListener
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardResizeToggleListener sample code for javax.swing.plaf.basic.BasicSplitPaneUI.keyboardResizeToggleListener definition code for javax.swing.plaf.basic.BasicSplitPaneUI.keyboardResizeToggleListener
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardUpLeftListener sample code for javax.swing.plaf.basic.BasicSplitPaneUI.keyboardUpLeftListener definition code for javax.swing.plaf.basic.BasicSplitPaneUI.keyboardUpLeftListener
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicToolBarUI.leftKey sample code for javax.swing.plaf.basic.BasicToolBarUI.leftKey definition code for javax.swing.plaf.basic.BasicToolBarUI.leftKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicTabbedPaneUI.leftKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.leftKey definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.leftKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.leftKey sample code for javax.swing.plaf.basic.BasicSplitPaneUI.leftKey definition code for javax.swing.plaf.basic.BasicSplitPaneUI.leftKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicDesktopPaneUI.maximizeKey sample code for javax.swing.plaf.basic.BasicDesktopPaneUI.maximizeKey definition code for javax.swing.plaf.basic.BasicDesktopPaneUI.maximizeKey
          As of 1.3. 
javax.swing.plaf.basic.BasicDesktopPaneUI.minimizeKey sample code for javax.swing.plaf.basic.BasicDesktopPaneUI.minimizeKey definition code for javax.swing.plaf.basic.BasicDesktopPaneUI.minimizeKey
          As of 1.3. 
java.awt.Frame.MOVE_CURSOR sample code for java.awt.Frame.MOVE_CURSOR definition code for java.awt.Frame.MOVE_CURSOR
          replaced by Cursor.MOVE_CURSOR. 
java.awt.Frame.N_RESIZE_CURSOR sample code for java.awt.Frame.N_RESIZE_CURSOR definition code for java.awt.Frame.N_RESIZE_CURSOR
          replaced by Cursor.N_RESIZE_CURSOR. 
javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey sample code for javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey definition code for javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey
          As of 1.3. 
javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey2 sample code for javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey2 definition code for javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey2
          As of 1.3. 
java.awt.Frame.NE_RESIZE_CURSOR sample code for java.awt.Frame.NE_RESIZE_CURSOR definition code for java.awt.Frame.NE_RESIZE_CURSOR
          replaced by Cursor.NE_RESIZE_CURSOR. 
java.awt.Frame.NW_RESIZE_CURSOR sample code for java.awt.Frame.NW_RESIZE_CURSOR definition code for java.awt.Frame.NW_RESIZE_CURSOR
          replaced by Cursor.NW_RESIZE_CURSOR. 
javax.swing.plaf.basic.BasicInternalFrameUI.openMenuKey sample code for javax.swing.plaf.basic.BasicInternalFrameUI.openMenuKey definition code for javax.swing.plaf.basic.BasicInternalFrameUI.openMenuKey
          As of Java 2 platform v1.3. 
java.awt.datatransfer.DataFlavor.plainTextFlavor sample code for java.awt.datatransfer.DataFlavor.plainTextFlavor definition code for java.awt.datatransfer.DataFlavor.plainTextFlavor
          as of 1.3. Use DataFlavor.getReaderForText(Transferable) instead of Transferable.getTransferData(DataFlavor.plainTextFlavor). 
javax.swing.text.html.FormView.RESET sample code for javax.swing.text.html.FormView.RESET definition code for javax.swing.text.html.FormView.RESET
          As of 1.3, value comes from UIManager UIManager property FormView.resetButtonText 
javax.swing.table.TableColumn.resizedPostingDisableCount sample code for javax.swing.table.TableColumn.resizedPostingDisableCount definition code for javax.swing.table.TableColumn.resizedPostingDisableCount
          as of Java 2 platform v1.3 
javax.swing.plaf.basic.BasicToolBarUI.rightKey sample code for javax.swing.plaf.basic.BasicToolBarUI.rightKey definition code for javax.swing.plaf.basic.BasicToolBarUI.rightKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicTabbedPaneUI.rightKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.rightKey definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.rightKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.rightKey sample code for javax.swing.plaf.basic.BasicSplitPaneUI.rightKey definition code for javax.swing.plaf.basic.BasicSplitPaneUI.rightKey
          As of Java 2 platform v1.3. 
java.awt.Frame.S_RESIZE_CURSOR sample code for java.awt.Frame.S_RESIZE_CURSOR definition code for java.awt.Frame.S_RESIZE_CURSOR
          replaced by Cursor.S_RESIZE_CURSOR. 
java.awt.Frame.SE_RESIZE_CURSOR sample code for java.awt.Frame.SE_RESIZE_CURSOR definition code for java.awt.Frame.SE_RESIZE_CURSOR
          replaced by Cursor.SE_RESIZE_CURSOR. 
javax.swing.text.html.FormView.SUBMIT sample code for javax.swing.text.html.FormView.SUBMIT definition code for javax.swing.text.html.FormView.SUBMIT
          As of 1.3, value now comes from UIManager property FormView.submitButtonText 
java.lang.Character.UnicodeBlock.SURROGATES_AREA sample code for java.lang.Character.UnicodeBlock.SURROGATES_AREA definition code for java.lang.Character.UnicodeBlock.SURROGATES_AREA
          As of J2SE 5, use Character.UnicodeBlock.HIGH_SURROGATES sample code for java.lang.Character.UnicodeBlock.HIGH_SURROGATES definition code for java.lang.Character.UnicodeBlock.HIGH_SURROGATES , Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES sample code for java.lang.Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES definition code for java.lang.Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES , and Character.UnicodeBlock.LOW_SURROGATES sample code for java.lang.Character.UnicodeBlock.LOW_SURROGATES definition code for java.lang.Character.UnicodeBlock.LOW_SURROGATES . These new constants match the block definitions of the Unicode Standard. The Character.UnicodeBlock.of(char) sample code for java.lang.Character.UnicodeBlock.of(char) definition code for java.lang.Character.UnicodeBlock.of(char) and Character.UnicodeBlock.of(int) sample code for java.lang.Character.UnicodeBlock.of(int) definition code for java.lang.Character.UnicodeBlock.of(int) methods return the new constants, not SURROGATES_AREA. 
java.awt.Frame.SW_RESIZE_CURSOR sample code for java.awt.Frame.SW_RESIZE_CURSOR definition code for java.awt.Frame.SW_RESIZE_CURSOR
          replaced by Cursor.SW_RESIZE_CURSOR. 
java.awt.Frame.TEXT_CURSOR sample code for java.awt.Frame.TEXT_CURSOR definition code for java.awt.Frame.TEXT_CURSOR
          replaced by Cursor.TEXT_CURSOR. 
javax.swing.plaf.basic.BasicToolBarUI.upKey sample code for javax.swing.plaf.basic.BasicToolBarUI.upKey definition code for javax.swing.plaf.basic.BasicToolBarUI.upKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicTabbedPaneUI.upKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.upKey definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.upKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.upKey sample code for javax.swing.plaf.basic.BasicSplitPaneUI.upKey definition code for javax.swing.plaf.basic.BasicSplitPaneUI.upKey
          As of Java 2 platform v1.3. 
java.awt.Frame.W_RESIZE_CURSOR sample code for java.awt.Frame.W_RESIZE_CURSOR definition code for java.awt.Frame.W_RESIZE_CURSOR
          replaced by Cursor.W_RESIZE_CURSOR. 
java.awt.Frame.WAIT_CURSOR sample code for java.awt.Frame.WAIT_CURSOR definition code for java.awt.Frame.WAIT_CURSOR
          replaced by Cursor.WAIT_CURSOR. 
 

Deprecated Methods
java.awt.Component.action(Event, Object) sample code for java.awt.Component.action(java.awt.Event, java.lang.Object) definition code for java.awt.Component.action(java.awt.Event, java.lang.Object)
          As of JDK version 1.1, should register this component as ActionListener on component which fires action events. 
java.awt.List.addItem(String) sample code for java.awt.List.addItem(java.lang.String) definition code for java.awt.List.addItem(java.lang.String)
          replaced by add(String). 
java.awt.List.addItem(String, int) sample code for java.awt.List.addItem(java.lang.String, int) definition code for java.awt.List.addItem(java.lang.String, int)
          replaced by add(String, int). 
java.awt.BorderLayout.addLayoutComponent(String, Component) sample code for java.awt.BorderLayout.addLayoutComponent(java.lang.String, java.awt.Component) definition code for java.awt.BorderLayout.addLayoutComponent(java.lang.String, java.awt.Component)
          replaced by addLayoutComponent(Component, Object). 
java.awt.CardLayout.addLayoutComponent(String, Component) sample code for java.awt.CardLayout.addLayoutComponent(java.lang.String, java.awt.Component) definition code for java.awt.CardLayout.addLayoutComponent(java.lang.String, java.awt.Component)
          replaced by addLayoutComponent(Component, Object). 
java.awt.List.allowsMultipleSelections() sample code for java.awt.List.allowsMultipleSelections() definition code for java.awt.List.allowsMultipleSelections()
          As of JDK version 1.1, replaced by isMultipleMode(). 
java.lang.ThreadGroup.allowThreadSuspension(boolean) sample code for java.lang.ThreadGroup.allowThreadSuspension(boolean) definition code for java.lang.ThreadGroup.allowThreadSuspension(boolean)
          The definition of this call depends on ThreadGroup.suspend() sample code for java.lang.ThreadGroup.suspend() definition code for java.lang.ThreadGroup.suspend() , which is deprecated. Further, the behavior of this call was never specified. 
java.awt.TextArea.appendText(String) sample code for java.awt.TextArea.appendText(java.lang.String) definition code for java.awt.TextArea.appendText(java.lang.String)
          As of JDK version 1.1, replaced by append(String). 
java.awt.Window.applyResourceBundle(ResourceBundle) sample code for java.awt.Window.applyResourceBundle(java.util.ResourceBundle) definition code for java.awt.Window.applyResourceBundle(java.util.ResourceBundle)
          As of J2SE 1.4, replaced by Component.applyComponentOrientation sample code for java.awt.Component.applyComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Component.applyComponentOrientation(java.awt.ComponentOrientation) . 
java.awt.Window.applyResourceBundle(String) sample code for java.awt.Window.applyResourceBundle(java.lang.String) definition code for java.awt.Window.applyResourceBundle(java.lang.String)
          As of J2SE 1.4, replaced by Component.applyComponentOrientation sample code for java.awt.Component.applyComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Component.applyComponentOrientation(java.awt.ComponentOrientation) . 
java.awt.Component.bounds() sample code for java.awt.Component.bounds() definition code for java.awt.Component.bounds()
          As of JDK version 1.1, replaced by getBounds(). 
java.lang.SecurityManager.checkMulticast(InetAddress, byte) sample code for java.lang.SecurityManager.checkMulticast(java.net.InetAddress, byte) definition code for java.lang.SecurityManager.checkMulticast(java.net.InetAddress, byte)
          Use #checkPermission(java.security.Permission) instead 
java.lang.SecurityManager.classDepth(String) sample code for java.lang.SecurityManager.classDepth(java.lang.String) definition code for java.lang.SecurityManager.classDepth(java.lang.String)
          This type of security checking is not recommended. It is recommended that the checkPermission call be used instead. 
java.lang.SecurityManager.classLoaderDepth() sample code for java.lang.SecurityManager.classLoaderDepth() definition code for java.lang.SecurityManager.classLoaderDepth()
          This type of security checking is not recommended. It is recommended that the checkPermission call be used instead. 
java.awt.List.clear() sample code for java.awt.List.clear() definition code for java.awt.List.clear()
          As of JDK version 1.1, replaced by removeAll(). 
java.awt.image.renderable.RenderContext.concetenateTransform(AffineTransform) sample code for java.awt.image.renderable.RenderContext.concetenateTransform(java.awt.geom.AffineTransform) definition code for java.awt.image.renderable.RenderContext.concetenateTransform(java.awt.geom.AffineTransform)
          replaced by concatenateTransform(AffineTransform). 
java.awt.Container.countComponents() sample code for java.awt.Container.countComponents() definition code for java.awt.Container.countComponents()
          As of JDK version 1.1, replaced by getComponentCount(). 
java.awt.Menu.countItems() sample code for java.awt.Menu.countItems() definition code for java.awt.Menu.countItems()
          As of JDK version 1.1, replaced by getItemCount(). 
java.awt.List.countItems() sample code for java.awt.List.countItems() definition code for java.awt.List.countItems()
          As of JDK version 1.1, replaced by getItemCount(). 
java.awt.Choice.countItems() sample code for java.awt.Choice.countItems() definition code for java.awt.Choice.countItems()
          As of JDK version 1.1, replaced by getItemCount(). 
java.awt.MenuBar.countMenus() sample code for java.awt.MenuBar.countMenus() definition code for java.awt.MenuBar.countMenus()
          As of JDK version 1.1, replaced by getMenuCount(). 
java.lang.Thread.countStackFrames() sample code for java.lang.Thread.countStackFrames() definition code for java.lang.Thread.countStackFrames()
          The definition of this call depends on Thread.suspend() sample code for java.lang.Thread.suspend() definition code for java.lang.Thread.suspend() , which is deprecated. Further, the results of this call were never well-defined. 
org.omg.CORBA.ORB.create_basic_dyn_any(TypeCode) sample code for org.omg.CORBA.ORB.create_basic_dyn_any(org.omg.CORBA.TypeCode) definition code for org.omg.CORBA.ORB.create_basic_dyn_any(org.omg.CORBA.TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_any(Any) sample code for org.omg.CORBA.ORB.create_dyn_any(org.omg.CORBA.Any) definition code for org.omg.CORBA.ORB.create_dyn_any(org.omg.CORBA.Any)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_array(TypeCode) sample code for org.omg.CORBA.ORB.create_dyn_array(org.omg.CORBA.TypeCode) definition code for org.omg.CORBA.ORB.create_dyn_array(org.omg.CORBA.TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_enum(TypeCode) sample code for org.omg.CORBA.ORB.create_dyn_enum(org.omg.CORBA.TypeCode) definition code for org.omg.CORBA.ORB.create_dyn_enum(org.omg.CORBA.TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_sequence(TypeCode) sample code for org.omg.CORBA.ORB.create_dyn_sequence(org.omg.CORBA.TypeCode) definition code for org.omg.CORBA.ORB.create_dyn_sequence(org.omg.CORBA.TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_struct(TypeCode) sample code for org.omg.CORBA.ORB.create_dyn_struct(org.omg.CORBA.TypeCode) definition code for org.omg.CORBA.ORB.create_dyn_struct(org.omg.CORBA.TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_union(TypeCode) sample code for org.omg.CORBA.ORB.create_dyn_union(org.omg.CORBA.TypeCode) definition code for org.omg.CORBA.ORB.create_dyn_union(org.omg.CORBA.TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_recursive_sequence_tc(int, int) sample code for org.omg.CORBA.ORB.create_recursive_sequence_tc(int, int) definition code for org.omg.CORBA.ORB.create_recursive_sequence_tc(int, int)
          Use a combination of create_recursive_tc and create_sequence_tc instead 
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardDownRightListener() sample code for javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardDownRightListener() definition code for javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardDownRightListener()
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardEndListener() sample code for javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardEndListener() definition code for javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardEndListener()
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardHomeListener() sample code for javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardHomeListener() definition code for javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardHomeListener()
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardResizeToggleListener() sample code for javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardResizeToggleListener() definition code for javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardResizeToggleListener()
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardUpLeftListener() sample code for javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardUpLeftListener() definition code for javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardUpLeftListener()
          As of Java 2 platform v1.3. 
javax.swing.JTable.createScrollPaneForTable(JTable) sample code for javax.swing.JTable.createScrollPaneForTable(javax.swing.JTable) definition code for javax.swing.JTable.createScrollPaneForTable(javax.swing.JTable)
          As of Swing version 1.0.2, replaced by new JScrollPane(aTable). 
javax.swing.text.TableView.createTableCell(Element) sample code for javax.swing.text.TableView.createTableCell(javax.swing.text.Element) definition code for javax.swing.text.TableView.createTableCell(javax.swing.text.Element)
          Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table. 
java.lang.SecurityManager.currentClassLoader() sample code for java.lang.SecurityManager.currentClassLoader() definition code for java.lang.SecurityManager.currentClassLoader()
          This type of security checking is not recommended. It is recommended that the checkPermission call be used instead. 
java.lang.SecurityManager.currentLoadedClass() sample code for java.lang.SecurityManager.currentLoadedClass() definition code for java.lang.SecurityManager.currentLoadedClass()
          This type of security checking is not recommended. It is recommended that the checkPermission call be used instead. 
java.net.URLDecoder.decode(String) sample code for java.net.URLDecoder.decode(java.lang.String) definition code for java.net.URLDecoder.decode(java.lang.String)
          The resulting string may vary depending on the platform's default encoding. Instead, use the decode(String,String) method to specify the encoding. 
java.lang.ClassLoader.defineClass(byte[], int, int) sample code for java.lang.ClassLoader.defineClass(byte[], int, int) definition code for java.lang.ClassLoader.defineClass(byte[], int, int)
          Replaced by defineClass(String, byte[], int, int) sample code for java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int) definition code for java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int)  
java.awt.List.delItem(int) sample code for java.awt.List.delItem(int) definition code for java.awt.List.delItem(int)
          replaced by remove(String) and remove(int). 
java.awt.List.delItems(int, int) sample code for java.awt.List.delItems(int, int) definition code for java.awt.List.delItems(int, int)
          As of JDK version 1.1, Not for public use in the future. This method is expected to be retained only as a package private method. 
java.awt.Component.deliverEvent(Event) sample code for java.awt.Component.deliverEvent(java.awt.Event) definition code for java.awt.Component.deliverEvent(java.awt.Event)
          As of JDK version 1.1, replaced by dispatchEvent(AWTEvent e). 
java.awt.Container.deliverEvent(Event) sample code for java.awt.Container.deliverEvent(java.awt.Event) definition code for java.awt.Container.deliverEvent(java.awt.Event)
          As of JDK version 1.1, replaced by dispatchEvent(AWTEvent e) 
javax.management.MBeanServer.deserialize(ObjectName, byte[]) sample code for javax.management.MBeanServer.deserialize(javax.management.ObjectName, byte[]) definition code for javax.management.MBeanServer.deserialize(javax.management.ObjectName, byte[])
          Use getClassLoaderFor sample code for javax.management.MBeanServer.getClassLoaderFor(javax.management.ObjectName) definition code for javax.management.MBeanServer.getClassLoaderFor(javax.management.ObjectName) to obtain the appropriate class loader for deserialization. 
javax.management.MBeanServer.deserialize(String, byte[]) sample code for javax.management.MBeanServer.deserialize(java.lang.String, byte[]) definition code for javax.management.MBeanServer.deserialize(java.lang.String, byte[])
          Use MBeanServer.getClassLoaderRepository() sample code for javax.management.MBeanServer.getClassLoaderRepository() definition code for javax.management.MBeanServer.getClassLoaderRepository() to obtain the class loader repository and use it to deserialize. 
javax.management.MBeanServer.deserialize(String, ObjectName, byte[]) sample code for javax.management.MBeanServer.deserialize(java.lang.String, javax.management.ObjectName, byte[]) definition code for javax.management.MBeanServer.deserialize(java.lang.String, javax.management.ObjectName, byte[])
          Use getClassLoader sample code for javax.management.MBeanServer.getClassLoader(javax.management.ObjectName) definition code for javax.management.MBeanServer.getClassLoader(javax.management.ObjectName) to obtain the class loader for deserialization. 
java.lang.Thread.destroy() sample code for java.lang.Thread.destroy() definition code for java.lang.Thread.destroy()
          This method was originally designed to destroy this thread without any cleanup. Any monitors it held would have remained locked. However, the method was never implemented. If if were to be implemented, it would be deadlock-prone in much the manner of Thread.suspend() sample code for java.lang.Thread.suspend() definition code for java.lang.Thread.suspend() . If the target thread held a lock protecting a critical system resource when it was destroyed, no thread could ever access this resource again. If another thread ever attempted to lock this resource, deadlock would result. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. 
java.awt.Component.disable() sample code for java.awt.Component.disable() definition code for java.awt.Component.disable()
          As of JDK version 1.1, replaced by setEnabled(boolean). 
java.awt.MenuItem.disable() sample code for java.awt.MenuItem.disable() definition code for java.awt.MenuItem.disable()
          As of JDK version 1.1, replaced by setEnabled(boolean). 
javax.swing.JComponent.disable() sample code for javax.swing.JComponent.disable() definition code for javax.swing.JComponent.disable()
          As of JDK version 1.1, replaced by java.awt.Component.setEnabled(boolean). 
javax.swing.table.TableColumn.disableResizedPosting() sample code for javax.swing.table.TableColumn.disableResizedPosting() definition code for javax.swing.table.TableColumn.disableResizedPosting()
          as of Java 2 platform v1.3 
javax.swing.FocusManager.disableSwingFocusManager() sample code for javax.swing.FocusManager.disableSwingFocusManager() definition code for javax.swing.FocusManager.disableSwingFocusManager()
          as of 1.4, replaced by KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy) 
java.rmi.server.Skeleton.dispatch(Remote, RemoteCall, int, long) sample code for java.rmi.server.Skeleton.dispatch(java.rmi.Remote, java.rmi.server.RemoteCall, int, long) definition code for java.rmi.server.Skeleton.dispatch(java.rmi.Remote, java.rmi.server.RemoteCall, int, long)
          no replacement 
java.rmi.server.RemoteCall.done() sample code for java.rmi.server.RemoteCall.done() definition code for java.rmi.server.RemoteCall.done()
          no replacement 
java.rmi.server.RemoteRef.done(RemoteCall) sample code for java.rmi.server.RemoteRef.done(java.rmi.server.RemoteCall) definition code for java.rmi.server.RemoteRef.done(java.rmi.server.RemoteCall)
          1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (newCall, invoke, and done), a stub uses a single method, invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value. 
javax.swing.plaf.metal.MetalComboBoxUI.editablePropertyChanged(PropertyChangeEvent) sample code for javax.swing.plaf.metal.MetalComboBoxUI.editablePropertyChanged(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.metal.MetalComboBoxUI.editablePropertyChanged(java.beans.PropertyChangeEvent)
          As of Java 2 platform v1.4. 
java.awt.Component.enable() sample code for java.awt.Component.enable() definition code for java.awt.Component.enable()
          As of JDK version 1.1, replaced by setEnabled(boolean). 
java.awt.MenuItem.enable() sample code for java.awt.MenuItem.enable() definition code for java.awt.MenuItem.enable()
          As of JDK version 1.1, replaced by setEnabled(boolean). 
javax.swing.JComponent.enable() sample code for javax.swing.JComponent.enable() definition code for javax.swing.JComponent.enable()
          As of JDK version 1.1, replaced by java.awt.Component.setEnabled(boolean). 
java.awt.Component.enable(boolean) sample code for java.awt.Component.enable(boolean) definition code for java.awt.Component.enable(boolean)
          As of JDK version 1.1, replaced by setEnabled(boolean). 
java.awt.MenuItem.enable(boolean) sample code for java.awt.MenuItem.enable(boolean) definition code for java.awt.MenuItem.enable(boolean)
          As of JDK version 1.1, replaced by setEnabled(boolean). 
javax.swing.table.TableColumn.enableResizedPosting() sample code for javax.swing.table.TableColumn.enableResizedPosting() definition code for javax.swing.table.TableColumn.enableResizedPosting()
          as of Java 2 platform v1.3 
java.net.URLEncoder.encode(String) sample code for java.net.URLEncoder.encode(java.lang.String) definition code for java.net.URLEncoder.encode(java.lang.String)
          The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding. 
java.security.SignatureSpi.engineGetParameter(String) sample code for java.security.SignatureSpi.engineGetParameter(java.lang.String) definition code for java.security.SignatureSpi.engineGetParameter(java.lang.String)
            
java.security.SignatureSpi.engineSetParameter(String, Object) sample code for java.security.SignatureSpi.engineSetParameter(java.lang.String, java.lang.Object) definition code for java.security.SignatureSpi.engineSetParameter(java.lang.String, java.lang.Object)
          Replaced by engineSetParameter sample code for java.security.SignatureSpi.engineSetParameter(java.security.spec.AlgorithmParameterSpec) definition code for java.security.SignatureSpi.engineSetParameter(java.security.spec.AlgorithmParameterSpec) . 
java.awt.datatransfer.DataFlavor.equals(String) sample code for java.awt.datatransfer.DataFlavor.equals(java.lang.String) definition code for java.awt.datatransfer.DataFlavor.equals(java.lang.String)
          As inconsistent with hashCode() contract, use isMimeTypeEqual(String) instead. 
org.omg.CORBA.ServerRequest.except(Any) sample code for org.omg.CORBA.ServerRequest.except(org.omg.CORBA.Any) definition code for org.omg.CORBA.ServerRequest.except(org.omg.CORBA.Any)
          use set_exception() 
java.rmi.server.RemoteCall.executeCall() sample code for java.rmi.server.RemoteCall.executeCall() definition code for java.rmi.server.RemoteCall.executeCall()
          no replacement 
org.omg.CORBA.Any.extract_Principal() sample code for org.omg.CORBA.Any.extract_Principal() definition code for org.omg.CORBA.Any.extract_Principal()
          Deprecated by CORBA 2.2. 
javax.swing.SwingUtilities.findFocusOwner(Component) sample code for javax.swing.SwingUtilities.findFocusOwner(java.awt.Component) definition code for javax.swing.SwingUtilities.findFocusOwner(java.awt.Component)
          As of 1.4, replaced by KeyboardFocusManager.getFocusOwner(). 
org.omg.CORBA.ORB.get_current() sample code for org.omg.CORBA.ORB.get_current() definition code for org.omg.CORBA.ORB.get_current()
          use resolve_initial_references. 
java.security.Security.getAlgorithmProperty(String, String) sample code for java.security.Security.getAlgorithmProperty(java.lang.String, java.lang.String) definition code for java.security.Security.getAlgorithmProperty(java.lang.String, java.lang.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. Use the new provider-based and algorithm-independent AlgorithmParameters and KeyFactory engine classes (introduced in the Java 2 platform) instead. 
java.sql.ResultSet.getBigDecimal(int, int) sample code for java.sql.ResultSet.getBigDecimal(int, int) definition code for java.sql.ResultSet.getBigDecimal(int, int)
            
java.sql.CallableStatement.getBigDecimal(int, int) sample code for java.sql.CallableStatement.getBigDecimal(int, int) definition code for java.sql.CallableStatement.getBigDecimal(int, int)
          use getBigDecimal(int parameterIndex) or getBigDecimal(String parameterName) 
java.sql.ResultSet.getBigDecimal(String, int) sample code for java.sql.ResultSet.getBigDecimal(java.lang.String, int) definition code for java.sql.ResultSet.getBigDecimal(java.lang.String, int)
            
java.awt.Polygon.getBoundingBox() sample code for java.awt.Polygon.getBoundingBox() definition code for java.awt.Polygon.getBoundingBox()
          As of JDK version 1.1, replaced by getBounds(). 
java.lang.String.getBytes(int, int, byte[], int) sample code for java.lang.String.getBytes(int, int, byte[], int) definition code for java.lang.String.getBytes(int, int, byte[], int)
          This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via the getBytes() method, which uses the platform's default charset. 
java.awt.Graphics.getClipRect() sample code for java.awt.Graphics.getClipRect() definition code for java.awt.Graphics.getClipRect()
          As of JDK version 1.1, replaced by getClipBounds(). 
javax.swing.JMenuBar.getComponentAtIndex(int) sample code for javax.swing.JMenuBar.getComponentAtIndex(int) definition code for javax.swing.JMenuBar.getComponentAtIndex(int)
          replaced by getComponent(int i) 
javax.swing.JPopupMenu.getComponentAtIndex(int) sample code for javax.swing.JPopupMenu.getComponentAtIndex(int) definition code for javax.swing.JPopupMenu.getComponentAtIndex(int)
          replaced by getComponent(int i) 
java.awt.CheckboxGroup.getCurrent() sample code for java.awt.CheckboxGroup.getCurrent() definition code for java.awt.CheckboxGroup.getCurrent()
          As of JDK version 1.1, replaced by getSelectedCheckbox(). 
java.awt.Frame.getCursorType() sample code for java.awt.Frame.getCursorType() definition code for java.awt.Frame.getCursorType()
          As of JDK version 1.1, replaced by Component.getCursor(). 
java.sql.Time.getDate() sample code for java.sql.Time.getDate() definition code for java.sql.Time.getDate()
            
java.util.Date.getDate() sample code for java.util.Date.getDate() definition code for java.util.Date.getDate()
          As of JDK version 1.1, replaced by Calendar.get(Calendar.DAY_OF_MONTH). 
java.sql.Time.getDay() sample code for java.sql.Time.getDay() definition code for java.sql.Time.getDay()
            
java.util.Date.getDay() sample code for java.util.Date.getDay() definition code for java.util.Date.getDay()
          As of JDK version 1.1, replaced by Calendar.get(Calendar.DAY_OF_WEEK). 
java.net.URLConnection.getDefaultRequestProperty(String) sample code for java.net.URLConnection.getDefaultRequestProperty(java.lang.String) definition code for java.net.URLConnection.getDefaultRequestProperty(java.lang.String)
          The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained. 
java.rmi.server.LogStream.getDefaultStream() sample code for java.rmi.server.LogStream.getDefaultStream() definition code for java.rmi.server.LogStream.getDefaultStream()
          no replacement 
javax.management.monitor.StringMonitorMBean.getDerivedGauge() sample code for javax.management.monitor.StringMonitorMBean.getDerivedGauge() definition code for javax.management.monitor.StringMonitorMBean.getDerivedGauge()
          As of JMX 1.2, replaced by StringMonitorMBean.getDerivedGauge(ObjectName) sample code for javax.management.monitor.StringMonitorMBean.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.StringMonitorMBean.getDerivedGauge(javax.management.ObjectName)  
javax.management.monitor.StringMonitor.getDerivedGauge() sample code for javax.management.monitor.StringMonitor.getDerivedGauge() definition code for javax.management.monitor.StringMonitor.getDerivedGauge()
          As of JMX 1.2, replaced by StringMonitor.getDerivedGauge(ObjectName) sample code for javax.management.monitor.StringMonitor.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.StringMonitor.getDerivedGauge(javax.management.ObjectName)  
javax.management.monitor.GaugeMonitorMBean.getDerivedGauge() sample code for javax.management.monitor.GaugeMonitorMBean.getDerivedGauge() definition code for javax.management.monitor.GaugeMonitorMBean.getDerivedGauge()
          As of JMX 1.2, replaced by GaugeMonitorMBean.getDerivedGauge(ObjectName) sample code for javax.management.monitor.GaugeMonitorMBean.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.GaugeMonitorMBean.getDerivedGauge(javax.management.ObjectName)  
javax.management.monitor.GaugeMonitor.getDerivedGauge() sample code for javax.management.monitor.GaugeMonitor.getDerivedGauge() definition code for javax.management.monitor.GaugeMonitor.getDerivedGauge()
          As of JMX 1.2, replaced by GaugeMonitor.getDerivedGauge(ObjectName) sample code for javax.management.monitor.GaugeMonitor.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.GaugeMonitor.getDerivedGauge(javax.management.ObjectName)  
javax.management.monitor.CounterMonitorMBean.getDerivedGauge() sample code for javax.management.monitor.CounterMonitorMBean.getDerivedGauge() definition code for javax.management.monitor.CounterMonitorMBean.getDerivedGauge()
          As of JMX 1.2, replaced by CounterMonitorMBean.getDerivedGauge(ObjectName) sample code for javax.management.monitor.CounterMonitorMBean.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitorMBean.getDerivedGauge(javax.management.ObjectName)  
javax.management.monitor.CounterMonitor.getDerivedGauge() sample code for javax.management.monitor.CounterMonitor.getDerivedGauge() definition code for javax.management.monitor.CounterMonitor.getDerivedGauge()
          As of JMX 1.2, replaced by CounterMonitor.getDerivedGauge(ObjectName) sample code for javax.management.monitor.CounterMonitor.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getDerivedGauge(javax.management.ObjectName)  
javax.management.monitor.StringMonitorMBean.getDerivedGaugeTimeStamp() sample code for javax.management.monitor.StringMonitorMBean.getDerivedGaugeTimeStamp() definition code for javax.management.monitor.StringMonitorMBean.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by StringMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) sample code for javax.management.monitor.StringMonitorMBean.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.StringMonitorMBean.getDerivedGaugeTimeStamp(javax.management.ObjectName)  
javax.management.monitor.StringMonitor.getDerivedGaugeTimeStamp() sample code for javax.management.monitor.StringMonitor.getDerivedGaugeTimeStamp() definition code for javax.management.monitor.StringMonitor.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by StringMonitor.getDerivedGaugeTimeStamp(ObjectName) sample code for javax.management.monitor.StringMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.StringMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName)  
javax.management.monitor.GaugeMonitorMBean.getDerivedGaugeTimeStamp() sample code for javax.management.monitor.GaugeMonitorMBean.getDerivedGaugeTimeStamp() definition code for javax.management.monitor.GaugeMonitorMBean.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by GaugeMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) sample code for javax.management.monitor.GaugeMonitorMBean.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.GaugeMonitorMBean.getDerivedGaugeTimeStamp(javax.management.ObjectName)  
javax.management.monitor.GaugeMonitor.getDerivedGaugeTimeStamp() sample code for javax.management.monitor.GaugeMonitor.getDerivedGaugeTimeStamp() definition code for javax.management.monitor.GaugeMonitor.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by GaugeMonitor.getDerivedGaugeTimeStamp(ObjectName) sample code for javax.management.monitor.GaugeMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.GaugeMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName)  
javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp() sample code for javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp() definition code for javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by CounterMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) sample code for javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp(javax.management.ObjectName)  
javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp() sample code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp() definition code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by CounterMonitor.getDerivedGaugeTimeStamp(ObjectName) sample code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName)  
javax.swing.plaf.basic.BasicSplitPaneUI.getDividerBorderSize() sample code for javax.swing.plaf.basic.BasicSplitPaneUI.getDividerBorderSize() definition code for javax.swing.plaf.basic.BasicSplitPaneUI.getDividerBorderSize()
          As of Java 2 platform v1.3, instead set the border on the divider. 
java.awt.Toolkit.getFontList() sample code for java.awt.Toolkit.getFontList() definition code for java.awt.Toolkit.getFontList()
          see GraphicsEnvironment.getAvailableFontFamilyNames() sample code for java.awt.GraphicsEnvironment.getAvailableFontFamilyNames() definition code for java.awt.GraphicsEnvironment.getAvailableFontFamilyNames()  
javax.swing.text.LabelView.getFontMetrics() sample code for javax.swing.text.LabelView.getFontMetrics() definition code for javax.swing.text.LabelView.getFontMetrics()
          FontMetrics are not used for glyph rendering when running in the JDK. 
java.awt.Toolkit.getFontMetrics(Font) sample code for java.awt.Toolkit.getFontMetrics(java.awt.Font) definition code for java.awt.Toolkit.getFontMetrics(java.awt.Font)
          As of JDK version 1.2, replaced by the Font method getLineMetrics. 
java.awt.Toolkit.getFontPeer(String, int) sample code for java.awt.Toolkit.getFontPeer(java.lang.String, int) definition code for java.awt.Toolkit.getFontPeer(java.lang.String, int)
          see java.awt.GraphicsEnvironment#getAllFonts 
java.sql.Date.getHours() sample code for java.sql.Date.getHours() definition code for java.sql.Date.getHours()
            
java.util.Date.getHours() sample code for java.util.Date.getHours() definition code for java.util.Date.getHours()
          As of JDK version 1.1, replaced by Calendar.get(Calendar.HOUR_OF_DAY). 
java.lang.SecurityManager.getInCheck() sample code for java.lang.SecurityManager.getInCheck() definition code for java.lang.SecurityManager.getInCheck()
          This type of security checking is not recommended. It is recommended that the checkPermission call be used instead. 
java.rmi.server.RemoteCall.getInputStream() sample code for java.rmi.server.RemoteCall.getInputStream() definition code for java.rmi.server.RemoteCall.getInputStream()
          no replacement 
javax.swing.KeyStroke.getKeyStroke(char, boolean) sample code for javax.swing.KeyStroke.getKeyStroke(char, boolean) definition code for javax.swing.KeyStroke.getKeyStroke(char, boolean)
          use getKeyStroke(char) 
javax.swing.AbstractButton.getLabel() sample code for javax.swing.AbstractButton.getLabel() definition code for javax.swing.AbstractButton.getLabel()
          - Replaced by getText 
java.awt.Scrollbar.getLineIncrement() sample code for java.awt.Scrollbar.getLineIncrement() definition code for java.awt.Scrollbar.getLineIncrement()
          As of JDK version 1.1, replaced by getUnitIncrement(). 
java.lang.Runtime.getLocalizedInputStream(InputStream) sample code for java.lang.Runtime.getLocalizedInputStream(java.io.InputStream) definition code for java.lang.Runtime.getLocalizedInputStream(java.io.InputStream)
          As of JDK 1.1, the preferred way to translate a byte stream in the local encoding into a character stream in Unicode is via the InputStreamReader and BufferedReader classes. 
java.lang.Runtime.getLocalizedOutputStream(OutputStream) sample code for java.lang.Runtime.getLocalizedOutputStream(java.io.OutputStream) definition code for java.lang.Runtime.getLocalizedOutputStream(java.io.OutputStream)
          As of JDK 1.1, the preferred way to translate a Unicode character stream into a byte stream in the local encoding is via the OutputStreamWriter, BufferedWriter, and PrintWriter classes. 
java.sql.DriverManager.getLogStream() sample code for java.sql.DriverManager.getLogStream() definition code for java.sql.DriverManager.getLogStream()
            
java.awt.FontMetrics.getMaxDecent() sample code for java.awt.FontMetrics.getMaxDecent() definition code for java.awt.FontMetrics.getMaxDecent()
          As of JDK version 1.1.1, replaced by getMaxDescent(). 
javax.swing.JRootPane.getMenuBar() sample code for javax.swing.JRootPane.getMenuBar() definition code for javax.swing.JRootPane.getMenuBar()
          As of Swing version 1.0.3 replaced by getJMenubar(). 
javax.swing.JInternalFrame.getMenuBar() sample code for javax.swing.JInternalFrame.getMenuBar() definition code for javax.swing.JInternalFrame.getMenuBar()
          As of Swing version 1.0.3, replaced by getJMenuBar(). 
java.sql.Date.getMinutes() sample code for java.sql.Date.getMinutes() definition code for java.sql.Date.getMinutes()
            
java.util.Date.getMinutes() sample code for java.util.Date.getMinutes() definition code for java.util.Date.getMinutes()
          As of JDK version 1.1, replaced by Calendar.get(Calendar.MINUTE). 
java.sql.Time.getMonth() sample code for java.sql.Time.getMonth() definition code for java.sql.Time.getMonth()
            
java.util.Date.getMonth() sample code for java.util.Date.getMonth() definition code for java.util.Date.getMonth()
          As of JDK version 1.1, replaced by Calendar.get(Calendar.MONTH). 
javax.swing.JComponent.getNextFocusableComponent() sample code for javax.swing.JComponent.getNextFocusableComponent() definition code for javax.swing.JComponent.getNextFocusableComponent()
          As of 1.4, replaced by FocusTraversalPolicy. 
javax.management.monitor.MonitorMBean.getObservedObject() sample code for javax.management.monitor.MonitorMBean.getObservedObject() definition code for javax.management.monitor.MonitorMBean.getObservedObject()
          As of JMX 1.2, replaced by MonitorMBean.getObservedObjects() sample code for javax.management.monitor.MonitorMBean.getObservedObjects() definition code for javax.management.monitor.MonitorMBean.getObservedObjects()  
javax.management.monitor.Monitor.getObservedObject() sample code for javax.management.monitor.Monitor.getObservedObject() definition code for javax.management.monitor.Monitor.getObservedObject()
          As of JMX 1.2, replaced by Monitor.getObservedObjects() sample code for javax.management.monitor.Monitor.getObservedObjects() definition code for javax.management.monitor.Monitor.getObservedObjects()  
java.rmi.server.Operation.getOperation() sample code for java.rmi.server.Operation.getOperation() definition code for java.rmi.server.Operation.getOperation()
          no replacement 
java.rmi.server.Skeleton.getOperations() sample code for java.rmi.server.Skeleton.getOperations() definition code for java.rmi.server.Skeleton.getOperations()
          no replacement 
java.awt.ComponentOrientation.getOrientation(ResourceBundle) sample code for java.awt.ComponentOrientation.getOrientation(java.util.ResourceBundle) definition code for java.awt.ComponentOrientation.getOrientation(java.util.ResourceBundle)
          As of J2SE 1.4, use ComponentOrientation.getOrientation(java.util.Locale) sample code for java.awt.ComponentOrientation.getOrientation(java.util.Locale) definition code for java.awt.ComponentOrientation.getOrientation(java.util.Locale) . 
java.rmi.server.RemoteCall.getOutputStream() sample code for java.rmi.server.RemoteCall.getOutputStream() definition code for java.rmi.server.RemoteCall.getOutputStream()
          no replacement 
java.rmi.server.LogStream.getOutputStream() sample code for java.rmi.server.LogStream.getOutputStream() definition code for java.rmi.server.LogStream.getOutputStream()
          no replacement 
java.awt.Scrollbar.getPageIncrement() sample code for java.awt.Scrollbar.getPageIncrement() definition code for java.awt.Scrollbar.getPageIncrement()
          As of JDK version 1.1, replaced by getBlockIncrement(). 
java.security.Signature.getParameter(String) sample code for java.security.Signature.getParameter(java.lang.String) definition code for java.security.Signature.getParameter(java.lang.String)
            
java.awt.Component.getPeer() sample code for java.awt.Component.getPeer() definition code for java.awt.Component.getPeer()
          As of JDK version 1.1, programs should not directly manipulate peers; replaced by boolean isDisplayable(). 
java.awt.Font.getPeer() sample code for java.awt.Font.getPeer() definition code for java.awt.Font.getPeer()
          Font rendering is now platform independent. 
java.awt.MenuComponent.getPeer() sample code for java.awt.MenuComponent.getPeer() definition code for java.awt.MenuComponent.getPeer()
          As of JDK version 1.1, programs should not directly manipulate peers. 
java.rmi.server.RemoteCall.getResultStream(boolean) sample code for java.rmi.server.RemoteCall.getResultStream(boolean) definition code for java.rmi.server.RemoteCall.getResultStream(boolean)
          no replacement 
java.sql.Date.getSeconds() sample code for java.sql.Date.getSeconds() definition code for java.sql.Date.getSeconds()
            
java.util.Date.getSeconds() sample code for java.util.Date.getSeconds() definition code for java.util.Date.getSeconds()
          As of JDK version 1.1, replaced by Calendar.get(Calendar.SECOND). 
java.rmi.server.RMIClassLoader.getSecurityContext(ClassLoader) sample code for java.rmi.server.RMIClassLoader.getSecurityContext(java.lang.ClassLoader) definition code for java.rmi.server.RMIClassLoader.getSecurityContext(java.lang.ClassLoader)
          no replacement. As of the Java 2 platform v1.2, RMI no longer uses this method to obtain a class loader's security context. 
java.rmi.server.LoaderHandler.getSecurityContext(ClassLoader) sample code for java.rmi.server.LoaderHandler.getSecurityContext(java.lang.ClassLoader) definition code for java.rmi.server.LoaderHandler.getSecurityContext(java.lang.ClassLoader)
          no replacement 
javax.swing.JPasswordField.getText() sample code for javax.swing.JPasswordField.getText() definition code for javax.swing.JPasswordField.getText()
          As of Java 2 platform v1.2, replaced by getPassword. 
javax.swing.JPasswordField.getText(int, int) sample code for javax.swing.JPasswordField.getText(int, int) definition code for javax.swing.JPasswordField.getText(int, int)
          As of Java 2 platform v1.2, replaced by getPassword. 
javax.management.monitor.CounterMonitorMBean.getThreshold() sample code for javax.management.monitor.CounterMonitorMBean.getThreshold() definition code for javax.management.monitor.CounterMonitorMBean.getThreshold()
          As of JMX 1.2, replaced by CounterMonitorMBean.getThreshold(ObjectName) sample code for javax.management.monitor.CounterMonitorMBean.getThreshold(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitorMBean.getThreshold(javax.management.ObjectName)  
javax.management.monitor.CounterMonitor.getThreshold() sample code for javax.management.monitor.CounterMonitor.getThreshold() definition code for javax.management.monitor.CounterMonitor.getThreshold()
          As of JMX 1.2, replaced by CounterMonitor.getThreshold(ObjectName) sample code for javax.management.monitor.CounterMonitor.getThreshold(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getThreshold(javax.management.ObjectName)  
java.util.Date.getTimezoneOffset() sample code for java.util.Date.getTimezoneOffset() definition code for java.util.Date.getTimezoneOffset()
          As of JDK version 1.1, replaced by -(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000). 
java.net.MulticastSocket.getTTL() sample code for java.net.MulticastSocket.getTTL() definition code for java.net.MulticastSocket.getTTL()
          use the getTimeToLive method instead, which returns an int instead of a byte. 
java.net.DatagramSocketImpl.getTTL() sample code for java.net.DatagramSocketImpl.getTTL() definition code for java.net.DatagramSocketImpl.getTTL()
          use getTimeToLive instead. 
java.sql.ResultSet.getUnicodeStream(int) sample code for java.sql.ResultSet.getUnicodeStream(int) definition code for java.sql.ResultSet.getUnicodeStream(int)
          use getCharacterStream in place of getUnicodeStream 
java.sql.ResultSet.getUnicodeStream(String) sample code for java.sql.ResultSet.getUnicodeStream(java.lang.String) definition code for java.sql.ResultSet.getUnicodeStream(java.lang.String)
          use getCharacterStream instead 
javax.swing.ScrollPaneLayout.getViewportBorderBounds(JScrollPane) sample code for javax.swing.ScrollPaneLayout.getViewportBorderBounds(javax.swing.JScrollPane) definition code for javax.swing.ScrollPaneLayout.getViewportBorderBounds(javax.swing.JScrollPane)
          As of JDK version Swing1.1 replaced by JScrollPane.getViewportBorderBounds(). 
java.awt.Scrollbar.getVisible() sample code for java.awt.Scrollbar.getVisible() definition code for java.awt.Scrollbar.getVisible()
          As of JDK version 1.1, replaced by getVisibleAmount(). 
java.sql.Time.getYear() sample code for java.sql.Time.getYear() definition code for java.sql.Time.getYear()
            
java.util.Date.getYear() sample code for java.util.Date.getYear() definition code for java.util.Date.getYear()
          As of JDK version 1.1, replaced by Calendar.get(Calendar.YEAR) - 1900. 
java.awt.Component.gotFocus(Event, Object) sample code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object)
          As of JDK version 1.1, replaced by processFocusEvent(FocusEvent). 
java.awt.Component.handleEvent(Event) sample code for java.awt.Component.handleEvent(java.awt.Event) definition code for java.awt.Component.handleEvent(java.awt.Event)
          As of JDK version 1.1 replaced by processEvent(AWTEvent). 
java.awt.Component.hide() sample code for java.awt.Component.hide() definition code for java.awt.Component.hide()
          As of JDK version 1.1, replaced by setVisible(boolean). 
java.awt.Window.hide() sample code for java.awt.Window.hide() definition code for java.awt.Window.hide()
          As of JDK 5, replaced by Component.setVisible(boolean) sample code for java.awt.Component.setVisible(boolean) definition code for java.awt.Component.setVisible(boolean) . 
java.awt.Dialog.hide() sample code for java.awt.Dialog.hide() definition code for java.awt.Dialog.hide()
          As of JDK version 1.5, replaced by Component.setVisible(boolean) sample code for java.awt.Component.setVisible(boolean) definition code for java.awt.Component.setVisible(boolean) . 
java.lang.SecurityManager.inClass(String) sample code for java.lang.SecurityManager.inClass(java.lang.String) definition code for java.lang.SecurityManager.inClass(java.lang.String)
          This type of security checking is not recommended. It is recommended that the checkPermission call be used instead. 
java.lang.SecurityManager.inClassLoader() sample code for java.lang.SecurityManager.inClassLoader() definition code for java.lang.SecurityManager.inClassLoader()
          This type of security checking is not recommended. It is recommended that the checkPermission call be used instead. 
org.omg.CORBA.Any.insert_Principal(Principal) sample code for org.omg.CORBA.Any.insert_Principal(org.omg.CORBA.Principal) definition code for org.omg.CORBA.Any.insert_Principal(org.omg.CORBA.Principal)
          Deprecated by CORBA 2.2. 
javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane, HTMLDocument, int, Element, String, HTML.Tag, HTML.Tag) sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, javax.swing.text.Element, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, javax.swing.text.Element, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag)
          As of Java 2 platform v1.3, use insertAtBoundary 
java.awt.TextArea.insertText(String, int) sample code for java.awt.TextArea.insertText(java.lang.String, int) definition code for java.awt.TextArea.insertText(java.lang.String, int)
          As of JDK version 1.1, replaced by insert(String, int). 
java.awt.Container.insets() sample code for java.awt.Container.insets() definition code for java.awt.Container.insets()
          As of JDK version 1.1, replaced by getInsets(). 
java.awt.Component.inside(int, int) sample code for java.awt.Component.inside(int, int) definition code for java.awt.Component.inside(int, int)
          As of JDK version 1.1, replaced by contains(int, int). 
java.awt.Rectangle.inside(int, int) sample code for java.awt.Rectangle.inside(int, int) definition code for java.awt.Rectangle.inside(int, int)
          As of JDK version 1.1, replaced by contains(int, int). 
java.awt.Polygon.inside(int, int) sample code for java.awt.Polygon.inside(int, int) definition code for java.awt.Polygon.inside(int, int)
          As of JDK version 1.1, replaced by contains(int, int). 
java.rmi.server.RemoteRef.invoke(RemoteCall) sample code for java.rmi.server.RemoteRef.invoke(java.rmi.server.RemoteCall) definition code for java.rmi.server.RemoteRef.invoke(java.rmi.server.RemoteCall)
          1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (newCall, invoke, and done), a stub uses a single method, invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value. 
org.omg.CORBA.DynamicImplementation.invoke(ServerRequest) sample code for org.omg.CORBA.DynamicImplementation.invoke(org.omg.CORBA.ServerRequest) definition code for org.omg.CORBA.DynamicImplementation.invoke(org.omg.CORBA.ServerRequest)
          Deprecated by Portable Object Adapter 
javax.swing.JViewport.isBackingStoreEnabled() sample code for javax.swing.JViewport.isBackingStoreEnabled() definition code for javax.swing.JViewport.isBackingStoreEnabled()
          As of Java 2 platform v1.3, replaced by getScrollMode(). 
javax.swing.FocusManager.isFocusManagerEnabled() sample code for javax.swing.FocusManager.isFocusManagerEnabled() definition code for javax.swing.FocusManager.isFocusManagerEnabled()
          As of 1.4, replaced by KeyboardFocusManager.getDefaultFocusTraversalPolicy() 
java.awt.Component.isFocusTraversable() sample code for java.awt.Component.isFocusTraversable() definition code for java.awt.Component.isFocusTraversable()
          As of 1.4, replaced by isFocusable(). 
java.lang.Character.isJavaLetter(char) sample code for java.lang.Character.isJavaLetter(char) definition code for java.lang.Character.isJavaLetter(char)
          Replaced by isJavaIdentifierStart(char). 
java.lang.Character.isJavaLetterOrDigit(char) sample code for java.lang.Character.isJavaLetterOrDigit(char) definition code for java.lang.Character.isJavaLetterOrDigit(char)
          Replaced by isJavaIdentifierPart(char). 
javax.swing.JComponent.isManagingFocus() sample code for javax.swing.JComponent.isManagingFocus() definition code for javax.swing.JComponent.isManagingFocus()
          As of 1.4, replaced by Component.setFocusTraversalKeys(int, Set) and Container.setFocusCycleRoot(boolean). 
java.awt.List.isSelected(int) sample code for java.awt.List.isSelected(int) definition code for java.awt.List.isSelected(int)
          As of JDK version 1.1, replaced by isIndexSelected(int). 
java.lang.Character.isSpace(char) sample code for java.lang.Character.isSpace(char) definition code for java.lang.Character.isSpace(char)
          Replaced by isWhitespace(char). 
java.rmi.dgc.VMID.isUnique() sample code for java.rmi.dgc.VMID.isUnique() definition code for java.rmi.dgc.VMID.isUnique()
            
java.awt.Component.keyDown(Event, int) sample code for java.awt.Component.keyDown(java.awt.Event, int) definition code for java.awt.Component.keyDown(java.awt.Event, int)
          As of JDK version 1.1, replaced by processKeyEvent(KeyEvent). 
java.awt.Component.keyUp(Event, int) sample code for java.awt.Component.keyUp(java.awt.Event, int) definition code for java.awt.Component.keyUp(java.awt.Event, int)
          As of JDK version 1.1, replaced by processKeyEvent(KeyEvent). 
java.awt.Component.layout() sample code for java.awt.Component.layout() definition code for java.awt.Component.layout()
          As of JDK version 1.1, replaced by doLayout(). 
java.awt.Container.layout() sample code for java.awt.Container.layout() definition code for java.awt.Container.layout()
          As of JDK version 1.1, replaced by doLayout(). 
java.awt.ScrollPane.layout() sample code for java.awt.ScrollPane.layout() definition code for java.awt.ScrollPane.layout()
          As of JDK version 1.1, replaced by doLayout(). 
java.rmi.server.RMIClassLoader.loadClass(String) sample code for java.rmi.server.RMIClassLoader.loadClass(java.lang.String) definition code for java.rmi.server.RMIClassLoader.loadClass(java.lang.String)
          replaced by loadClass(String,String) method 
java.rmi.server.LoaderHandler.loadClass(String) sample code for java.rmi.server.LoaderHandler.loadClass(java.lang.String) definition code for java.rmi.server.LoaderHandler.loadClass(java.lang.String)
          no replacement 
java.rmi.server.LoaderHandler.loadClass(URL, String) sample code for java.rmi.server.LoaderHandler.loadClass(java.net.URL, java.lang.String) definition code for java.rmi.server.LoaderHandler.loadClass(java.net.URL, java.lang.String)
          no replacement 
java.awt.Component.locate(int, int) sample code for java.awt.Component.locate(int, int) definition code for java.awt.Component.locate(int, int)
          As of JDK version 1.1, replaced by getComponentAt(int, int). 
java.awt.Container.locate(int, int) sample code for java.awt.Container.locate(int, int) definition code for java.awt.Container.locate(int, int)
          As of JDK version 1.1, replaced by getComponentAt(int, int). 
java.awt.Component.location() sample code for java.awt.Component.location() definition code for java.awt.Component.location()
          As of JDK version 1.1, replaced by getLocation(). 
java.rmi.server.LogStream.log(String) sample code for java.rmi.server.LogStream.log(java.lang.String) definition code for java.rmi.server.LogStream.log(java.lang.String)
          no replacement 
java.awt.Component.lostFocus(Event, Object) sample code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object)
          As of JDK version 1.1, replaced by processFocusEvent(FocusEvent). 
java.awt.Component.minimumSize() sample code for java.awt.Component.minimumSize() definition code for java.awt.Component.minimumSize()
          As of JDK version 1.1, replaced by getMinimumSize(). 
java.awt.Container.minimumSize() sample code for java.awt.Container.minimumSize() definition code for java.awt.Container.minimumSize()
          As of JDK version 1.1, replaced by getMinimumSize(). 
java.awt.TextField.minimumSize() sample code for java.awt.TextField.minimumSize() definition code for java.awt.TextField.minimumSize()
          As of JDK version 1.1, replaced by getMinimumSize(). 
java.awt.TextArea.minimumSize() sample code for java.awt.TextArea.minimumSize() definition code for java.awt.TextArea.minimumSize()
          As of JDK version 1.1, replaced by getMinimumSize(). 
java.awt.List.minimumSize() sample code for java.awt.List.minimumSize() definition code for java.awt.List.minimumSize()
          As of JDK version 1.1, replaced by getMinimumSize(). 
java.awt.TextField.minimumSize(int) sample code for java.awt.TextField.minimumSize(int) definition code for java.awt.TextField.minimumSize(int)
          As of JDK version 1.1, replaced by getMinimumSize(int). 
java.awt.List.minimumSize(int) sample code for java.awt.List.minimumSize(int) definition code for java.awt.List.minimumSize(int)
          As of JDK version 1.1, replaced by getMinimumSize(int). 
java.awt.TextArea.minimumSize(int, int) sample code for java.awt.TextArea.minimumSize(int, int) definition code for java.awt.TextArea.minimumSize(int, int)
          As of JDK version 1.1, replaced by getMinimumSize(int, int). 
javax.swing.text.View.modelToView(int, Shape) sample code for javax.swing.text.View.modelToView(int, java.awt.Shape) definition code for javax.swing.text.View.modelToView(int, java.awt.Shape)
            
java.awt.Component.mouseDown(Event, int, int) sample code for java.awt.Component.mouseDown(java.awt.Event, int, int) definition code for java.awt.Component.mouseDown(java.awt.Event, int, int)
          As of JDK version 1.1, replaced by processMouseEvent(MouseEvent). 
java.awt.Component.mouseDrag(Event, int, int) sample code for java.awt.Component.mouseDrag(java.awt.Event, int, int) definition code for java.awt.Component.mouseDrag(java.awt.Event, int, int)
          As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent). 
java.awt.Component.mouseEnter(Event, int, int) sample code for java.awt.Component.mouseEnter(java.awt.Event, int, int) definition code for java.awt.Component.mouseEnter(java.awt.Event, int, int)
          As of JDK version 1.1, replaced by processMouseEvent(MouseEvent). 
java.awt.Component.mouseExit(Event, int, int) sample code for java.awt.Component.mouseExit(java.awt.Event, int, int) definition code for java.awt.Component.mouseExit(java.awt.Event, int, int)
          As of JDK version 1.1, replaced by processMouseEvent(MouseEvent). 
java.awt.Component.mouseMove(Event, int, int) sample code for java.awt.Component.mouseMove(java.awt.Event, int, int) definition code for java.awt.Component.mouseMove(java.awt.Event, int, int)
          As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent). 
java.awt.Component.mouseUp(Event, int, int) sample code for java.awt.Component.mouseUp(java.awt.Event, int, int) definition code for java.awt.Component.mouseUp(java.awt.Event, int, int)
          As of JDK version 1.1, replaced by processMouseEvent(MouseEvent). 
java.awt.Component.move(int, int) sample code for java.awt.Component.move(int, int) definition code for java.awt.Component.move(int, int)
          As of JDK version 1.1, replaced by setLocation(int, int). 
java.awt.Rectangle.move(int, int) sample code for java.awt.Rectangle.move(int, int) definition code for java.awt.Rectangle.move(int, int)
          As of JDK version 1.1, replaced by setLocation(int, int). 
org.omg.CORBA.Principal.name() sample code for org.omg.CORBA.Principal.name() definition code for org.omg.CORBA.Principal.name()
          Deprecated by CORBA 2.2. 
org.omg.CORBA.Principal.name(byte[]) sample code for org.omg.CORBA.Principal.name(byte[]) definition code for org.omg.CORBA.Principal.name(byte[])
          Deprecated by CORBA 2.2. 
java.rmi.server.RemoteRef.newCall(RemoteObject, Operation[], int, long) sample code for java.rmi.server.RemoteRef.newCall(java.rmi.server.RemoteObject, java.rmi.server.Operation[], int, long) definition code for java.rmi.server.RemoteRef.newCall(java.rmi.server.RemoteObject, java.rmi.server.Operation[], int, long)
          1.2 style stubs no longer use this method. Instead of using a sequence of method calls on the stub's the remote reference (newCall, invoke, and done), a stub uses a single method, invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value. 
java.awt.Component.nextFocus() sample code for java.awt.Component.nextFocus() definition code for java.awt.Component.nextFocus()
          As of JDK version 1.1, replaced by transferFocus(). 
java.awt.datatransfer.DataFlavor.normalizeMimeType(String) sample code for java.awt.datatransfer.DataFlavor.normalizeMimeType(java.lang.String) definition code for java.awt.datatransfer.DataFlavor.normalizeMimeType(java.lang.String)
            
java.awt.datatransfer.DataFlavor.normalizeMimeTypeParameter(String, String) sample code for java.awt.datatransfer.DataFlavor.normalizeMimeTypeParameter(java.lang.String, java.lang.String) definition code for java.awt.datatransfer.DataFlavor.normalizeMimeTypeParameter(java.lang.String, java.lang.String)
            
org.omg.CORBA.ServerRequest.op_name() sample code for org.omg.CORBA.ServerRequest.op_name() definition code for org.omg.CORBA.ServerRequest.op_name()
          use operation() 
org.omg.CORBA.ServerRequest.params(NVList) sample code for org.omg.CORBA.ServerRequest.params(org.omg.CORBA.NVList) definition code for org.omg.CORBA.ServerRequest.params(org.omg.CORBA.NVList)
          use the method arguments 
java.util.Date.parse(String) sample code for java.util.Date.parse(java.lang.String) definition code for java.util.Date.parse(java.lang.String)
          As of JDK version 1.1, replaced by DateFormat.parse(String s). 
java.rmi.server.LogStream.parseLevel(String) sample code for java.rmi.server.LogStream.parseLevel(java.lang.String) definition code for java.rmi.server.LogStream.parseLevel(java.lang.String)
          no replacement 
java.awt.MenuContainer.postEvent(Event) sample code for java.awt.MenuContainer.postEvent(java.awt.Event) definition code for java.awt.MenuContainer.postEvent(java.awt.Event)
          As of JDK version 1.1 replaced by dispatchEvent(AWTEvent). 
java.awt.Component.postEvent(Event) sample code for java.awt.Component.postEvent(java.awt.Event) definition code for java.awt.Component.postEvent(java.awt.Event)
          As of JDK version 1.1, replaced by dispatchEvent(AWTEvent). 
java.awt.Window.postEvent(Event) sample code for java.awt.Window.postEvent(java.awt.Event) definition code for java.awt.Window.postEvent(java.awt.Event)
          As of JDK version 1.1 replaced by dispatchEvent(AWTEvent). 
java.awt.MenuComponent.postEvent(Event) sample code for java.awt.MenuComponent.postEvent(java.awt.Event) definition code for java.awt.MenuComponent.postEvent(java.awt.Event)
          As of JDK version 1.1, replaced by dispatchEvent sample code for java.awt.MenuComponent.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.MenuComponent.dispatchEvent(java.awt.AWTEvent) . 
java.awt.image.renderable.RenderContext.preConcetenateTransform(AffineTransform) sample code for java.awt.image.renderable.RenderContext.preConcetenateTransform(java.awt.geom.AffineTransform) definition code for java.awt.image.renderable.RenderContext.preConcetenateTransform(java.awt.geom.AffineTransform)
          replaced by preConcatenateTransform(AffineTransform). 
java.awt.Component.preferredSize() sample code for java.awt.Component.preferredSize() definition code for java.awt.Component.preferredSize()
          As of JDK version 1.1, replaced by getPreferredSize(). 
java.awt.Container.preferredSize() sample code for java.awt.Container.preferredSize() definition code for java.awt.Container.preferredSize()
          As of JDK version 1.1, replaced by getPreferredSize(). 
java.awt.TextField.preferredSize() sample code for java.awt.TextField.preferredSize() definition code for java.awt.TextField.preferredSize()
          As of JDK version 1.1, replaced by getPreferredSize(). 
java.awt.TextArea.preferredSize() sample code for java.awt.TextArea.preferredSize() definition code for java.awt.TextArea.preferredSize()
          As of JDK version 1.1, replaced by getPreferredSize(). 
java.awt.List.preferredSize() sample code for java.awt.List.preferredSize() definition code for java.awt.List.preferredSize()
          As of JDK version 1.1, replaced by getPreferredSize(). 
java.awt.TextField.preferredSize(int) sample code for java.awt.TextField.preferredSize(int) definition code for java.awt.TextField.preferredSize(int)
          As of JDK version 1.1, replaced by getPreferredSize(int). 
java.awt.List.preferredSize(int) sample code for java.awt.List.preferredSize(int) definition code for java.awt.List.preferredSize(int)
          As of JDK version 1.1, replaced by getPreferredSize(int). 
java.awt.TextArea.preferredSize(int, int) sample code for java.awt.TextArea.preferredSize(int, int) definition code for java.awt.TextArea.preferredSize(int, int)
          As of JDK version 1.1, replaced by getPreferredSize(int, int). 
org.omg.CORBA.portable.InputStream.read_Principal() sample code for org.omg.CORBA.portable.InputStream.read_Principal() definition code for org.omg.CORBA.portable.InputStream.read_Principal()
          Deprecated by CORBA 2.2. 
java.io.DataInputStream.readLine() sample code for java.io.DataInputStream.readLine() definition code for java.io.DataInputStream.readLine()
          This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form:
     DataInputStream d = new DataInputStream(in);
 
with:
     BufferedReader d
          = new BufferedReader(new InputStreamReader(in));
 
 
java.io.ObjectInputStream.readLine() sample code for java.io.ObjectInputStream.readLine() definition code for java.io.ObjectInputStream.readLine()
          This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives. 
java.rmi.registry.RegistryHandler.registryImpl(int) sample code for java.rmi.registry.RegistryHandler.registryImpl(int) definition code for java.rmi.registry.RegistryHandler.registryImpl(int)
          no replacement. As of the Java 2 platform v1.2, RMI no longer uses the RegistryHandler to obtain the registry's implementation. 
java.rmi.registry.RegistryHandler.registryStub(String, int) sample code for java.rmi.registry.RegistryHandler.registryStub(java.lang.String, int) definition code for java.rmi.registry.RegistryHandler.registryStub(java.lang.String, int)
          no replacement. As of the Java 2 platform v1.2, RMI no longer uses the RegistryHandler to obtain the registry's stub. 
java.rmi.server.RemoteCall.releaseInputStream() sample code for java.rmi.server.RemoteCall.releaseInputStream() definition code for java.rmi.server.RemoteCall.releaseInputStream()
          no replacement 
java.rmi.server.RemoteCall.releaseOutputStream() sample code for java.rmi.server.RemoteCall.releaseOutputStream() definition code for java.rmi.server.RemoteCall.releaseOutputStream()
          no replacement 
javax.swing.plaf.metal.MetalComboBoxUI.removeListeners() sample code for javax.swing.plaf.metal.MetalComboBoxUI.removeListeners() definition code for javax.swing.plaf.metal.MetalComboBoxUI.removeListeners()
          As of Java 2 platform v1.4. 
java.awt.TextArea.replaceText(String, int, int) sample code for java.awt.TextArea.replaceText(java.lang.String, int, int) definition code for java.awt.TextArea.replaceText(java.lang.String, int, int)
          As of JDK version 1.1, replaced by replaceRange(String, int, int). 
javax.swing.JComponent.requestDefaultFocus() sample code for javax.swing.JComponent.requestDefaultFocus() definition code for javax.swing.JComponent.requestDefaultFocus()
          As of 1.4, replaced by FocusTraversalPolicy.getDefaultComponent(Container).requestFocus() 
java.awt.Component.reshape(int, int, int, int) sample code for java.awt.Component.reshape(int, int, int, int) definition code for java.awt.Component.reshape(int, int, int, int)
          As of JDK version 1.1, replaced by setBounds(int, int, int, int). 
java.awt.Rectangle.reshape(int, int, int, int) sample code for java.awt.Rectangle.reshape(int, int, int, int) definition code for java.awt.Rectangle.reshape(int, int, int, int)
          As of JDK version 1.1, replaced by setBounds(int, int, int, int). 
javax.swing.JComponent.reshape(int, int, int, int) sample code for javax.swing.JComponent.reshape(int, int, int, int) definition code for javax.swing.JComponent.reshape(int, int, int, int)
          As of JDK 5, replaced by Component.setBounds(int, int, int, int).

Moves and resizes this component. 

java.awt.Component.resize(Dimension) sample code for java.awt.Component.resize(java.awt.Dimension) definition code for java.awt.Component.resize(java.awt.Dimension)
          As of JDK version 1.1, replaced by setSize(Dimension). 
java.awt.Component.resize(int, int) sample code for java.awt.Component.resize(int, int) definition code for java.awt.Component.resize(int, int)
          As of JDK version 1.1, replaced by setSize(int, int). 
java.awt.Rectangle.resize(int, int) sample code for java.awt.Rectangle.resize(int, int) definition code for java.awt.Rectangle.resize(int, int)
          As of JDK version 1.1, replaced by setSize(int, int). 
org.omg.CORBA.ServerRequest.result(Any) sample code for org.omg.CORBA.ServerRequest.result(org.omg.CORBA.Any) definition code for org.omg.CORBA.ServerRequest.result(org.omg.CORBA.Any)
          use the method set_result 
java.lang.Thread.resume() sample code for java.lang.Thread.resume() definition code for java.lang.Thread.resume()
          This method exists solely for use with Thread.suspend() sample code for java.lang.Thread.suspend() definition code for java.lang.Thread.suspend() , which has been deprecated because it is deadlock-prone. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. 
java.lang.ThreadGroup.resume() sample code for java.lang.ThreadGroup.resume() definition code for java.lang.ThreadGroup.resume()
          This method is used solely in conjunction with Thread.suspend and ThreadGroup.suspend, both of which have been deprecated, as they are inherently deadlock-prone. See Thread.suspend() sample code for java.lang.Thread.suspend() definition code for java.lang.Thread.suspend() for details. 
java.lang.System.runFinalizersOnExit(boolean) sample code for java.lang.System.runFinalizersOnExit(boolean) definition code for java.lang.System.runFinalizersOnExit(boolean)
          This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock. 
java.lang.Runtime.runFinalizersOnExit(boolean) sample code for java.lang.Runtime.runFinalizersOnExit(boolean) definition code for java.lang.Runtime.runFinalizersOnExit(boolean)
          This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock. 
java.util.Properties.save(OutputStream, String) sample code for java.util.Properties.save(java.io.OutputStream, java.lang.String) definition code for java.util.Properties.save(java.io.OutputStream, java.lang.String)
          This method does not throw an IOException if an I/O error occurs while saving the property list. The preferred way to save a properties list is via the store(OutputStream out, String comments) method or the storeToXML(OutputStream os, String comment) method. 
java.net.MulticastSocket.send(DatagramPacket, byte) sample code for java.net.MulticastSocket.send(java.net.DatagramPacket, byte) definition code for java.net.MulticastSocket.send(java.net.DatagramPacket, byte)
          Use the following code or its equivalent instead: ...... int ttl = mcastSocket.getTimeToLive(); mcastSocket.setTimeToLive(newttl); mcastSocket.send(p); mcastSocket.setTimeToLive(ttl); ...... 
javax.swing.JViewport.setBackingStoreEnabled(boolean) sample code for javax.swing.JViewport.setBackingStoreEnabled(boolean) definition code for javax.swing.JViewport.setBackingStoreEnabled(boolean)
          As of Java 2 platform v1.3, replaced by setScrollMode(). 
java.awt.CheckboxGroup.setCurrent(Checkbox) sample code for java.awt.CheckboxGroup.setCurrent(java.awt.Checkbox) definition code for java.awt.CheckboxGroup.setCurrent(java.awt.Checkbox)
          As of JDK version 1.1, replaced by setSelectedCheckbox(Checkbox). 
java.awt.Frame.setCursor(int) sample code for java.awt.Frame.setCursor(int) definition code for java.awt.Frame.setCursor(int)
          As of JDK version 1.1, replaced by Component.setCursor(Cursor). 
java.sql.Time.setDate(int) sample code for java.sql.Time.setDate(int) definition code for java.sql.Time.setDate(int)
            
java.util.Date.setDate(int) sample code for java.util.Date.setDate(int) definition code for java.util.Date.setDate(int)
          As of JDK version 1.1, replaced by Calendar.set(Calendar.DAY_OF_MONTH, int date). 
java.net.URLConnection.setDefaultRequestProperty(String, String) sample code for java.net.URLConnection.setDefaultRequestProperty(java.lang.String, java.lang.String) definition code for java.net.URLConnection.setDefaultRequestProperty(java.lang.String, java.lang.String)
          The instance specific setRequestProperty method should be used after an appropriate instance of URLConnection is obtained. Invoking this method will have no effect. 
java.rmi.server.LogStream.setDefaultStream(PrintStream) sample code for java.rmi.server.LogStream.setDefaultStream(java.io.PrintStream) definition code for java.rmi.server.LogStream.setDefaultStream(java.io.PrintStream)
          no replacement 
java.awt.TextField.setEchoCharacter(char) sample code for java.awt.TextField.setEchoCharacter(char) definition code for java.awt.TextField.setEchoCharacter(char)
          As of JDK version 1.1, replaced by setEchoChar(char). 
java.sql.Date.setHours(int) sample code for java.sql.Date.setHours(int) definition code for java.sql.Date.setHours(int)
            
java.util.Date.setHours(int) sample code for java.util.Date.setHours(int) definition code for java.util.Date.setHours(int)
          As of JDK version 1.1, replaced by Calendar.set(Calendar.HOUR_OF_DAY, int hours). 
javax.swing.AbstractButton.setLabel(String) sample code for javax.swing.AbstractButton.setLabel(java.lang.String) definition code for javax.swing.AbstractButton.setLabel(java.lang.String)
          - Replaced by setText(text) 
java.awt.Scrollbar.setLineIncrement(int) sample code for java.awt.Scrollbar.setLineIncrement(int) definition code for java.awt.Scrollbar.setLineIncrement(int)
          As of JDK version 1.1, replaced by setUnitIncrement(int). 
java.sql.DriverManager.setLogStream(PrintStream) sample code for java.sql.DriverManager.setLogStream(java.io.PrintStream) definition code for java.sql.DriverManager.setLogStream(java.io.PrintStream)
            
javax.management.ValueExp.setMBeanServer(MBeanServer) sample code for javax.management.ValueExp.setMBeanServer(javax.management.MBeanServer) definition code for javax.management.ValueExp.setMBeanServer(javax.management.MBeanServer)
          This method is not needed because a ValueExp can access the MBean server in which it is being evaluated by using QueryEval.getMBeanServer() sample code for javax.management.QueryEval.getMBeanServer() definition code for javax.management.QueryEval.getMBeanServer() . 
javax.swing.JRootPane.setMenuBar(JMenuBar) sample code for javax.swing.JRootPane.setMenuBar(javax.swing.JMenuBar) definition code for javax.swing.JRootPane.setMenuBar(javax.swing.JMenuBar)
          As of Swing version 1.0.3 replaced by setJMenuBar(JMenuBar menu). 
javax.swing.JInternalFrame.setMenuBar(JMenuBar) sample code for javax.swing.JInternalFrame.setMenuBar(javax.swing.JMenuBar) definition code for javax.swing.JInternalFrame.setMenuBar(javax.swing.JMenuBar)
          As of Swing version 1.0.3 replaced by setJMenuBar(JMenuBar m). 
java.sql.Date.setMinutes(int) sample code for java.sql.Date.setMinutes(int) definition code for java.sql.Date.setMinutes(int)
            
java.util.Date.setMinutes(int) sample code for java.util.Date.setMinutes(int) definition code for java.util.Date.setMinutes(int)
          As of JDK version 1.1, replaced by Calendar.set(Calendar.MINUTE, int minutes). 
java.awt.event.KeyEvent.setModifiers(int) sample code for java.awt.event.KeyEvent.setModifiers(int) definition code for java.awt.event.KeyEvent.setModifiers(int)
          as of JDK1.1.4 
java.sql.Time.setMonth(int) sample code for java.sql.Time.setMonth(int) definition code for java.sql.Time.setMonth(int)
            
java.util.Date.setMonth(int) sample code for java.util.Date.setMonth(int) definition code for java.util.Date.setMonth(int)
          As of JDK version 1.1, replaced by Calendar.set(Calendar.MONTH, int month). 
java.awt.List.setMultipleSelections(boolean) sample code for java.awt.List.setMultipleSelections(boolean) definition code for java.awt.List.setMultipleSelections(boolean)
          As of JDK version 1.1, replaced by setMultipleMode(boolean). 
javax.swing.JComponent.setNextFocusableComponent(Component) sample code for javax.swing.JComponent.setNextFocusableComponent(java.awt.Component) definition code for javax.swing.JComponent.setNextFocusableComponent(java.awt.Component)
          As of 1.4, replaced by FocusTraversalPolicy 
javax.management.monitor.MonitorMBean.setObservedObject(ObjectName) sample code for javax.management.monitor.MonitorMBean.setObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.MonitorMBean.setObservedObject(javax.management.ObjectName)
          As of JMX 1.2, replaced by MonitorMBean.addObservedObject(javax.management.ObjectName) sample code for javax.management.monitor.MonitorMBean.addObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.MonitorMBean.addObservedObject(javax.management.ObjectName)  
javax.management.monitor.Monitor.setObservedObject(ObjectName) sample code for javax.management.monitor.Monitor.setObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.Monitor.setObservedObject(javax.management.ObjectName)
          As of JMX 1.2, replaced by Monitor.addObservedObject(javax.management.ObjectName) sample code for javax.management.monitor.Monitor.addObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.Monitor.addObservedObject(javax.management.ObjectName)  
java.rmi.server.LogStream.setOutputStream(OutputStream) sample code for java.rmi.server.LogStream.setOutputStream(java.io.OutputStream) definition code for java.rmi.server.LogStream.setOutputStream(java.io.OutputStream)
          no replacement 
java.awt.Scrollbar.setPageIncrement(int) sample code for java.awt.Scrollbar.setPageIncrement(int) definition code for java.awt.Scrollbar.setPageIncrement(int)
          As of JDK version 1.1, replaced by setBlockIncrement(). 
java.security.Signature.setParameter(String, Object) sample code for java.security.Signature.setParameter(java.lang.String, java.lang.Object) definition code for java.security.Signature.setParameter(java.lang.String, java.lang.Object)
          Use setParameter sample code for java.security.Signature.setParameter(java.security.spec.AlgorithmParameterSpec) definition code for java.security.Signature.setParameter(java.security.spec.AlgorithmParameterSpec) . 
java.rmi.server.RemoteStub.setRef(RemoteStub, RemoteRef) sample code for java.rmi.server.RemoteStub.setRef(java.rmi.server.RemoteStub, java.rmi.server.RemoteRef) definition code for java.rmi.server.RemoteStub.setRef(java.rmi.server.RemoteStub, java.rmi.server.RemoteRef)
          no replacement. The setRef method is not needed since RemoteStubs can be created with the RemoteStub(RemoteRef) constructor. 
java.sql.Date.setSeconds(int) sample code for java.sql.Date.setSeconds(int) definition code for java.sql.Date.setSeconds(int)
            
java.util.Date.setSeconds(int) sample code for java.util.Date.setSeconds(int) definition code for java.util.Date.setSeconds(int)
          As of JDK version 1.1, replaced by Calendar.set(Calendar.SECOND, int seconds). 
javax.management.monitor.CounterMonitorMBean.setThreshold(Number) sample code for javax.management.monitor.CounterMonitorMBean.setThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitorMBean.setThreshold(java.lang.Number)
          As of JMX 1.2, replaced by CounterMonitorMBean.setInitThreshold(java.lang.Number) sample code for javax.management.monitor.CounterMonitorMBean.setInitThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitorMBean.setInitThreshold(java.lang.Number)  
javax.management.monitor.CounterMonitor.setThreshold(Number) sample code for javax.management.monitor.CounterMonitor.setThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setThreshold(java.lang.Number)
          As of JMX 1.2, replaced by CounterMonitor.setInitThreshold(java.lang.Number) sample code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number)  
java.net.MulticastSocket.setTTL(byte) sample code for java.net.MulticastSocket.setTTL(byte) definition code for java.net.MulticastSocket.setTTL(byte)
          use the setTimeToLive method instead, which uses int instead of byte as the type for ttl. 
java.net.DatagramSocketImpl.setTTL(byte) sample code for java.net.DatagramSocketImpl.setTTL(byte) definition code for java.net.DatagramSocketImpl.setTTL(byte)
          use setTimeToLive instead. 
java.sql.PreparedStatement.setUnicodeStream(int, InputStream, int) sample code for java.sql.PreparedStatement.setUnicodeStream(int, java.io.InputStream, int) definition code for java.sql.PreparedStatement.setUnicodeStream(int, java.io.InputStream, int)
            
javax.sql.rowset.BaseRowSet.setUnicodeStream(int, InputStream, int) sample code for javax.sql.rowset.BaseRowSet.setUnicodeStream(int, java.io.InputStream, int) definition code for javax.sql.rowset.BaseRowSet.setUnicodeStream(int, java.io.InputStream, int)
          getCharacterStream should be used in its place 
java.net.URLStreamHandler.setURL(URL, String, String, int, String, String) sample code for java.net.URLStreamHandler.setURL(java.net.URL, java.lang.String, java.lang.String, int, java.lang.String, java.lang.String) definition code for java.net.URLStreamHandler.setURL(java.net.URL, java.lang.String, java.lang.String, int, java.lang.String, java.lang.String)
          Use setURL(URL, String, String, int, String, String, String, String); 
java.sql.Time.setYear(int) sample code for java.sql.Time.setYear(int) definition code for java.sql.Time.setYear(int)
            
java.util.Date.setYear(int) sample code for java.util.Date.setYear(int) definition code for java.util.Date.setYear(int)
          As of JDK version 1.1, replaced by Calendar.set(Calendar.YEAR, year + 1900). 
java.awt.Component.show() sample code for java.awt.Component.show() definition code for java.awt.Component.show()
          As of JDK version 1.1, replaced by setVisible(boolean). 
java.awt.Window.show() sample code for java.awt.Window.show() definition code for java.awt.Window.show()
          As of JDK 5, replaced by Component.setVisible(boolean) sample code for java.awt.Component.setVisible(boolean) definition code for java.awt.Component.setVisible(boolean) . 
java.awt.Dialog.show() sample code for java.awt.Dialog.show() definition code for java.awt.Dialog.show()
          As of JDK version 1.5, replaced by Component.setVisible(boolean) sample code for java.awt.Component.setVisible(boolean) definition code for java.awt.Component.setVisible(boolean) . 
java.awt.Component.show(boolean) sample code for java.awt.Component.show(boolean) definition code for java.awt.Component.show(boolean)
          As of JDK version 1.1, replaced by setVisible(boolean). 
java.awt.Component.size() sample code for java.awt.Component.size() definition code for java.awt.Component.size()
          As of JDK version 1.1, replaced by getSize(). 
javax.swing.JTable.sizeColumnsToFit(boolean) sample code for javax.swing.JTable.sizeColumnsToFit(boolean) definition code for javax.swing.JTable.sizeColumnsToFit(boolean)
          As of Swing version 1.0.3, replaced by doLayout(). 
java.lang.Thread.stop() sample code for java.lang.Thread.stop() definition code for java.lang.Thread.stop()
          This method is inherently unsafe. Stopping a thread with Thread.stop causes it to unlock all of the monitors that it has locked (as a natural consequence of the unchecked ThreadDeath exception propagating up the stack). If any of the objects previously protected by these monitors were in an inconsistent state, the damaged objects become visible to other threads, potentially resulting in arbitrary behavior. Many uses of stop should be replaced by code that simply modifies some variable to indicate that the target thread should stop running. The target thread should check this variable regularly, and return from its run method in an orderly fashion if the variable indicates that it is to stop running. If the target thread waits for long periods (on a condition variable, for example), the interrupt method should be used to interrupt the wait. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. 
java.lang.ThreadGroup.stop() sample code for java.lang.ThreadGroup.stop() definition code for java.lang.ThreadGroup.stop()
          This method is inherently unsafe. See Thread.stop() sample code for java.lang.Thread.stop() definition code for java.lang.Thread.stop() for details. 
java.lang.Thread.stop(Throwable) sample code for java.lang.Thread.stop(java.lang.Throwable) definition code for java.lang.Thread.stop(java.lang.Throwable)
          This method is inherently unsafe. See Thread.stop() sample code for java.lang.Thread.stop() definition code for java.lang.Thread.stop() for details. An additional danger of this method is that it may be used to generate exceptions that the target thread is unprepared to handle (including checked exceptions that the thread could not possibly throw, were it not for this method). For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. 
java.lang.Thread.suspend() sample code for java.lang.Thread.suspend() definition code for java.lang.Thread.suspend()
          This method has been deprecated, as it is inherently deadlock-prone. If the target thread holds a lock on the monitor protecting a critical system resource when it is suspended, no thread can access this resource until the target thread is resumed. If the thread that would resume the target thread attempts to lock this monitor prior to calling resume, deadlock results. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. 
java.lang.ThreadGroup.suspend() sample code for java.lang.ThreadGroup.suspend() definition code for java.lang.ThreadGroup.suspend()
          This method is inherently deadlock-prone. See Thread.suspend() sample code for java.lang.Thread.suspend() definition code for java.lang.Thread.suspend() for details. 
java.util.Date.toGMTString() sample code for java.util.Date.toGMTString() definition code for java.util.Date.toGMTString()
          As of JDK version 1.1, replaced by DateFormat.format(Date date), using a GMT TimeZone. 
java.util.Date.toLocaleString() sample code for java.util.Date.toLocaleString() definition code for java.util.Date.toLocaleString()
          As of JDK version 1.1, replaced by DateFormat.format(Date date). 
java.rmi.server.Operation.toString() sample code for java.rmi.server.Operation.toString() definition code for java.rmi.server.Operation.toString()
          no replacement 
java.rmi.server.LogStream.toString() sample code for java.rmi.server.LogStream.toString() definition code for java.rmi.server.LogStream.toString()
          no replacement 
java.io.ByteArrayOutputStream.toString(int) sample code for java.io.ByteArrayOutputStream.toString(int) definition code for java.io.ByteArrayOutputStream.toString(int)
          This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the toString(String enc) method, which takes an encoding-name argument, or the toString() method, which uses the platform's default character encoding. 
java.util.Date.UTC(int, int, int, int, int, int) sample code for java.util.Date.UTC(int, int, int, int, int, int) definition code for java.util.Date.UTC(int, int, int, int, int, int)
          As of JDK version 1.1, replaced by Calendar.set(year + 1900, month, date, hrs, min, sec) or GregorianCalendar(year + 1900, month, date, hrs, min, sec), using a UTC TimeZone, followed by Calendar.getTime().getTime(). 
javax.swing.text.View.viewToModel(float, float, Shape) sample code for javax.swing.text.View.viewToModel(float, float, java.awt.Shape) definition code for javax.swing.text.View.viewToModel(float, float, java.awt.Shape)
            
org.omg.CORBA.portable.OutputStream.write_Principal(Principal) sample code for org.omg.CORBA.portable.OutputStream.write_Principal(org.omg.CORBA.Principal) definition code for org.omg.CORBA.portable.OutputStream.write_Principal(org.omg.CORBA.Principal)
          Deprecated by CORBA 2.2. 
java.rmi.server.LogStream.write(byte[], int, int) sample code for java.rmi.server.LogStream.write(byte[], int, int) definition code for java.rmi.server.LogStream.write(byte[], int, int)
          no replacement 
java.rmi.server.LogStream.write(int) sample code for java.rmi.server.LogStream.write(int) definition code for java.rmi.server.LogStream.write(int)
          no replacement 
java.io.ObjectOutputStream.PutField.write(ObjectOutput) sample code for java.io.ObjectOutputStream.PutField.write(java.io.ObjectOutput) definition code for java.io.ObjectOutputStream.PutField.write(java.io.ObjectOutput)
          This method does not write the values contained by this PutField object in a proper format, and may result in corruption of the serialization stream. The correct way to write PutField data is by calling the ObjectOutputStream.writeFields() sample code for java.io.ObjectOutputStream.writeFields() definition code for java.io.ObjectOutputStream.writeFields() method. 
 

Deprecated Constructors
javax.management.AttributeValueExp() sample code for javax.management.AttributeValueExp.AttributeValueExp() definition code for javax.management.AttributeValueExp.AttributeValueExp()
          An instance created with this constructor cannot be used in a query. 
java.sql.Date(int, int, int) sample code for java.sql.Date.Date(int, int, int) definition code for java.sql.Date.Date(int, int, int)
          instead use the constructor Date(long date) 
java.util.Date(int, int, int) sample code for java.util.Date.Date(int, int, int) definition code for java.util.Date.Date(int, int, int)
          As of JDK version 1.1, replaced by Calendar.set(year + 1900, month, date) or GregorianCalendar(year + 1900, month, date). 
java.util.Date(int, int, int, int, int) sample code for java.util.Date.Date(int, int, int, int, int) definition code for java.util.Date.Date(int, int, int, int, int)
          As of JDK version 1.1, replaced by Calendar.set(year + 1900, month, date, hrs, min) or GregorianCalendar(year + 1900, month, date, hrs, min). 
java.util.Date(int, int, int, int, int, int) sample code for java.util.Date.Date(int, int, int, int, int, int) definition code for java.util.Date.Date(int, int, int, int, int, int)
          As of JDK version 1.1, replaced by Calendar.set(year + 1900, month, date, hrs, min, sec) or GregorianCalendar(year + 1900, month, date, hrs, min, sec). 
java.util.Date(String) sample code for java.util.Date.Date(java.lang.String) definition code for java.util.Date.Date(java.lang.String)
          As of JDK version 1.1, replaced by DateFormat.parse(String s). 
java.awt.event.KeyEvent(Component, int, long, int, int) sample code for java.awt.event.KeyEvent.KeyEvent(java.awt.Component, int, long, int, int) definition code for java.awt.event.KeyEvent.KeyEvent(java.awt.Component, int, long, int, int)
          as of JDK1.1 
java.rmi.server.Operation(String) sample code for java.rmi.server.Operation.Operation(java.lang.String) definition code for java.rmi.server.Operation.Operation(java.lang.String)
          no replacement 
java.rmi.RMISecurityException(String) sample code for java.rmi.RMISecurityException.RMISecurityException(java.lang.String) definition code for java.rmi.RMISecurityException.RMISecurityException(java.lang.String)
          no replacement 
java.rmi.RMISecurityException(String, String) sample code for java.rmi.RMISecurityException.RMISecurityException(java.lang.String, java.lang.String) definition code for java.rmi.RMISecurityException.RMISecurityException(java.lang.String, java.lang.String)
          no replacement 
java.rmi.ServerRuntimeException(String, Exception) sample code for java.rmi.ServerRuntimeException.ServerRuntimeException(java.lang.String, java.lang.Exception) definition code for java.rmi.ServerRuntimeException.ServerRuntimeException(java.lang.String, java.lang.Exception)
          no replacement 
java.rmi.server.SkeletonMismatchException(String) sample code for java.rmi.server.SkeletonMismatchException.SkeletonMismatchException(java.lang.String) definition code for java.rmi.server.SkeletonMismatchException.SkeletonMismatchException(java.lang.String)
          no replacement 
java.net.Socket(InetAddress, int, boolean) sample code for java.net.Socket.Socket(java.net.InetAddress, int, boolean) definition code for java.net.Socket.Socket(java.net.InetAddress, int, boolean)
          Use DatagramSocket instead for UDP transport. 
java.net.Socket(String, int, boolean) sample code for java.net.Socket.Socket(java.lang.String, int, boolean) definition code for java.net.Socket.Socket(java.lang.String, int, boolean)
          Use DatagramSocket instead for UDP transport. 
java.io.StreamTokenizer(InputStream) sample code for java.io.StreamTokenizer.StreamTokenizer(java.io.InputStream) definition code for java.io.StreamTokenizer.StreamTokenizer(java.io.InputStream)
          As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example:
   Reader r = new BufferedReader(new InputStreamReader(is));
   StreamTokenizer st = new StreamTokenizer(r);
 
 
java.lang.String(byte[], int) sample code for java.lang.String.String(byte[], int) definition code for java.lang.String.String(byte[], int)
          This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the String constructors that take a charset name or that use the platform's default charset. 
java.lang.String(byte[], int, int, int) sample code for java.lang.String.String(byte[], int, int, int) definition code for java.lang.String.String(byte[], int, int, int)
          This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the String constructors that take a charset name or that use the platform's default charset. 
org.omg.CORBA.TCKind(int) sample code for org.omg.CORBA.TCKind.TCKind(int) definition code for org.omg.CORBA.TCKind.TCKind(int)
          Do not use this constructor as this method should be private according to the OMG specification. Use TCKind.from_int(int) sample code for org.omg.CORBA.TCKind.from_int(int) definition code for org.omg.CORBA.TCKind.from_int(int) instead. 
java.sql.Time(int, int, int) sample code for java.sql.Time.Time(int, int, int) definition code for java.sql.Time.Time(int, int, int)
          Use the constructor that takes a milliseconds value in place of this constructor 
java.sql.Timestamp(int, int, int, int, int, int, int) sample code for java.sql.Timestamp.Timestamp(int, int, int, int, int, int, int) definition code for java.sql.Timestamp.Timestamp(int, int, int, int, int, int, int)
          instead use the constructor Timestamp(long millis)