⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 foo

📁 Sun公司官方网站上下载的JDK文档
💻
📖 第 1 页 / 共 3 页
字号:
the specified data flavor is available.<br><li><a href="../../../api/java/awt/datatransfer/Clipboard.html#getData(java.awt.datatransfer.DataFlavor)">Object getData(DataFlavor)</a> returns thedata in the specified data flavor.</ul></blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4790833.html">      <b>4790833</b></a>:Memory Usage No Longer Shoots Up using Clipboard.getContents</h3><blockquote>Prior to this release, <code>Clipboard.getContents</code> fetchedclipboard data in all provided formats for which a mapping to thecorresponding data flavor in the default flavor map exists.If there were a lot of formats and the data were large, a lotof memory was consumed with the fetched data in different formats.Thanks to the new methods introduced with bug fix<a href="http://developer.java.sun.com/developer/bugParade/bugs/4287795.html">4287795</a>, this problem has been fixed.</blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4415175.html">      <b>4415175</b></a>:New API to Globally Change the DnD Gesture Motion Threshold</h3><blockquote>The drag motion gesture threshold represents the number of pixelsthe cursor is dragged before the data transfer system initiatesa drag operation.  Prior to this release, this was hard-coded to 5pixels.  As of release 1.5, there is support for picking up thedesktop properties for drag sensitivity and mapping it to thethreshold, and new API that allows users to get and change thisthreshold.  The new API includes:<ul><li><a href="../../../api/java/awt/dnd/DragSource.html#getDragThreshold()">java.awt.dnd.DragSource.getDragThreshold()</a><li>java.awt.dnd.drag.threshold</a> (a property)<li><a href="../../../api/java/awt/dnd/MouseDragGestureRecognizer.html">java.awt.dnd.MouseDragGestureRecognizer</a> (updated class spec)</ul></blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4712068.html">      <b>4712068</b></a>:DnD Usability Issue for Dragging Text</h3><blockquote>Prior to this release, the hotspot of the drop icons used onX platforms waslocated at the middle of the icon.  When dragging text, thetext cursor moves to indicate the current drop location, butthis was obscurbed by the drop icon itself.  For this release,the drop cursors used on X platforms have been changed to point to the upper-left corner of the drop icon. The corresponding hotspots have been changed accordingly.</blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4191708.html">      <b>4191708</b></a>:Clarification in spec for several java.awt.dnd.DropTarget methods</h3><blockquote>The doc has been clarified with respect to passing in a nullparameter for the following <code>java.awt.dnd.DropTarget</code> methods:<ul><li><a href="../../../api/java/awt/dnd/DropTarget.html#dragEnter(java.awt.dnd.DropTargetDragEvent)">dragEnter(DropTargetDragEvent)</a><br><li><a href="../../../api/java/awt/dnd/DropTarget.html#dragOver(java.awt.dnd.DropTargetDragEvent)">dragOver(DropTargetDragEvent)</a><br><li><a href="../../../api/java/awt/dnd/DropTarget.html#dropActionChanged(java.awt.dnd.DropTargetDragEvent)">dropActionChanged(DropTargetDragEvent)</a><br><li><a href="../../../api/java/awt/dnd/DropTarget.html#drop(java.awt.dnd.DropTargetDragEvent)">drop(DropTargetDragEvent)</a><br><li><a href="../../../api/java/awt/dnd/DropTarget.html#dragExit(java.awt.dnd.DropTargetDragEvent)">dragExit(DropTargetDragEvent)</a></ul></blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4819437.html">      <b>4819437</b></a>:DragSourceListener.dragExit is now called in a consistent way</h3><blockquote><!-- Previously, <code>DragSourceListener.dragExit(DragSourceEvent)</code>was called whenever the current drop site rejected the drag. If the drop site rejected the dragas soon as the drag entered the drop site,<code>DragSourceListener.dragExit</code> wascalled and no other <code>DragSourceListener</code> method was called. For this release, the behavior was changed to call <code>dragExit</code>. -->The class specification for the<a href="../../../api/java/awt/dnd/DragSourceAdapter.html">DragSourceAdapter</a> and<a href="../../../api/java/awt/dnd/DragSourceAdapter.html">DragSourceAdapter</a>classes, and the documentation for the <a href="../../../api/java/awt/dnd/DragSourceAdapter.html#dragExit()">DragSourceAdapter.dragExit</a> and<a href="../../../api/java/awt/dnd/DragSourceListener.html#dragExit()">DragSourceListener.dragExit</a>methods have been updated to clarify the notion that the drop site isassociated with the previous call to <code>dragEnter</code>.</blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4654688.html">      <b>4654688</b></a>:SystemFlavorMap Methods Now Consistent with Documentation</h3><blockquote>The <code>SystemFlavorMap</code> class isused to store mappings between native formats and Java dataflavors in order to support data transfer between native andJava applications.  The documentation for the<a href="../../../api/java/awt/datatransfer/SystemFlavorMap.html#getNativesForFlavor(java.awt.datatransfer.DataFlavor)">SystemFlavorMap.getNativesForFlavor(DataFlavor)</a>method has been clarified to say that a <code>DataFlavor</code>(or a native format) is known if and only if it has at least onestatic mapping associated with it.</blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4123385.html">      <b>4123385</b></a>:Clarification of Behavior for DragSourceDragEvent and DragSourceDropEventConstructors</h3><blockquote>Previously, several constructors in the<code>java.awt.dnd.DragSourceDragEvent</code> and<code>java.awt.dnd.DragSourceDropEvent</code>classes were throwing unspecified <code>IllegalArgumentException</code>s.In general, these constructors didn't describe the behavior for null arguments.For this release, the specification for the following constructors has been clarified to explain the behavior for null argumentsand to document the <code>IllegalArgumentException</code> that may occur.<ul><li><a href="../../../api/java/awt/dnd/DragSourceDragEvent.html#DragSourceDragEvent(java.awt.dnd.DragSourceContext, int, int, int)">DragSourceDragEvent(DragSourceContext, int int, int)</a><li><a href="../../../api/java/awt/dnd/DragSourceDragEvent.html#DragSourceDragEvent(java.awt.dnd.DragSourceContext, int, int, int, int, int)">DragSourceDragEvent(DragSourceContext, int int, int, int, int)</a><li><a href="../../../api/java/awt/dnd/DragSourceDropEvent.html#DragSourceDropEvent(java.awt.dnd.DragSourceContext)">DragSourceDropEvent(DragSourceContext)</a><li><a href="../../../api/java/awt/dnd/DragSourceDropEvent.html#DragSourceDropEvent(java.awt.dnd.DragSourceContext, int, boolean)">DragSourceDropEvent(DragSourceContext, int, boolean)</a><li><a href="../../../api/java/awt/dnd/DragSourceDropEvent.html#DragSourceDropEvent(java.awt.dnd.DragSourceContext, int, boolean, int, int)">DragSourceDropEvent(DragSourceContext, int, boolean, int, int)</a></ul></blockquote></blockquote><a name=layout><h2>Layout Bugfixes</h2></a><blockquote><h3>GridBagLayout Bugfixes</h3><blockquote><b>GridBagLayout</b>: Several bugfixes have been implemented forGridBagLayout.  Note that two of these bugs listed apply to thedocumentation only.  The most significant bugfixes include:<h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4254022.html">      <b>4254022</b></a>:More than 512 horizontal or vertical components are now possible in aGridBagLayout</h3><blockquote>Previously, GridBagLayout had been implemented with a hard-codedwidth and height limit of 512.  This is now allocated dynamically andthe MAXGRIDSIZE constant is no longer used.</blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4532201.html">      <b>4532201</b></a>:GridBagLayout.lookupConstraints doc is clarified</h3><blockquote>Documentation was added to clarify what happens when the specifiedComponent is not in the grid bag layout.</blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4618355.html">      <b>4618355</b></a>:Doc for GridBagLayout.gridwidth/gridheight is clarified</h3><blockquote>The class spec for GridBagLayout.gridwidth/gridheight wasconfusing in its description of REMAINDER and RELATIVE.  Thishas been corrected.</blockquote></blockquote><h3>FlowLayout Bugfixes</h3><blockquote><b>FlowLayout</b>: Several documentation bugs have been fixed forFlowLayout<h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4586806.html">      <b>4586806</b></a>:FlowLayout spec is corrected regarding alignment</h3><blockquote>Previously, the class spec stated that components are centeredon the line.  Actually, the <code>align</code> property determineshow the components are laid out.  The doc has been corrected.</blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4881919.html">      <b>4881919</b></a>:FlowLayout class spec no longer implies that components are alwaysleft to right</h3><blockquote>The FlowLayout class spec was written before the abilityto go right to left was added.  Therefore it assumed that left toright was the only possible orientation.  The doc has been corrected.</blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4587456.html">      <b>4587456</b></a>:Corrected spec for FlowLayout constructor</h3><blockquote>Previously, the doc for the FlowLayout constructor neglected tomention that the hgap and vap were applied to the spacing between thecomponents and the container border as well as between the components.The documentation has been corrected.</blockquote></blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4172932.html">      <b>4172932</b></a>:New methods to get constraints for children in BorderLayout</h3><blockquote>Three public methods have been added to <code>BorderLayout</code>,one to get the constraints for a component, and two different waysto get the component for a given constraint (one takes componentorientation into account and the other doesn't).  The new methodsare:<ul><li><a href="../../../api/java/awt/BorderLayout.html#getLayoutComponent(java.lang.Object)">Component getLayoutComponent(Object)</a><br><li><a href="../../../api/java/awt/BorderLayout.html#getLayoutComponent(java.awt.Container,java.lang.Object)">Component getLayoutComponent(Container, Object)</a><br><li><a href="../../../api/java/awt/BorderLayout.html#getConstraints(Component)">Object getConstraints(Component)</a></ul></blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4515041.html">      <b>4515041</b></a>:Clarified spec for GridLayout.layoutContainer regarding vgap and hgap params</h3><blockquote>Previously, the spec for layoutContainer stated that the vgap and hgapwas added between each cell and between the first/last cell and the border.In reality, the gaps are applied between the components only.  This hasbeen corrected in the doc.</blockquote></blockquote><a name=misc><h2>Miscellaneous Bugfixes</h2></a><blockquote><h3><ahref="http://developer.java.sun.com/developer/bugParade/bugs/4533021.html">      <b>4533021</b></a>:New API to Change the Z-ordering of Children</h3><blockquote>New API has been added to specify the z-ordering of childrenin a <code>Container</code>. The two new <code>Container</code>methods include:<ul><li><a href="../../../api/java/awt/Container.html#getComponentZOrder(java.awt.Component, int)">getComponentZOrder(Component, int)</a><li><a href="../../../api/java/awt/Container.html#setComponentZOrder(java.awt.Component, int)">setComponentZOrder(Component, int)</a></ul></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -