diff --git a/jdk/src/macosx/bundle/JavaAppLauncher/src/JVMArgs.m b/jdk/src/macosx/bundle/JavaAppLauncher/src/JVMArgs.m index dabaac740b6..e2d904122ba 100644 --- a/jdk/src/macosx/bundle/JavaAppLauncher/src/JVMArgs.m +++ b/jdk/src/macosx/bundle/JavaAppLauncher/src/JVMArgs.m @@ -163,7 +163,7 @@ NSString *GetJavaRoot(NSDictionary *jvmInfoDict) { if ([[jvmInfo objectForKey:@"StartOnFirstThread"] boolValue]) { self.startOnFirstThread = YES; } else if ([[jvmInfo objectForKey:@"StartOnMainThread"] boolValue]) { - // for key compatability with the Apple JavaApplicationStub's 'Java' dictionary + // for key compatibility with the Apple JavaApplicationStub's 'Java' dictionary self.startOnFirstThread = YES; } diff --git a/jdk/src/macosx/classes/com/apple/eawt/event/package.html b/jdk/src/macosx/classes/com/apple/eawt/event/package.html index 9c05d88c821..0946e60f309 100644 --- a/jdk/src/macosx/classes/com/apple/eawt/event/package.html +++ b/jdk/src/macosx/classes/com/apple/eawt/event/package.html @@ -1,5 +1,7 @@ +
+clipBounds, or
+ * Paints the expand (toggle) part of a row. The receiver should NOT modify clipBounds, or
* insets.
*/
protected void paintExpandControl(final Graphics g, final Rectangle clipBounds, final Insets insets, final Rectangle bounds, final TreePath path, final int row, final boolean isExpanded, final boolean hasBeenExpanded, final boolean isLeaf) {
diff --git a/jdk/src/macosx/classes/com/apple/laf/ScreenMenuItemCheckbox.java b/jdk/src/macosx/classes/com/apple/laf/ScreenMenuItemCheckbox.java
index 644eaccc79d..bd922f3e143 100644
--- a/jdk/src/macosx/classes/com/apple/laf/ScreenMenuItemCheckbox.java
+++ b/jdk/src/macosx/classes/com/apple/laf/ScreenMenuItemCheckbox.java
@@ -93,9 +93,9 @@ final class ScreenMenuItemCheckbox extends CheckboxMenuItem implements ActionLis
}
if (fMenuItem instanceof JCheckBoxMenuItem) {
- setState(((JCheckBoxMenuItem)fMenuItem).isSelected());
+ forceSetState(fMenuItem.isSelected());
} else {
- setState(fMenuItem.getModel().isSelected());
+ forceSetState(fMenuItem.getModel().isSelected());
}
}
@@ -196,10 +196,10 @@ final class ScreenMenuItemCheckbox extends CheckboxMenuItem implements ActionLis
switch (e.getStateChange()) {
case ItemEvent.SELECTED:
- setState(true);
+ forceSetState(true);
break;
case ItemEvent.DESELECTED:
- setState(false);
+ forceSetState(false);
break;
}
}
@@ -210,4 +210,20 @@ final class ScreenMenuItemCheckbox extends CheckboxMenuItem implements ActionLis
((CCheckboxMenuItem)peer).setIsIndeterminate(indeterminate);
}
}
+
+ /*
+ * The CCheckboxMenuItem peer is calling setState unconditionally every time user clicks the menu
+ * However for Swing controls in the screen menu bar it is wrong - the state should be changed only
+ * in response to the ITEM_STATE_CHANGED event. So the setState is overridden to no-op and all the
+ * correct state changes are made with forceSetState
+ */
+
+ @Override
+ public synchronized void setState(boolean b) {
+ // No Op
+ }
+
+ private void forceSetState(boolean b) {
+ super.setState(b);
+ }
}
diff --git a/jdk/src/macosx/classes/java/net/DefaultInterface.java b/jdk/src/macosx/classes/java/net/DefaultInterface.java
index 638ca3a7648..ba032cf448f 100644
--- a/jdk/src/macosx/classes/java/net/DefaultInterface.java
+++ b/jdk/src/macosx/classes/java/net/DefaultInterface.java
@@ -26,7 +26,7 @@
package java.net;
/**
- * Choose a network inteface to be the default for
+ * Choose a network interface to be the default for
* outgoing IPv6 traffic that does not specify a scope_id (and which needs one).
* We choose the first interface that is up and is (in order of preference):
* 1. neither loopback nor point to point
diff --git a/jdk/src/macosx/classes/java/util/prefs/MacOSXPreferencesFile.java b/jdk/src/macosx/classes/java/util/prefs/MacOSXPreferencesFile.java
index 4ff6a170267..ce63833da81 100644
--- a/jdk/src/macosx/classes/java/util/prefs/MacOSXPreferencesFile.java
+++ b/jdk/src/macosx/classes/java/util/prefs/MacOSXPreferencesFile.java
@@ -122,7 +122,7 @@ class MacOSXPreferencesFile {
long user() { return user; }
long host() { return host; }
- // private contructor - use factory method getFile() instead
+ // private constructor - use factory method getFile() instead
private MacOSXPreferencesFile(String newName, long newUser, long newHost)
{
appName = newName;
diff --git a/jdk/src/macosx/classes/sun/font/CFontManager.java b/jdk/src/macosx/classes/sun/font/CFontManager.java
index a37fd81c0c4..e3e216e7a33 100644
--- a/jdk/src/macosx/classes/sun/font/CFontManager.java
+++ b/jdk/src/macosx/classes/sun/font/CFontManager.java
@@ -342,7 +342,7 @@ public class CFontManager extends SunFontManager {
@Override
public String getFontPath(boolean noType1Fonts) {
- // In the case of the Cocoa toolkit, since we go through NSFont, we dont need to register /Library/Fonts
+ // In the case of the Cocoa toolkit, since we go through NSFont, we don't need to register /Library/Fonts
Toolkit tk = Toolkit.getDefaultToolkit();
if (tk instanceof HeadlessToolkit) {
tk = ((HeadlessToolkit)tk).getUnderlyingToolkit();
diff --git a/jdk/src/macosx/classes/sun/lwawt/LWWindowPeer.java b/jdk/src/macosx/classes/sun/lwawt/LWWindowPeer.java
index 44aafc59d11..7b3cff536ad 100644
--- a/jdk/src/macosx/classes/sun/lwawt/LWWindowPeer.java
+++ b/jdk/src/macosx/classes/sun/lwawt/LWWindowPeer.java
@@ -56,15 +56,6 @@ public class LWWindowPeer
private final PlatformWindow platformWindow;
- // Window bounds reported by the native system (as opposed to
- // regular bounds inherited from LWComponentPeer which are
- // requested by user and may haven't been applied yet because
- // of asynchronous requests to the windowing system)
- private int sysX;
- private int sysY;
- private int sysW;
- private int sysH;
-
private static final int MINIMUM_WIDTH = 1;
private static final int MINIMUM_HEIGHT = 1;
@@ -320,10 +311,18 @@ public class LWWindowPeer
// Don't post ComponentMoved/Resized and Paint events
// until we've got a notification from the delegate
Rectangle cb = constrainBounds(x, y, w, h);
- setBounds(cb.x, cb.y, cb.width, cb.height, op, false, false);
- // Get updated bounds, so we don't have to handle 'op' here manually
- Rectangle r = getBounds();
- platformWindow.setBounds(r.x, r.y, r.width, r.height);
+
+ Rectangle newBounds = new Rectangle(getBounds());
+ if ((op & (SET_LOCATION | SET_BOUNDS)) != 0) {
+ newBounds.x = cb.x;
+ newBounds.y = cb.y;
+ }
+ if ((op & (SET_SIZE | SET_BOUNDS)) != 0) {
+ newBounds.width = cb.width;
+ newBounds.height = cb.height;
+ }
+ // Native system could constraint bounds, so the peer wold be updated in the callback
+ platformWindow.setBounds(newBounds.x, newBounds.y, newBounds.width, newBounds.height);
}
public Rectangle constrainBounds(Rectangle bounds) {
@@ -614,17 +613,10 @@ public class LWWindowPeer
*/
@Override
public void notifyReshape(int x, int y, int w, int h) {
- final boolean moved;
- final boolean resized;
+ Rectangle oldBounds = getBounds();
final boolean invalid = updateInsets(platformWindow.getInsets());
- synchronized (getStateLock()) {
- moved = (x != sysX) || (y != sysY);
- resized = (w != sysW) || (h != sysH);
- sysX = x;
- sysY = y;
- sysW = w;
- sysH = h;
- }
+ final boolean moved = (x != oldBounds.x) || (y != oldBounds.y);
+ final boolean resized = (w != oldBounds.width) || (h != oldBounds.height);
// Check if anything changed
if (!moved && !resized && !invalid) {
diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/CInputMethod.java b/jdk/src/macosx/classes/sun/lwawt/macosx/CInputMethod.java
index ecb2d5217f6..3f6109a4120 100644
--- a/jdk/src/macosx/classes/sun/lwawt/macosx/CInputMethod.java
+++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CInputMethod.java
@@ -620,8 +620,7 @@ public class CInputMethod extends InputMethodAdapter {
retString[0] = new String(selectedText);
}}
}, fAwtFocussedComponent);
- } catch (InterruptedException ie) { ie.printStackTrace(); }
- catch (InvocationTargetException ite) { ite.printStackTrace(); }
+ } catch (InvocationTargetException ite) { ite.printStackTrace(); }
synchronized(retString) { return retString[0]; }
}
@@ -669,8 +668,7 @@ public class CInputMethod extends InputMethodAdapter {
}}
}, fAwtFocussedComponent);
- } catch (InterruptedException ie) { ie.printStackTrace(); }
- catch (InvocationTargetException ite) { ite.printStackTrace(); }
+ } catch (InvocationTargetException ite) { ite.printStackTrace(); }
synchronized(returnValue) { return returnValue; }
}
@@ -695,8 +693,7 @@ public class CInputMethod extends InputMethodAdapter {
returnValue[0] = fIMContext.getInsertPositionOffset();
}}
}, fAwtFocussedComponent);
- } catch (InterruptedException ie) { ie.printStackTrace(); }
- catch (InvocationTargetException ite) { ite.printStackTrace(); }
+ } catch (InvocationTargetException ite) { ite.printStackTrace(); }
returnValue[1] = fCurrentTextLength;
synchronized(returnValue) { return returnValue; }
@@ -743,8 +740,7 @@ public class CInputMethod extends InputMethodAdapter {
}
}}
}, fAwtFocussedComponent);
- } catch (InterruptedException ie) { ie.printStackTrace(); }
- catch (InvocationTargetException ite) { ite.printStackTrace(); }
+ } catch (InvocationTargetException ite) { ite.printStackTrace(); }
synchronized(rect) { return rect; }
}
@@ -764,8 +760,7 @@ public class CInputMethod extends InputMethodAdapter {
insertPositionOffset[0] = fIMContext.getInsertPositionOffset();
}}
}, fAwtFocussedComponent);
- } catch (InterruptedException ie) { ie.printStackTrace(); }
- catch (InvocationTargetException ite) { ite.printStackTrace(); }
+ } catch (InvocationTargetException ite) { ite.printStackTrace(); }
// This bit of gymnastics ensures that the returned location is within the composed text.
// If it falls outside that region, the input method will commit the text, which is inconsistent with native
diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformLWView.java b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformLWView.java
index e5d99678b18..d09f1571d08 100644
--- a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformLWView.java
+++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformLWView.java
@@ -53,14 +53,6 @@ public class CPlatformLWView extends CPlatformView {
public void setBounds(int x, int y, int width, int height) {
}
- @Override
- public void enterFullScreenMode() {
- }
-
- @Override
- public void exitFullScreenMode() {
- }
-
@Override
public SurfaceData replaceSurfaceData() {
return null;
diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformView.java b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformView.java
index b287e7745b7..ba05ab0b6c3 100644
--- a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformView.java
+++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformView.java
@@ -96,14 +96,6 @@ public class CPlatformView extends CFRetainedResource {
return peer;
}
- public void enterFullScreenMode() {
- CWrapper.NSView.enterFullScreenMode(ptr);
- }
-
- public void exitFullScreenMode() {
- CWrapper.NSView.exitFullScreenMode(ptr);
- }
-
public void setToolTip(String msg) {
CWrapper.NSView.setToolTip(ptr, msg);
}
diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
index 8fca7df691d..f0eebfcdcb1 100644
--- a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
+++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
@@ -63,6 +63,8 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
private static native void nativeSynthesizeMouseEnteredExitedEvents();
private static native void nativeDispose(long nsWindowPtr);
private static native CPlatformWindow nativeGetTopmostPlatformWindowUnderMouse();
+ private static native void nativeEnterFullScreenMode(long nsWindowPtr);
+ private static native void nativeExitFullScreenMode(long nsWindowPtr);
// Loger to report issues happened during execution but that do not affect functionality
private static final PlatformLogger logger = PlatformLogger.getLogger("sun.lwawt.macosx.CPlatformWindow");
@@ -230,7 +232,14 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
contentView.initialize(peer, responder);
final long ownerPtr = owner != null ? owner.getNSWindowPtr() : 0L;
- Rectangle bounds = _peer.constrainBounds(_target.getBounds());
+ Rectangle bounds;
+ if (!IS(DECORATED, styleBits)) {
+ // For undecorated frames the move/resize event does not come if the frame is centered on the screen
+ // so we need to set a stub location to force an initial move/resize. Real bounds would be set later.
+ bounds = new Rectangle(0, 0, 1, 1);
+ } else {
+ bounds = _peer.constrainBounds(_target.getBounds());
+ }
final long nativeWindowPtr = nativeCreateNSWindow(contentView.getAWTView(),
ownerPtr, styleBits, bounds.x, bounds.y, bounds.width, bounds.height);
setPtr(nativeWindowPtr);
@@ -433,10 +442,7 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
@Override // PlatformWindow
public Insets getInsets() {
- if (!isFullScreenMode) {
- return nativeGetNSWindowInsets(getNSWindowPtr());
- }
- return new Insets(0, 0, 0, 0);
+ return nativeGetNSWindowInsets(getNSWindowPtr());
}
@Override // PlatformWindow
@@ -538,6 +544,8 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
updateIconImages();
updateFocusabilityForAutoRequestFocus(false);
+ boolean wasMaximized = isMaximized();
+
// Actually show or hide the window
LWWindowPeer blocker = (peer == null)? null : peer.getBlocker();
if (blocker == null || !visible) {
@@ -571,16 +579,21 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
if (visible) {
// Apply the extended state as expected in shared code
if (target instanceof Frame) {
- switch (((Frame)target).getExtendedState()) {
- case Frame.ICONIFIED:
- CWrapper.NSWindow.miniaturize(nsWindowPtr);
- break;
- case Frame.MAXIMIZED_BOTH:
- maximize();
- break;
- default: // NORMAL
- unmaximize(); // in case it was maximized, otherwise this is a no-op
- break;
+ if (!wasMaximized && isMaximized()) {
+ // setVisible could have changed the native maximized state
+ deliverZoom(true);
+ } else {
+ switch (((Frame)target).getExtendedState()) {
+ case Frame.ICONIFIED:
+ CWrapper.NSWindow.miniaturize(nsWindowPtr);
+ break;
+ case Frame.MAXIMIZED_BOTH:
+ maximize();
+ break;
+ default: // NORMAL
+ unmaximize(); // in case it was maximized, otherwise this is a no-op
+ break;
+ }
}
}
}
@@ -750,18 +763,12 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
@Override
public void enterFullScreenMode() {
isFullScreenMode = true;
- contentView.enterFullScreenMode();
- // the move/size notification from the underlying system comes
- // but it contains a bounds smaller than the whole screen
- // and therefore we need to create the synthetic notifications
- Rectangle screenBounds = getPeer().getGraphicsConfiguration().getBounds();
- peer.notifyReshape(screenBounds.x, screenBounds.y, screenBounds.width,
- screenBounds.height);
+ nativeEnterFullScreenMode(getNSWindowPtr());
}
@Override
public void exitFullScreenMode() {
- contentView.exitFullScreenMode();
+ nativeExitFullScreenMode(getNSWindowPtr());
isFullScreenMode = false;
}
@@ -884,7 +891,7 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
//Posting an empty to flush the EventQueue without blocking the main thread
}
}, target);
- } catch (InterruptedException | InvocationTargetException e) {
+ } catch (InvocationTargetException e) {
e.printStackTrace();
}
}
@@ -919,13 +926,7 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
protected void deliverMoveResizeEvent(int x, int y, int width, int height,
boolean byUser) {
- // when the content view enters the full-screen mode, the native
- // move/resize notifications contain a bounds smaller than
- // the whole screen and therefore we ignore the native notifications
- // and the content view itself creates correct synthetic notifications
- if (isFullScreenMode) {
- return;
- }
+ checkZoom();
final Rectangle oldB = nativeBounds;
nativeBounds = new Rectangle(x, y, width, height);
@@ -957,6 +958,17 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
}
}
+ private void checkZoom() {
+ if (target instanceof Frame && isVisible()) {
+ Frame targetFrame = (Frame)target;
+ if (targetFrame.getExtendedState() != Frame.MAXIMIZED_BOTH && isMaximized()) {
+ deliverZoom(true);
+ } else if (targetFrame.getExtendedState() == Frame.MAXIMIZED_BOTH && !isMaximized()) {
+ deliverZoom(false);
+ }
+ }
+ }
+
private void deliverNCMouseDown() {
if (peer != null) {
peer.notifyNCMouseDown();
diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/CViewEmbeddedFrame.java b/jdk/src/macosx/classes/sun/lwawt/macosx/CViewEmbeddedFrame.java
index 28acc26f6cc..6d843b88295 100644
--- a/jdk/src/macosx/classes/sun/lwawt/macosx/CViewEmbeddedFrame.java
+++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CViewEmbeddedFrame.java
@@ -97,6 +97,6 @@ public class CViewEmbeddedFrame extends EmbeddedFrame {
setVisible(true);
}
}, this);
- } catch (InterruptedException | InvocationTargetException ex) {}
+ } catch (InvocationTargetException ex) {}
}
}
diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/CWrapper.java b/jdk/src/macosx/classes/sun/lwawt/macosx/CWrapper.java
index 879118cf2e1..a9c55237eee 100644
--- a/jdk/src/macosx/classes/sun/lwawt/macosx/CWrapper.java
+++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CWrapper.java
@@ -82,9 +82,6 @@ public final class CWrapper {
public static native Rectangle2D frame(long view);
public static native long window(long view);
- public static native void enterFullScreenMode(long view);
- public static native void exitFullScreenMode(long view);
-
public static native void setHidden(long view, boolean hidden);
public static native void setToolTip(long view, String msg);
diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java b/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java
index d698845e558..959b03868fb 100644
--- a/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java
+++ b/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java
@@ -548,22 +548,18 @@ public final class LWCToolkit extends LWToolkit {
// Any selector invoked using ThreadUtilities performOnMainThread will be processed in doAWTRunLoop
// The InvocationEvent will call LWCToolkit.stopAWTRunLoop() when finished, which will stop our manual runloop
// Does not dispatch native events while in the loop
- public static void invokeAndWait(Runnable event, Component component) throws InterruptedException, InvocationTargetException {
+ public static void invokeAndWait(Runnable runnable, Component component) throws InvocationTargetException {
final long mediator = createAWTRunLoopMediator();
InvocationEvent invocationEvent =
- new InvocationEvent(component != null ? component : Toolkit.getDefaultToolkit(), event) {
- @Override
- public void dispatch() {
- try {
- super.dispatch();
- } finally {
+ new InvocationEvent(component != null ? component : Toolkit.getDefaultToolkit(),
+ runnable,
+ () -> {
if (mediator != 0) {
stopAWTRunLoop(mediator);
}
- }
- }
- };
+ },
+ true);
if (component != null) {
AppContext appContext = SunToolkit.targetToAppContext(component);
diff --git a/jdk/src/macosx/native/sun/awt/AWTView.m b/jdk/src/macosx/native/sun/awt/AWTView.m
index 28bdb4b9077..8fd088f426c 100644
--- a/jdk/src/macosx/native/sun/awt/AWTView.m
+++ b/jdk/src/macosx/native/sun/awt/AWTView.m
@@ -272,7 +272,6 @@ AWT_ASSERT_APPKIT_THREAD;
*/
- (void) keyDown: (NSEvent *)event {
-
fProcessingKeystroke = YES;
fKeyEventsNeeded = YES;
@@ -308,6 +307,23 @@ AWT_ASSERT_APPKIT_THREAD;
- (BOOL) performKeyEquivalent: (NSEvent *) event {
[self deliverJavaKeyEventHelper: event];
+
+ // Workaround for 8020209: special case for "Cmd =" and "Cmd ."
+ // because Cocoa calls performKeyEquivalent twice for these keystrokes
+ NSUInteger modFlags = [event modifierFlags] &
+ (NSCommandKeyMask | NSAlternateKeyMask | NSShiftKeyMask | NSControlKeyMask);
+ if (modFlags == NSCommandKeyMask) {
+ NSString *eventChars = [event charactersIgnoringModifiers];
+ if ([eventChars length] == 1) {
+ unichar ch = [eventChars characterAtIndex:0];
+ if (ch == '=' || ch == '.') {
+ [[NSApp mainMenu] performKeyEquivalent: event];
+ return YES;
+ }
+ }
+
+ }
+
return NO;
}
@@ -580,7 +596,7 @@ AWT_ASSERT_APPKIT_THREAD;
// --- Services menu support for lightweights ---
-// finds the focused accessable element, and if it's a text element, obtains the text from it
+// finds the focused accessible element, and if it is a text element, obtains the text from it
- (NSString *)accessibleSelectedText
{
id focused = [self accessibilityFocusedUIElement];
@@ -598,7 +614,7 @@ AWT_ASSERT_APPKIT_THREAD;
return rtfdData;
}
-// finds the focused accessable element, and if it's a text element, sets the text in it
+// finds the focused accessible element, and if it is a text element, sets the text in it
- (BOOL)replaceAccessibleTextSelection:(NSString *)text
{
id focused = [self accessibilityFocusedUIElement];
diff --git a/jdk/src/macosx/native/sun/awt/AWTWindow.h b/jdk/src/macosx/native/sun/awt/AWTWindow.h
index 698820ade4d..7f7bac777bc 100644
--- a/jdk/src/macosx/native/sun/awt/AWTWindow.h
+++ b/jdk/src/macosx/native/sun/awt/AWTWindow.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -45,6 +45,7 @@
BOOL isEnabled;
NSWindow *nsWindow;
AWTWindow *ownerWindow;
+ jint preFullScreenLevel;
}
// An instance of either AWTWindow_Normal or AWTWindow_Panel
@@ -57,6 +58,7 @@
@property (nonatomic) NSSize javaMaxSize;
@property (nonatomic) jint styleBits;
@property (nonatomic) BOOL isEnabled;
+@property (nonatomic) jint preFullScreenLevel;
- (id) initWithPlatformWindow:(JNFWeakJObjectWrapper *)javaPlatformWindow
diff --git a/jdk/src/macosx/native/sun/awt/AWTWindow.m b/jdk/src/macosx/native/sun/awt/AWTWindow.m
index 2231f10d1bf..687fa6b4d01 100644
--- a/jdk/src/macosx/native/sun/awt/AWTWindow.m
+++ b/jdk/src/macosx/native/sun/awt/AWTWindow.m
@@ -122,6 +122,7 @@ AWT_NS_WINDOW_IMPLEMENTATION
@synthesize styleBits;
@synthesize isEnabled;
@synthesize ownerWindow;
+@synthesize preFullScreenLevel;
- (void) updateMinMaxSize:(BOOL)resizable {
if (resizable) {
@@ -501,20 +502,6 @@ AWT_ASSERT_APPKIT_THREAD;
// window exposing in _setVisible:(BOOL)
}
-- (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)proposedFrame {
-AWT_ASSERT_APPKIT_THREAD;
-
- [AWTToolkit eventCountPlusPlus];
- JNIEnv *env = [ThreadUtilities getJNIEnv];
- jobject platformWindow = [self.javaPlatformWindow jObjectWithEnv:env];
- if (platformWindow != NULL) {
- static JNF_MEMBER_CACHE(jm_deliverZoom, jc_CPlatformWindow, "deliverZoom", "(Z)V");
- JNFCallVoidMethod(env, platformWindow, jm_deliverZoom, ![window isZoomed]);
- (*env)->DeleteLocalRef(env, platformWindow);
- }
- return YES;
-}
-
- (void) _deliverIconify:(BOOL)iconify {
AWT_ASSERT_APPKIT_THREAD;
@@ -1226,3 +1213,58 @@ JNF_COCOA_ENTER(env);
JNF_COCOA_EXIT(env);
}
+JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CPlatformWindow_nativeEnterFullScreenMode
+(JNIEnv *env, jclass clazz, jlong windowPtr)
+{
+JNF_COCOA_ENTER(env);
+
+ NSWindow *nsWindow = OBJC(windowPtr);
+ [ThreadUtilities performOnMainThreadWaiting:NO block:^(){
+ AWTWindow *window = (AWTWindow*)[nsWindow delegate];
+ NSNumber* screenID = [AWTWindow getNSWindowDisplayID_AppKitThread: nsWindow];
+ CGDirectDisplayID aID = [screenID intValue];
+
+ if (CGDisplayCapture(aID) == kCGErrorSuccess) {
+ // remove window decoration
+ NSUInteger styleMask = [AWTWindow styleMaskForStyleBits:window.styleBits];
+ [nsWindow setStyleMask:(styleMask & ~NSTitledWindowMask) | NSBorderlessWindowMask];
+
+ int shieldLevel = CGShieldingWindowLevel();
+ window.preFullScreenLevel = [nsWindow level];
+ [nsWindow setLevel: shieldLevel];
+
+ NSRect screenRect = [[nsWindow screen] frame];
+ [nsWindow setFrame:screenRect display:YES];
+ } else {
+ [JNFException raise:env as:kRuntimeException reason:"Failed to enter full screen."];
+ }
+ }];
+
+JNF_COCOA_EXIT(env);
+}
+
+JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CPlatformWindow_nativeExitFullScreenMode
+(JNIEnv *env, jclass clazz, jlong windowPtr)
+{
+JNF_COCOA_ENTER(env);
+
+ NSWindow *nsWindow = OBJC(windowPtr);
+ [ThreadUtilities performOnMainThreadWaiting:NO block:^(){
+ AWTWindow *window = (AWTWindow*)[nsWindow delegate];
+ NSNumber* screenID = [AWTWindow getNSWindowDisplayID_AppKitThread: nsWindow];
+ CGDirectDisplayID aID = [screenID intValue];
+
+ if (CGDisplayRelease(aID) == kCGErrorSuccess) {
+ NSUInteger styleMask = [AWTWindow styleMaskForStyleBits:window.styleBits];
+ [nsWindow setStyleMask:styleMask];
+ [nsWindow setLevel: window.preFullScreenLevel];
+
+ // GraphicsDevice takes care of restoring pre full screen bounds
+ } else {
+ [JNFException raise:env as:kRuntimeException reason:"Failed to exit full screen."];
+ }
+ }];
+
+JNF_COCOA_EXIT(env);
+}
+
diff --git a/jdk/src/macosx/native/sun/awt/CTextPipe.m b/jdk/src/macosx/native/sun/awt/CTextPipe.m
index f6510f204ae..aaa5f1ee3b1 100644
--- a/jdk/src/macosx/native/sun/awt/CTextPipe.m
+++ b/jdk/src/macosx/native/sun/awt/CTextPipe.m
@@ -322,7 +322,7 @@ static void DrawTextContext
Each stage of the pipeline is responsible for doing only one major thing, like allocating buffers,
aquiring transform arrays from JNI, filling buffers, or striking glyphs. All resources or memory
- aquired at a given stage, must be released in that stage. Any error that occurs (like a failed malloc)
+ acquired at a given stage, must be released in that stage. Any error that occurs (like a failed malloc)
is to be handled in the stage it occurs in, and is to return immediatly after freeing it's resources.
-----------------------------------*/
diff --git a/jdk/src/macosx/native/sun/awt/CWrapper.m b/jdk/src/macosx/native/sun/awt/CWrapper.m
index a658a5df64a..e5847bea960 100644
--- a/jdk/src/macosx/native/sun/awt/CWrapper.m
+++ b/jdk/src/macosx/native/sun/awt/CWrapper.m
@@ -585,46 +585,6 @@ JNF_COCOA_EXIT(env);
return jRect;
}
-/*
- * Class: sun_lwawt_macosx_CWrapper$NSView
- * Method: enterFullScreenMode
- * Signature: (J)V
- */
-JNIEXPORT void JNICALL
-Java_sun_lwawt_macosx_CWrapper_00024NSView_enterFullScreenMode
-(JNIEnv *env, jclass cls, jlong viewPtr)
-{
-JNF_COCOA_ENTER(env);
-
- NSView *view = (NSView *)jlong_to_ptr(viewPtr);
- [ThreadUtilities performOnMainThreadWaiting:NO block:^(){
- NSScreen *screen = [[view window] screen];
- NSDictionary *opts = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:NO], NSFullScreenModeAllScreens, nil];
- [view enterFullScreenMode:screen withOptions:opts];
- }];
-
-JNF_COCOA_EXIT(env);
-}
-
-/*
- * Class: sun_lwawt_macosx_CWrapper$NSView
- * Method: exitFullScreenMode
- * Signature: (J)V
- */
-JNIEXPORT void JNICALL
-Java_sun_lwawt_macosx_CWrapper_00024NSView_exitFullScreenMode
-(JNIEnv *env, jclass cls, jlong viewPtr)
-{
-JNF_COCOA_ENTER(env);
-
- NSView *view = (NSView *)jlong_to_ptr(viewPtr);
- [ThreadUtilities performOnMainThreadWaiting:NO block:^(){
- [view exitFullScreenModeWithOptions:nil];
- }];
-
-JNF_COCOA_EXIT(env);
-}
-
/*
* Class: sun_lwawt_macosx_CWrapper$NSView
* Method: window
diff --git a/jdk/src/macosx/native/sun/awt/awt.m b/jdk/src/macosx/native/sun/awt/awt.m
index e730a5ca920..0a491fd44f2 100644
--- a/jdk/src/macosx/native/sun/awt/awt.m
+++ b/jdk/src/macosx/native/sun/awt/awt.m
@@ -312,15 +312,17 @@ AWT_ASSERT_APPKIT_THREAD;
if (verbose) AWT_DEBUG_LOG(@"got out of the AppKit startup mutex");
}
- // Don't set the delegate until the NSApplication has been created and
- // its finishLaunching has initialized it.
- // ApplicationDelegate is the support code for com.apple.eawt.
- [ThreadUtilities performOnMainThreadWaiting:YES block:^(){
- idThe following atributes are supported: + *
The following attributes are supported: *
The following atribute is supported: + *
The following attribute is supported: *
The following atribute is supported: + *
The following attribute is supported: *
* <char>X</char>* which is equivalent to {@code Character.valueOf('X')} in Java code. - *
The following atributes are supported: + *
The following attributes are supported: *
The following atribute is supported: + *
The following attribute is supported: *
The following atribute is supported: + *
The following attribute is supported: *
* <false/>* is equivalent to {@code false} in Java code. - *
The following atribute is supported: + *
The following attribute is supported: *
* <field name="id"><int>0</int></field>* is equivalent to {@code id = 0} in Java code. - *
The following atributes are supported: + *
The following attributes are supported: *
The following atribute is supported: + *
The following attribute is supported: *
The following atribute is supported: + *
The following attribute is supported: *
The following atributes are supported: + *
The following attributes are supported: *
The following atribute is supported: + *
The following attribute is supported: *
The following atributes are supported: + *
The following attributes are supported: *
The following atributes are supported: + *
The following attributes are supported: *
* <null/>* is equivalent to {@code null} in Java code. - *
The following atribute is supported: + *
The following attribute is supported: *
The following atributes are supported: + *
The following attributes are supported: *
The following atributes are supported: + *
The following attributes are supported: *
The following atribute is supported: + *
The following attribute is supported: *
The following atribute is supported: + *
The following attribute is supported: *
* <true/>* is equivalent to {@code true} in Java code. - *
The following atribute is supported: + *
The following attribute is supported: *
* <var id="id1" idref="id2"/>* is equivalent to {@code id1 = id2} in Java code. - *
The following atributes are supported: + *
The following attributes are supported: *
The following atributes are supported: + *
The following attributes are supported: *
SynthPainter that will route the appropriate
* calls to a GTKEngine.
*
- * @param state SynthContext indentifying requestor
+ * @param state SynthContext identifying requestor
* @return SynthPainter
*/
@Override
@@ -204,7 +204,7 @@ class GTKStyle extends SynthStyle implements GTKConstants {
/**
* Returns the color for the specified state.
*
- * @param context SynthContext identifying requester
+ * @param context SynthContext identifying requestor
* @param state to get the color for
* @param type of the color
* @return Color to render with
@@ -305,7 +305,7 @@ class GTKStyle extends SynthStyle implements GTKConstants {
* insets will be placed in it, otherwise a new Insets object will be
* created and returned.
*
- * @param context SynthContext indentifying requestor
+ * @param context SynthContext identifying requestor
* @param insets Where to place Insets
* @return Insets.
*/
@@ -640,7 +640,7 @@ class GTKStyle extends SynthStyle implements GTKConstants {
/**
* Convenience method to get a class specific integer value.
*
- * @param context SynthContext indentifying requestor
+ * @param context SynthContext identifying requestor
* @param key Key identifying class specific value
* @param defaultValue Returned if there is no value for the specified
* type
@@ -660,7 +660,7 @@ class GTKStyle extends SynthStyle implements GTKConstants {
/**
* Convenience method to get a class specific Insets value.
*
- * @param context SynthContext indentifying requestor
+ * @param context SynthContext identifying requestor
* @param key Key identifying class specific value
* @param defaultValue Returned if there is no value for the specified
* type
@@ -680,7 +680,7 @@ class GTKStyle extends SynthStyle implements GTKConstants {
/**
* Convenience method to get a class specific Boolean value.
*
- * @param context SynthContext indentifying requestor
+ * @param context SynthContext identifying requestor
* @param key Key identifying class specific value
* @param defaultValue Returned if there is no value for the specified
* type
@@ -702,7 +702,7 @@ class GTKStyle extends SynthStyle implements GTKConstants {
* to. A Style should NOT assume the opacity will remain this value, the
* developer may reset it or override it.
*
- * @param context SynthContext indentifying requestor
+ * @param context SynthContext identifying requestor
* @return opaque Whether or not the JComponent is opaque.
*/
@Override
@@ -843,7 +843,7 @@ class GTKStyle extends SynthStyle implements GTKConstants {
// Is it another kind of value ?
if (key != "engine") {
- // For backward compatability we'll fallback to the UIManager.
+ // For backward compatibility we'll fallback to the UIManager.
// We don't go to the UIManager for engine as the engine is GTK
// specific.
Object value = UIManager.get(key);
diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java b/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java
index 31cd9fdb45b..a75a35e1ddd 100644
--- a/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java
+++ b/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java
@@ -86,19 +86,19 @@ public class MotifInternalFrameTitlePane
protected void assembleSystemMenu() {
systemMenu = new JPopupMenu();
- JMenuItem mi = systemMenu.add(new JMenuItem(restoreAction));
- mi.setMnemonic('R');
- mi = systemMenu.add(new JMenuItem(moveAction));
- mi.setMnemonic('M');
- mi = systemMenu.add(new JMenuItem(sizeAction));
- mi.setMnemonic('S');
- mi = systemMenu.add(new JMenuItem(iconifyAction));
- mi.setMnemonic('n');
- mi = systemMenu.add(new JMenuItem(maximizeAction));
- mi.setMnemonic('x');
+ JMenuItem mi = systemMenu.add(restoreAction);
+ mi.setMnemonic(getButtonMnemonic("restore"));
+ mi = systemMenu.add(moveAction);
+ mi.setMnemonic(getButtonMnemonic("move"));
+ mi = systemMenu.add(sizeAction);
+ mi.setMnemonic(getButtonMnemonic("size"));
+ mi = systemMenu.add(iconifyAction);
+ mi.setMnemonic(getButtonMnemonic("minimize"));
+ mi = systemMenu.add(maximizeAction);
+ mi.setMnemonic(getButtonMnemonic("maximize"));
systemMenu.add(new JSeparator());
- mi = systemMenu.add(new JMenuItem(closeAction));
- mi.setMnemonic('C');
+ mi = systemMenu.add(closeAction);
+ mi.setMnemonic(getButtonMnemonic("close"));
systemButton = new SystemButton();
systemButton.addActionListener(new ActionListener() {
@@ -124,6 +124,14 @@ public class MotifInternalFrameTitlePane
});
}
+ private static int getButtonMnemonic(String button) {
+ try {
+ return Integer.parseInt(UIManager.getString(
+ "InternalFrameTitlePane." + button + "Button.mnemonic"));
+ } catch (NumberFormatException e) {
+ return -1;
+ }
+ }
protected void createButtons() {
minimizeButton = new MinimizeButton();
diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsGraphicsUtils.java b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsGraphicsUtils.java
index 9efb196c537..61090774ccc 100644
--- a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsGraphicsUtils.java
+++ b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsGraphicsUtils.java
@@ -45,7 +45,7 @@ public class WindowsGraphicsUtils {
/**
* Renders a text String in Windows without the mnemonic.
- * This is here because the WindowsUI hiearchy doesn't match the Component heirarchy. All
+ * This is here because the WindowsUI hierarchy doesn't match the Component hierarchy. All
* the overriden paintText methods of the ButtonUI delegates will call this static method.
* * @param g Graphics context diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsIconFactory.java b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsIconFactory.java index 3e5d313436a..3bc26eb46c3 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsIconFactory.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsIconFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -174,7 +174,7 @@ public class WindowsIconFactory implements Serializable XPStyle xp = XPStyle.getXP(); if (xp != null) { Skin skin = xp.getSkin(c, part); - JButton b = (JButton)c; + AbstractButton b = (AbstractButton)c; ButtonModel model = b.getModel(); // Find out if frame is inactive diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsInternalFrameTitlePane.java b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsInternalFrameTitlePane.java index 715f26ced3d..f0ab1667fa8 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsInternalFrameTitlePane.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsInternalFrameTitlePane.java @@ -326,18 +326,27 @@ public class WindowsInternalFrameTitlePane extends BasicInternalFrameTitlePane { protected void addSystemMenuItems(JPopupMenu menu) { JMenuItem mi = menu.add(restoreAction); - mi.setMnemonic('R'); + mi.setMnemonic(getButtonMnemonic("restore")); mi = menu.add(moveAction); - mi.setMnemonic('M'); + mi.setMnemonic(getButtonMnemonic("move")); mi = menu.add(sizeAction); - mi.setMnemonic('S'); + mi.setMnemonic(getButtonMnemonic("size")); mi = menu.add(iconifyAction); - mi.setMnemonic('n'); + mi.setMnemonic(getButtonMnemonic("minimize")); mi = menu.add(maximizeAction); - mi.setMnemonic('x'); - systemPopupMenu.add(new JSeparator()); + mi.setMnemonic(getButtonMnemonic("maximize")); + menu.add(new JSeparator()); mi = menu.add(closeAction); - mi.setMnemonic('C'); + mi.setMnemonic(getButtonMnemonic("close")); + } + + private static int getButtonMnemonic(String button) { + try { + return Integer.parseInt(UIManager.getString( + "InternalFrameTitlePane." + button + "Button.mnemonic")); + } catch (NumberFormatException e) { + return -1; + } } protected void showSystemMenu(){ diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java index 6213ac1e0c0..20d52c45ddf 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java @@ -2012,7 +2012,7 @@ public class WindowsLookAndFeel extends BasicLookAndFeel * results. *
* - * @param component Component the error occured in, may be + * @param component Component the error occurred in, may be * null indicating the error condition is * not directly associated with a *Component.
diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTextFieldUI.java b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTextFieldUI.java
index 1df612f08e4..b8a4a801074 100644
--- a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTextFieldUI.java
+++ b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTextFieldUI.java
@@ -50,7 +50,7 @@ import sun.swing.DefaultLookup;
*
diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTextUI.java b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTextUI.java
index 9d2a7ce4064..516770df43c 100644
--- a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTextUI.java
+++ b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTextUI.java
@@ -162,7 +162,7 @@ public abstract class WindowsTextUI extends BasicTextUI {
* necessarily the region to paint.
* @param c the editor
* @param view View painting for
- * @return region drawing occured in
+ * @return region drawing occurred in
*/
public Shape paintLayer(Graphics g, int offs0, int offs1,
Shape bounds, JTextComponent c, View view) {
diff --git a/jdk/src/share/classes/com/sun/java/util/jar/pack/NativeUnpack.java b/jdk/src/share/classes/com/sun/java/util/jar/pack/NativeUnpack.java
index 3f2f430fb84..2c33866e508 100644
--- a/jdk/src/share/classes/com/sun/java/util/jar/pack/NativeUnpack.java
+++ b/jdk/src/share/classes/com/sun/java/util/jar/pack/NativeUnpack.java
@@ -190,7 +190,7 @@ class NativeUnpack {
copyInOption(Utils.DEBUG_VERBOSE);
copyInOption(Pack200.Unpacker.DEFLATE_HINT);
- if (modtime == Constants.NO_MODTIME) // Dont pass KEEP && NOW
+ if (modtime == Constants.NO_MODTIME) // Don't pass KEEP && NOW
copyInOption(Utils.UNPACK_MODIFICATION_TIME);
updateProgress(); // reset progress bar
for (;;) {
diff --git a/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java b/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java
index a78c9ae9969..bca629f8008 100644
--- a/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java
+++ b/jdk/src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java
@@ -106,7 +106,7 @@ class PackageWriter extends BandStructure {
Set
* If This convenience method works as if by invoking {@link
* #startListening(String) startListening(null)}.
@@ -1088,7 +1088,7 @@ public abstract class SnmpMibTable extends SnmpMibNode
* @return
* If the entry is going to be registered, then
- * {@link com.sun.jmx.snmp.agent.SnmpTableSupport#addEntry(SnmpIndex, ObjectName, Object)} should be prefered.
+ * {@link com.sun.jmx.snmp.agent.SnmpTableSupport#addEntry(SnmpIndex, ObjectName, Object)} should be preferred.
*
* For example, if a response header instance contains one key "HeaderName" with two values "value1 and value2"
* then this object is output as two header lines:
diff --git a/jdk/src/share/classes/com/sun/net/httpserver/HttpExchange.java b/jdk/src/share/classes/com/sun/net/httpserver/HttpExchange.java
index 2ceacf764ae..f976ac2040e 100644
--- a/jdk/src/share/classes/com/sun/net/httpserver/HttpExchange.java
+++ b/jdk/src/share/classes/com/sun/net/httpserver/HttpExchange.java
@@ -170,7 +170,7 @@ public abstract class HttpExchange {
* then no response body is being sent.
*
* If the content-length response header has not already been set then
- * this is set to the apropriate value depending on the response length parameter.
+ * this is set to the appropriate value depending on the response length parameter.
*
* This method must be called prior to calling {@link #getResponseBody()}.
* @param rCode the response code to send
diff --git a/jdk/src/share/classes/com/sun/net/ssl/internal/ssl/Provider.java b/jdk/src/share/classes/com/sun/net/ssl/internal/ssl/Provider.java
index b1a08ce6f59..765c2322f1d 100644
--- a/jdk/src/share/classes/com/sun/net/ssl/internal/ssl/Provider.java
+++ b/jdk/src/share/classes/com/sun/net/ssl/internal/ssl/Provider.java
@@ -41,7 +41,7 @@ public final class Provider extends SunJSSE {
super();
}
- // prefered constructor to enable FIPS mode at runtime
+ // preferred constructor to enable FIPS mode at runtime
public Provider(java.security.Provider cryptoProvider) {
super(cryptoProvider);
}
diff --git a/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/encryption/EncryptionMethod.java b/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/encryption/EncryptionMethod.java
index 05c3cdc76cd..3f64cb3a41d 100644
--- a/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/encryption/EncryptionMethod.java
+++ b/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/encryption/EncryptionMethod.java
@@ -110,7 +110,7 @@ public interface EncryptionMethod {
* Returns an iterator over all the additional elements contained in the
* Create a new referencearguments contains addressing information. and
- * only one conection will be accepted, the {@link #accept accept} method
+ * only one connection will be accepted, the {@link #accept accept} method
* can be called immediately without calling this method.
*
* @return the address at which the connector is listening
diff --git a/jdk/src/share/classes/com/sun/jdi/connect/spi/TransportService.java b/jdk/src/share/classes/com/sun/jdi/connect/spi/TransportService.java
index 297d3e25116..c3f410e718c 100644
--- a/jdk/src/share/classes/com/sun/jdi/connect/spi/TransportService.java
+++ b/jdk/src/share/classes/com/sun/jdi/connect/spi/TransportService.java
@@ -250,7 +250,7 @@ public abstract class TransportService {
*
* @param address
* The address to start listening for connections,
- * or null to listen on an address choosen
+ * or null to listen on an address chosen
* by the transport service.
*
* @return a listen key to be used in subsequent calls to be
@@ -266,7 +266,7 @@ public abstract class TransportService {
public abstract ListenKey startListening(String address) throws IOException;
/**
- * Listens on an address choosen by the transport service.
+ * Listens on an address chosen by the transport service.
*
* SnmpVarBind objects.
*
- * @exception SnmpStatusException An error occured during the operation.
+ * @exception SnmpStatusException An error occurred during the operation.
*/
@Override
public abstract void get(SnmpMibRequest req)
@@ -142,7 +142,7 @@ public abstract class SnmpMibAgent
* OIDs from which the next variables should be retrieved.
* This list is composed of SnmpVarBind objects.
*
- * @exception SnmpStatusException An error occured during the operation.
+ * @exception SnmpStatusException An error occurred during the operation.
*/
@Override
public abstract void getNext(SnmpMibRequest req)
@@ -166,7 +166,7 @@ public abstract class SnmpMibAgent
* following the first nonRepeat variables for which
* multiple lexicographic successors are requested.
*
- * @exception SnmpStatusException An error occured during the operation.
+ * @exception SnmpStatusException An error occurred during the operation.
*/
@Override
public abstract void getBulk(SnmpMibRequest req, int nonRepeat,
@@ -184,7 +184,7 @@ public abstract class SnmpMibAgent
* be set. This list is composed of
* SnmpVarBind objects.
*
- * @exception SnmpStatusException An error occured during the operation.
+ * @exception SnmpStatusException An error occurred during the operation.
* Throwing an exception in this method will break the
* atomicity of the SET operation. Care must be taken so that
* the exception is thrown in the {@link #check(SnmpMibRequest)}
@@ -643,7 +643,7 @@ public abstract class SnmpMibAgent
*
* @return The variable list containing returned values.
*
- * @exception SnmpStatusException An error occured during the operation.
+ * @exception SnmpStatusException An error occurred during the operation.
*/
void getBulkWithGetNext(SnmpMibRequest req, int nonRepeat, int maxRepeat)
throws SnmpStatusException {
diff --git a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibAgentMBean.java b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibAgentMBean.java
index b057823dc6f..9f48879ac7c 100644
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibAgentMBean.java
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibAgentMBean.java
@@ -62,7 +62,7 @@ public interface SnmpMibAgentMBean {
* be retrieved. This list is composed of
* SnmpVarBind objects.
*
- * @exception SnmpStatusException An error occured during the operation.
+ * @exception SnmpStatusException An error occurred during the operation.
* @see SnmpMibAgent#get(SnmpMibRequest)
*/
public void get(SnmpMibRequest req) throws SnmpStatusException;
@@ -75,7 +75,7 @@ public interface SnmpMibAgentMBean {
* be retrieved. This list is composed of
* SnmpVarBind objects.
*
- * @exception SnmpStatusException An error occured during the operation.
+ * @exception SnmpStatusException An error occurred during the operation.
* @see SnmpMibAgent#getNext(SnmpMibRequest)
*/
public void getNext(SnmpMibRequest req) throws SnmpStatusException;
@@ -97,7 +97,7 @@ public interface SnmpMibAgentMBean {
* following the first nonRepeat variables for which
* multiple lexicographic successors are requested.
*
- * @exception SnmpStatusException An error occured during the operation.
+ * @exception SnmpStatusException An error occurred during the operation.
* @see SnmpMibAgent#getBulk(SnmpMibRequest,int,int)
*/
public void getBulk(SnmpMibRequest req, int nonRepeat, int maxRepeat)
@@ -111,7 +111,7 @@ public interface SnmpMibAgentMBean {
* be set. This list is composed of
* SnmpVarBind objects.
*
- * @exception SnmpStatusException An error occured during the operation.
+ * @exception SnmpStatusException An error occurred during the operation.
* @see SnmpMibAgent#set(SnmpMibRequest)
*/
public void set(SnmpMibRequest req) throws SnmpStatusException;
diff --git a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibGroup.java b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibGroup.java
index 29882ce01d4..6050de77d70 100644
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibGroup.java
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibGroup.java
@@ -119,7 +119,7 @@ public abstract class SnmpMibGroup extends SnmpMibOid
// needed...
// For instance, the subclass could provide a generated isNestedArc()
// method in which the subgroup OID arcs would be hardcoded.
- // However, the generic approach was prefered because at this time
+ // However, the generic approach was preferred because at this time
// groups and subgroups are dynamically registered in the MIB.
//
/**
diff --git a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibTable.java b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibTable.java
index e0282c6cec0..2edcbde2a40 100644
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibTable.java
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpMibTable.java
@@ -435,7 +435,7 @@ public abstract class SnmpMibTable extends SnmpMibNode
* If the entry is going to be registered, or if ObjectName's are
* required, then
* {@link com.sun.jmx.snmp.agent.SnmpMibTable#addEntry(SnmpOid,
- * ObjectName, Object)} should be prefered.
+ * ObjectName, Object)} should be preferred.
*
This function is mainly provided for backward compatibility.
*
* true if the row can be placed in
* notInService state.
*
- * @exception SnmpStatusException An error occured while trying
+ * @exception SnmpStatusException An error occurred while trying
* to retrieve the row status, and the operation should
* be aborted.
*
@@ -2444,7 +2444,7 @@ public abstract class SnmpMibTable extends SnmpMibNode
l1+1,l2);
} else if (pos < tablecount) {
- // Vector is large enough to accomodate one additional
+ // Vector is large enough to accommodate one additional
// entry.
//
// Shift vector, making an empty room at `pos'
diff --git a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpRequestTree.java b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpRequestTree.java
index dbcca12d9ef..bfe2e0fee55 100644
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpRequestTree.java
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpRequestTree.java
@@ -581,7 +581,7 @@ final class SnmpRequestTree {
} else if (pos < entrycount) {
- // Vectors are large enough to accomodate one additional
+ // Vectors are large enough to accommodate one additional
// entry.
//
// Shift vectors, making an empty room at `pos'
diff --git a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpTableSupport.java b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpTableSupport.java
index 8a015ce7c18..950bbce17e1 100644
--- a/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpTableSupport.java
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/agent/SnmpTableSupport.java
@@ -480,7 +480,7 @@ public abstract class SnmpTableSupport implements SnmpTableEntryFactory,
* associated SnmpIndex.
*
This function is mainly provided for backward compatibility.
*
* @param index The SnmpIndex built from the given entry.
diff --git a/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpAdaptorServerMBean.java b/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpAdaptorServerMBean.java
index 1b42ed4f043..325daa5b990 100644
--- a/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpAdaptorServerMBean.java
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpAdaptorServerMBean.java
@@ -473,7 +473,7 @@ public interface SnmpAdaptorServerMBean extends CommunicatorServerMBean {
* @param specific The specific number of the trap.
* @param varBindList A list of SnmpVarBind instances or null.
*
- * @exception IOException An I/O error occured while sending the trap.
+ * @exception IOException An I/O error occurred while sending the trap.
* @exception SnmpStatusException If the trap exceeds the limit defined by bufferSize.
*/
public void snmpV1Trap(int generic, int specific, SnmpVarBindList varBindList) throws IOException, SnmpStatusException;
@@ -563,7 +563,7 @@ public interface SnmpAdaptorServerMBean extends CommunicatorServerMBean {
* @param trapOid The OID identifying the trap.
* @param varBindList A list of SnmpVarBind instances or null.
*
- * @exception IOException An I/O error occured while sending the trap.
+ * @exception IOException An I/O error occurred while sending the trap.
* @exception SnmpStatusException If the trap exceeds the limit defined by bufferSize.
*/
public void snmpV2Trap(SnmpOid trapOid, SnmpVarBindList varBindList) throws IOException, SnmpStatusException;
diff --git a/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpRequestHandler.java b/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpRequestHandler.java
index 0b60e802270..3fea8fe08ca 100644
--- a/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpRequestHandler.java
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpRequestHandler.java
@@ -559,7 +559,7 @@ class SnmpRequestHandler extends ClientHandler implements SnmpDefinitions {
//
SnmpPduPacket result= executeSubRequest(req,userData);
if (result != null)
- // It means that an error occured. The error is already
+ // It means that an error occurred. The error is already
// formatted by the executeSubRequest
// method.
return result;
diff --git a/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubBulkRequestHandler.java b/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubBulkRequestHandler.java
index 2754975082f..6dc479f242c 100644
--- a/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubBulkRequestHandler.java
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubBulkRequestHandler.java
@@ -52,7 +52,7 @@ class SnmpSubBulkRequestHandler extends SnmpSubRequestHandler {
private SnmpAdaptorServer server = null;
/**
- * The constuctor initialize the subrequest with the whole varbind list contained
+ * The constructor initialize the subrequest with the whole varbind list contained
* in the original request.
*/
protected SnmpSubBulkRequestHandler(SnmpEngine engine,
@@ -68,7 +68,7 @@ class SnmpSubBulkRequestHandler extends SnmpSubRequestHandler {
}
/**
- * The constuctor initialize the subrequest with the whole varbind list contained
+ * The constructor initialize the subrequest with the whole varbind list contained
* in the original request.
*/
protected SnmpSubBulkRequestHandler(SnmpAdaptorServer server,
diff --git a/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubNextRequestHandler.java b/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubNextRequestHandler.java
index bb4dd0bfd3b..3ff95f6a001 100644
--- a/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubNextRequestHandler.java
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubNextRequestHandler.java
@@ -55,7 +55,7 @@ import com.sun.jmx.snmp.ThreadContext;
class SnmpSubNextRequestHandler extends SnmpSubRequestHandler {
private SnmpAdaptorServer server = null;
/**
- * The constuctor initialize the subrequest with the whole varbind
+ * The constructor initialize the subrequest with the whole varbind
* list contained in the original request.
*/
protected SnmpSubNextRequestHandler(SnmpAdaptorServer server,
diff --git a/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubRequestHandler.java b/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubRequestHandler.java
index 04f4ca67443..0b981311358 100644
--- a/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubRequestHandler.java
+++ b/jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpSubRequestHandler.java
@@ -99,7 +99,7 @@ class SnmpSubRequestHandler implements SnmpDefinitions, Runnable {
}
/**
- * SNMP V1/V2 The constuctor initialize the subrequest with the whole varbind list contained
+ * SNMP V1/V2 The constructor initialize the subrequest with the whole varbind list contained
* in the original request.
*/
@SuppressWarnings("unchecked") // cast to NonSyncVectorAudioSynthesizerPropertyInfo object with a given
* name and value. The description and choices
- * are intialized by null values.
+ * are initialized by null values.
*
* @param name the name of the property
* @param value the current value or class used for values.
diff --git a/jdk/src/share/classes/com/sun/media/sound/DirectAudioDevice.java b/jdk/src/share/classes/com/sun/media/sound/DirectAudioDevice.java
index d6556f65f80..698bac9f766 100644
--- a/jdk/src/share/classes/com/sun/media/sound/DirectAudioDevice.java
+++ b/jdk/src/share/classes/com/sun/media/sound/DirectAudioDevice.java
@@ -378,7 +378,7 @@ final class DirectAudioDevice extends AbstractMixer {
protected final boolean isSource; // true for SourceDataLine, false for TargetDataLine
protected volatile long bytePosition;
protected volatile boolean doIO = false; // true in between start() and stop() calls
- protected volatile boolean stoppedWritten = false; // true if a write occured in stopped state
+ protected volatile boolean stoppedWritten = false; // true if a write occurred in stopped state
protected volatile boolean drained = false; // set to true when drain function returns, set to false in write()
protected boolean monitoring = false;
@@ -642,7 +642,7 @@ final class DirectAudioDevice extends AbstractMixer {
public void drain() {
noService = true;
// additional safeguard against draining forever
- // this occured on Solaris 8 x86, probably due to a bug
+ // this occurred on Solaris 8 x86, probably due to a bug
// in the audio driver
int counter = 0;
long startPos = getLongFramePosition();
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftMixingSourceDataLine.java b/jdk/src/share/classes/com/sun/media/sound/SoftMixingSourceDataLine.java
index d827770a514..962b4d2537b 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftMixingSourceDataLine.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftMixingSourceDataLine.java
@@ -37,7 +37,7 @@ import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.SourceDataLine;
/**
- * SourceDataLine implemention for the SoftMixingMixer.
+ * SourceDataLine implementation for the SoftMixingMixer.
*
* @author Karl Helgason
*/
diff --git a/jdk/src/share/classes/com/sun/media/sound/WaveFileReader.java b/jdk/src/share/classes/com/sun/media/sound/WaveFileReader.java
index 9ba6a6b8740..3599fdfab52 100644
--- a/jdk/src/share/classes/com/sun/media/sound/WaveFileReader.java
+++ b/jdk/src/share/classes/com/sun/media/sound/WaveFileReader.java
@@ -52,13 +52,6 @@ public final class WaveFileReader extends SunFileReader {
private static final int MAX_READ_LENGTH = 12;
- /**
- * Constructs a new WaveFileReader object.
- */
- public WaveFileReader() {
- }
-
-
/**
* Obtains the audio file format of the input stream provided. The stream must
* point to valid audio file data. In general, audio file providers may
@@ -304,6 +297,9 @@ public final class WaveFileReader extends SunFileReader {
}
// channels
channels = rlshort(dis); nread += 2;
+ if (channels <= 0) {
+ throw new UnsupportedAudioFileException("Invalid number of channels");
+ }
// sample rate.
sampleRate = rllong(dis); nread += 4;
@@ -316,6 +312,9 @@ public final class WaveFileReader extends SunFileReader {
// this is the PCM-specific value bitsPerSample
sampleSizeInBits = (int)rlshort(dis); nread += 2;
+ if (sampleSizeInBits <= 0) {
+ throw new UnsupportedAudioFileException("Invalid bitsPerSample");
+ }
// if sampleSizeInBits==8, we need to use PCM_UNSIGNED
if ((sampleSizeInBits==8) && encoding.equals(AudioFormat.Encoding.PCM_SIGNED))
@@ -373,5 +372,4 @@ public final class WaveFileReader extends SunFileReader {
format,
dataLength / format.getFrameSize());
}
-
}
diff --git a/jdk/src/share/classes/com/sun/net/httpserver/Headers.java b/jdk/src/share/classes/com/sun/net/httpserver/Headers.java
index c33e250d32b..7d07d42e8d0 100644
--- a/jdk/src/share/classes/com/sun/net/httpserver/Headers.java
+++ b/jdk/src/share/classes/com/sun/net/httpserver/Headers.java
@@ -33,7 +33,7 @@ import java.util.*;
* {@link java.lang.String},{@link java.util.List}<{@link java.lang.String}>>.
* The keys are case-insensitive Strings representing the header names and
* the value associated with each key is a {@link List}<{@link String}> with one
- * element for each occurence of the header name in the request or response.
+ * element for each occurrence of the header name in the request or response.
* EncryptionMethod.
*
- * @return an Iterator over all the additional infomation
+ * @return an Iterator over all the additional information
* about the EncryptionMethod.
*/
Iteratords:Reference from an {@link org.w3c.dom.Element}.
+ * Constructs a ds:Reference from an {@link org.w3c.dom.Element}.
*
*
diff --git a/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/signature/XMLSignature.java b/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/signature/XMLSignature.java
index 490f184c57f..bb7cc03778c 100644
--- a/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/signature/XMLSignature.java
+++ b/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/signature/XMLSignature.java
@@ -846,7 +846,7 @@ public final class XMLSignature extends SignatureElementProxy {
}
/**
- * Signal wether Manifest should be automatically validated.
+ * Signal whether Manifest should be automatically validated.
* Checking the digests in References in a Signature are mandatory, but for
* References inside a Manifest it is application specific. This boolean is
* to indicate that the References inside Manifests should be validated.
diff --git a/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java b/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java
index af0c988b5d1..7a7f693022d 100644
--- a/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java
+++ b/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java
@@ -41,7 +41,7 @@ import com.sun.rowset.providers.*;
/**
* The standard implementation of the CachedRowSet interface.
*
- * See interface defintion for full behaviour and implementation requirements.
+ * See interface definition for full behavior and implementation requirements.
* This reference implementation has made provision for a one-to-one write back
* facility and it is curremtly be possible to change the peristence provider
* during the life-time of any CachedRowSetImpl.
@@ -119,14 +119,14 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
private Vector
useSSL null listener is specified, this method returns an
* empty array. If the specified listener is not an instance of
* AWTEventMulticaster, this method returns an array which
- * contains only the specified listener. If no such listeners are chanined,
+ * contains only the specified listener. If no such listeners are chained,
* this method returns an empty array.
*
* @param l the specified java.util.EventListener
diff --git a/jdk/src/share/classes/java/awt/AlphaComposite.java b/jdk/src/share/classes/java/awt/AlphaComposite.java
index 6903e7ec712..9f8b64f2684 100644
--- a/jdk/src/share/classes/java/awt/AlphaComposite.java
+++ b/jdk/src/share/classes/java/awt/AlphaComposite.java
@@ -197,7 +197,7 @@ import sun.java2d.SunCompositeContext;
*
- * For performance reasons, it is preferrable that
+ * For performance reasons, it is preferable that
* Raster objects passed to the compose
* method of a {@link CompositeContext} object created by the
* AlphaComposite class have premultiplied data.
diff --git a/jdk/src/share/classes/java/awt/BasicStroke.java b/jdk/src/share/classes/java/awt/BasicStroke.java
index 55d59d4224f..5cc466640c2 100644
--- a/jdk/src/share/classes/java/awt/BasicStroke.java
+++ b/jdk/src/share/classes/java/awt/BasicStroke.java
@@ -88,7 +88,7 @@ import java.lang.annotation.Native;
* but also by the transform attribute of the
* Graphics2D object. Consider this code:
*
- * // sets the Graphics2D object's Tranform attribute + * // sets the Graphics2D object's Transform attribute * g2d.scale(10, 10); * // sets the Graphics2D object's Stroke attribute * g2d.setStroke(new BasicStroke(1.5f)); diff --git a/jdk/src/share/classes/java/awt/BorderLayout.java b/jdk/src/share/classes/java/awt/BorderLayout.java index 98bd4d5a9cd..8b131c485d3 100644 --- a/jdk/src/share/classes/java/awt/BorderLayout.java +++ b/jdk/src/share/classes/java/awt/BorderLayout.java @@ -69,7 +69,7 @@ import java.util.Hashtable; * components, the latter constants are preferred. ** Mixing both absolute and relative positioning constants can lead to - * unpredicable results. If + * unpredictable results. If * you use both types, the relative constants will take precedence. * For example, if you add components using both the
NORTH* andPAGE_STARTconstants in a container whose @@ -206,7 +206,7 @@ public class BorderLayout implements LayoutManager2, * * A relative positioning constant, that can be used instead of * north, south, east, west or center. - * mixing the two types of constants can lead to unpredicable results. If + * mixing the two types of constants can lead to unpredictable results. If * you use both types, the relative constants will take precedence. * For example, if you add components using both theNORTH* andBEFORE_FIRST_LINEconstants in a container whose diff --git a/jdk/src/share/classes/java/awt/CheckboxMenuItem.java b/jdk/src/share/classes/java/awt/CheckboxMenuItem.java index 4da887ee242..20265c7ad12 100644 --- a/jdk/src/share/classes/java/awt/CheckboxMenuItem.java +++ b/jdk/src/share/classes/java/awt/CheckboxMenuItem.java @@ -180,7 +180,7 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access } /** - * Sets this check box menu item to the specifed state. + * Sets this check box menu item to the specified state. * The boolean valuetrueindicates "on" while *falseindicates "off." * diff --git a/jdk/src/share/classes/java/awt/Choice.java b/jdk/src/share/classes/java/awt/Choice.java index e74bd094fb6..b50746205d9 100644 --- a/jdk/src/share/classes/java/awt/Choice.java +++ b/jdk/src/share/classes/java/awt/Choice.java @@ -418,7 +418,7 @@ public class Choice extends Component implements ItemSelectable, Accessible { * anItemEvent. The only way to trigger an *ItemEventis by user interaction. * - * @param pos the positon of the selected item + * @param pos the position of the selected item * @exception IllegalArgumentException if the specified * position is greater than the * number of items or less than zero diff --git a/jdk/src/share/classes/java/awt/Component.java b/jdk/src/share/classes/java/awt/Component.java index f7e2fbdba05..bd913cbd50e 100644 --- a/jdk/src/share/classes/java/awt/Component.java +++ b/jdk/src/share/classes/java/awt/Component.java @@ -276,7 +276,7 @@ public abstract class Component implements ImageObserver, MenuContainer, * @see #getFont * @see #setFont */ - Font font; + volatile Font font; /** * The font which the peer is currently using. @@ -1885,10 +1885,8 @@ public abstract class Component implements ImageObserver, MenuContainer, public void setFont(Font f) { Font oldFont, newFont; synchronized(getTreeLock()) { - synchronized (this) { - oldFont = font; - newFont = font = f; - } + oldFont = font; + newFont = font = f; ComponentPeer peer = this.peer; if (peer != null) { f = getFont(); @@ -2684,7 +2682,7 @@ public abstract class Component implements ImageObserver, MenuContainer, } /** - * Gets the mininimum size of this component. + * Gets the minimum size of this component. * @return a dimension object indicating this component's minimum size * @see #getPreferredSize * @see LayoutManager @@ -5254,7 +5252,7 @@ public abstract class Component implements ImageObserver, MenuContainer, * Returns an array of all the component listeners * registered on this component. * - * @return all of this comonent'sComponentListeners + * @return allComponentListeners of this component * or an empty array if no component * listeners are currently registered * diff --git a/jdk/src/share/classes/java/awt/Container.java b/jdk/src/share/classes/java/awt/Container.java index 82b682db78e..a779d72d489 100644 --- a/jdk/src/share/classes/java/awt/Container.java +++ b/jdk/src/share/classes/java/awt/Container.java @@ -959,7 +959,7 @@ public class Container extends Component { * * @param comp the component to be added * @param constraints an object expressing - * layout contraints for this component + * layout constraints for this component * @exception NullPointerException if {@code comp} is {@code null} * @see #addImpl * @see #invalidate @@ -986,7 +986,7 @@ public class Container extends Component { * * * @param comp the component to be added - * @param constraints an object expressing layout contraints for this + * @param constraints an object expressing layout constraints for this * @param index the position in the container's list at which to insert * the component;-1means insert at the end * component diff --git a/jdk/src/share/classes/java/awt/Dialog.java b/jdk/src/share/classes/java/awt/Dialog.java index a2248f033d7..b441100d9f2 100644 --- a/jdk/src/share/classes/java/awt/Dialog.java +++ b/jdk/src/share/classes/java/awt/Dialog.java @@ -338,7 +338,7 @@ public class Dialog extends Window { * * @param owner the owner of the dialog ornullif * this dialog has no owner - * @param modal specifes whether dialog blocks user input to other top-level + * @param modal specifies whether dialog blocks user input to other top-level * windows when shown. Iffalse, the dialog isMODELESS; * iftrue, the modality type property is set to *DEFAULT_MODALITY_TYPE@@ -387,7 +387,7 @@ public class Dialog extends Window { * this dialog has no owner * @param title the title of the dialog ornullif this dialog * has no title - * @param modal specifes whether dialog blocks user input to other top-level + * @param modal specifies whether dialog blocks user input to other top-level * windows when shown. Iffalse, the dialog isMODELESS; * iftrue, the modality type property is set to *DEFAULT_MODALITY_TYPE@@ -416,7 +416,7 @@ public class Dialog extends Window { * has no owner * @param title the title of the dialog ornullif this dialog * has no title - * @param modal specifes whether dialog blocks user input to other top-level + * @param modal specifies whether dialog blocks user input to other top-level * windows when shown. Iffalse, the dialog isMODELESS; * iftrue, the modality type property is set to *DEFAULT_MODALITY_TYPE@@ -488,7 +488,7 @@ public class Dialog extends Window { * dialog has no owner * @param title the title of the dialog ornullif this * dialog has no title - * @param modal specifes whether dialog blocks user input to other top-level + * @param modal specifies whether dialog blocks user input to other top-level * windows when shown. Iffalse, the dialog isMODELESS; * iftrue, the modality type property is set to *DEFAULT_MODALITY_TYPE@@ -519,7 +519,7 @@ public class Dialog extends Window { * dialog has no owner * @param title the title of the dialog ornullif this * dialog has no title - * @param modal specifes whether dialog blocks user input to other top-level + * @param modal specifies whether dialog blocks user input to other top-level * windows when shown. Iffalse, the dialog isMODELESS; * iftrue, the modality type property is set to *DEFAULT_MODALITY_TYPE@@ -764,7 +764,7 @@ public class Dialog extends Window { /** * Indicates whether the dialog is modal. *- * This method is obsolete and is kept for backwards compatiblity only. + * This method is obsolete and is kept for backwards compatibility only. * Use {@link #getModalityType getModalityType()} instead. * * @return
trueif this dialog window is modal; diff --git a/jdk/src/share/classes/java/awt/Event.java b/jdk/src/share/classes/java/awt/Event.java index 2bc5c31b235..b2a2e6b3f60 100644 --- a/jdk/src/share/classes/java/awt/Event.java +++ b/jdk/src/share/classes/java/awt/Event.java @@ -29,14 +29,14 @@ import java.io.*; /** * NOTE: TheEventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. **
Eventis a platform-independent class that * encapsulates events from the platform's Graphical User * Interface in the Java 1.0 event model. In Java 1.1 * and later versions, theEventclass is maintained - * only for backwards compatibilty. The information in this + * only for backwards compatibility. The information in this * class description is provided to assist programmers in * converting Java 1.0 programs to the new event model. *@@ -390,7 +390,7 @@ public class Event implements java.io.Serializable { /** * The user has moved the bubble (thumb) in a scroll bar, * moving to an "absolute" position, rather than to - * an offset from the last postion. + * an offset from the last position. */ public static final int SCROLL_ABSOLUTE = 5 + SCROLL_EVENT; @@ -609,7 +609,7 @@ public class Event implements java.io.Serializable { /** * NOTE: The
Eventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Creates an instance of
Eventwith the specified target @@ -660,7 +660,7 @@ public class Event implements java.io.Serializable { /** * NOTE: TheEventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Creates an instance of
Event, with the specified target @@ -681,7 +681,7 @@ public class Event implements java.io.Serializable { /** * NOTE: TheEventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Creates an instance of
Eventwith the specified @@ -696,7 +696,7 @@ public class Event implements java.io.Serializable { /** * NOTE: TheEventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Translates this event so that its x and y @@ -717,7 +717,7 @@ public class Event implements java.io.Serializable { /** * NOTE: The
Eventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Checks if the Shift key is down. @@ -733,7 +733,7 @@ public class Event implements java.io.Serializable { /** * NOTE: The
Eventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Checks if the Control key is down. @@ -749,7 +749,7 @@ public class Event implements java.io.Serializable { /** * NOTE: The
Eventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Checks if the Meta key is down. @@ -766,7 +766,7 @@ public class Event implements java.io.Serializable { /** * NOTE: The
Eventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. */ void consume() { @@ -784,7 +784,7 @@ public class Event implements java.io.Serializable { /** * NOTE: TheEventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. */ boolean isConsumed() { @@ -793,7 +793,7 @@ public class Event implements java.io.Serializable { /* * NOTE: TheEventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Returns the integer key-code associated with the key in this event, @@ -811,7 +811,7 @@ public class Event implements java.io.Serializable { /* * NOTE: The
Eventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Returns a new KeyEvent char which corresponds to the int key @@ -828,7 +828,7 @@ public class Event implements java.io.Serializable { /** * NOTE: The
Eventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Returns a string representing the state of this
Event. @@ -864,7 +864,7 @@ public class Event implements java.io.Serializable { /** * NOTE: TheEventclass is obsolete and is - * available only for backwards compatilibility. It has been replaced + * available only for backwards compatibility. It has been replaced * by theAWTEventclass and its subclasses. ** Returns a representation of this event's values as a string. diff --git a/jdk/src/share/classes/java/awt/EventDispatchThread.java b/jdk/src/share/classes/java/awt/EventDispatchThread.java index ab1d3e6f70a..51344658c7e 100644 --- a/jdk/src/share/classes/java/awt/EventDispatchThread.java +++ b/jdk/src/share/classes/java/awt/EventDispatchThread.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,19 +25,11 @@ package java.awt; -import java.awt.event.InputEvent; import java.awt.event.MouseEvent; import java.awt.event.ActionEvent; import java.awt.event.WindowEvent; -import java.lang.reflect.Method; -import java.security.AccessController; -import sun.security.action.GetPropertyAction; -import sun.awt.AWTAutoShutdown; -import sun.awt.SunToolkit; -import sun.awt.AppContext; import java.util.ArrayList; -import java.util.List; import sun.util.logging.PlatformLogger; import sun.awt.dnd.SunDragSourceContextPeer; @@ -67,8 +59,7 @@ class EventDispatchThread extends Thread { private static final PlatformLogger eventLog = PlatformLogger.getLogger("java.awt.event.EventDispatchThread"); private EventQueue theQueue; - private boolean doDispatch = true; - private volatile boolean shutdown = false; + private volatile boolean doDispatch = true; private static final int ANY_EVENT = -1; @@ -86,24 +77,15 @@ class EventDispatchThread extends Thread { doDispatch = false; } - public void interrupt() { - shutdown = true; - super.interrupt(); - } - public void run() { - while (true) { - try { - pumpEvents(new Conditional() { - public boolean evaluate() { - return true; - } - }); - } finally { - if(getEventQueue().detachDispatchThread(this, shutdown)) { - break; + try { + pumpEvents(new Conditional() { + public boolean evaluate() { + return true; } - } + }); + } finally { + getEventQueue().detachDispatchThread(this); } } @@ -130,8 +112,7 @@ class EventDispatchThread extends Thread { void pumpEventsForFilter(int id, Conditional cond, EventFilter filter) { addEventFilter(filter); doDispatch = true; - shutdown |= isInterrupted(); - while (doDispatch && !shutdown && cond.evaluate()) { + while (doDispatch && !isInterrupted() && cond.evaluate()) { pumpOneEventForFilters(id); } removeEventFilter(filter); @@ -223,12 +204,12 @@ class EventDispatchThread extends Thread { } } catch (ThreadDeath death) { - shutdown = true; + doDispatch = false; throw death; } catch (InterruptedException interruptedException) { - shutdown = true; // AppContext.dispose() interrupts all - // Threads in the AppContext + doDispatch = false; // AppContext.dispose() interrupts all + // Threads in the AppContext } catch (Throwable e) { processException(e); diff --git a/jdk/src/share/classes/java/awt/EventQueue.java b/jdk/src/share/classes/java/awt/EventQueue.java index d6a1dabfc72..af9e1bf08f3 100644 --- a/jdk/src/share/classes/java/awt/EventQueue.java +++ b/jdk/src/share/classes/java/awt/EventQueue.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -1074,7 +1074,7 @@ public class EventQueue { } } - final boolean detachDispatchThread(EventDispatchThread edt, boolean forceDetach) { + final void detachDispatchThread(EventDispatchThread edt) { /* * Minimize discard possibility for non-posted events */ @@ -1090,17 +1090,9 @@ public class EventQueue { pushPopLock.lock(); try { if (edt == dispatchThread) { - /* - * Don't detach the thread if any events are pending. Not - * sure if it's a possible scenario, though. - */ - if (!forceDetach && (peekEvent() != null)) { - return false; - } dispatchThread = null; } AWTAutoShutdown.getInstance().notifyThreadFree(edt); - return true; } finally { pushPopLock.unlock(); } @@ -1159,6 +1151,10 @@ public class EventQueue { if (entry.event instanceof SentEvent) { ((SentEvent)entry.event).dispose(); } + if (entry.event instanceof InvocationEvent) { + AWTAccessor.getInvocationEventAccessor() + .dispose((InvocationEvent)entry.event); + } if (prev == null) { queues[i].head = entry.next; } else { diff --git a/jdk/src/share/classes/java/awt/Font.java b/jdk/src/share/classes/java/awt/Font.java index 3908b075c15..c5c400c651b 100644 --- a/jdk/src/share/classes/java/awt/Font.java +++ b/jdk/src/share/classes/java/awt/Font.java @@ -1334,7 +1334,7 @@ public class Font implements java.io.Serializable * Indicates whether or not this
Fontobject's style is * PLAIN. * @returntrueif thisFonthas a - * PLAIN sytle; + * PLAIN style; *falseotherwise. * @see java.awt.Font#getStyle * @since JDK1.0 diff --git a/jdk/src/share/classes/java/awt/Graphics.java b/jdk/src/share/classes/java/awt/Graphics.java index abd4b8cc50d..3e2dcb55008 100644 --- a/jdk/src/share/classes/java/awt/Graphics.java +++ b/jdk/src/share/classes/java/awt/Graphics.java @@ -105,7 +105,7 @@ public abstract class Graphics { /** * Constructs a newGraphicsobject. - * This constructor is the default contructor for a graphics + * This constructor is the default constructor for a graphics * context. ** Since
Graphicsis an abstract class, applications diff --git a/jdk/src/share/classes/java/awt/Graphics2D.java b/jdk/src/share/classes/java/awt/Graphics2D.java index f83bde71a36..c8bb23def69 100644 --- a/jdk/src/share/classes/java/awt/Graphics2D.java +++ b/jdk/src/share/classes/java/awt/Graphics2D.java @@ -305,7 +305,7 @@ import java.util.Map; * aliasing or antialiasing is being used. **
- Device coordinates are defined to be between device pixels which - * avoids any inconsistent results between aliased and antaliased + * avoids any inconsistent results between aliased and antialiased * rendering. If coordinates were defined to be at a pixel's center, some * of the pixels covered by a shape, such as a rectangle, would only be * half covered. @@ -806,7 +806,7 @@ public abstract class Graphics2D extends Graphics { * @param s the
Shapeto check for a hit * @param onStroke flag used to choose between testing the * stroked or the filled shape. If the flag istrue, the - *Strokeoultine is tested. If the flag is + *Strokeoutline is tested. If the flag is *false, the filledShapeis tested. * @returntrueif there is a hit;false* otherwise. @@ -1162,7 +1162,7 @@ public abstract class Graphics2D extends Graphics { *Component. To change the background * of theComponent, use appropriate methods of * theComponent. - * @param color the background color that isused in + * @param color the background color that is used in * subsequent calls toclearRect* @see #getBackground * @see java.awt.Graphics#clearRect diff --git a/jdk/src/share/classes/java/awt/GraphicsDevice.java b/jdk/src/share/classes/java/awt/GraphicsDevice.java index 5e3901a0dd3..3c9d4178bd6 100644 --- a/jdk/src/share/classes/java/awt/GraphicsDevice.java +++ b/jdk/src/share/classes/java/awt/GraphicsDevice.java @@ -162,7 +162,7 @@ public abstract class GraphicsDevice { *GraphicsEnvironment. Although there is * no public method to set thisString, a programmer can * use theStringfor debugging purposes. Vendors of - * the JavaTM Runtime Environment can + * the Java™ Runtime Environment can * format the return value of theString. To determine * how to interpret the value of theString, contact the * vendor of your Java Runtime. To find out who the vendor is, from @@ -325,7 +325,14 @@ public abstract class GraphicsDevice { // Note that we use the graphics configuration of the device, // not the window's, because we're setting the fs window for // this device. - Rectangle screenBounds = getDefaultConfiguration().getBounds(); + final GraphicsConfiguration gc = getDefaultConfiguration(); + final Rectangle screenBounds = gc.getBounds(); + if (SunToolkit.isDispatchThreadForAppContext(fullScreenWindow)) { + // Update graphics configuration here directly and do not wait + // asynchronous notification from the peer. Note that + // setBounds() will reset a GC, if it was set incorrectly. + fullScreenWindow.setGraphicsConfiguration(gc); + } fullScreenWindow.setBounds(screenBounds.x, screenBounds.y, screenBounds.width, screenBounds.height); fullScreenWindow.setVisible(true); diff --git a/jdk/src/share/classes/java/awt/GraphicsEnvironment.java b/jdk/src/share/classes/java/awt/GraphicsEnvironment.java index 9e1da05e35f..8a655ba99b8 100644 --- a/jdk/src/share/classes/java/awt/GraphicsEnvironment.java +++ b/jdk/src/share/classes/java/awt/GraphicsEnvironment.java @@ -263,7 +263,7 @@ public abstract class GraphicsEnvironment { * available in thisGraphicsEnvironment. Typical usage * would be to allow a user to select a particular font. Then, the * application can size the font and set various font attributes by - * calling thederiveFontmethod on the choosen instance. + * calling thederiveFontmethod on the chosen instance. ** This method provides for the application the most precise control * over which
Fontinstance is used to render text. diff --git a/jdk/src/share/classes/java/awt/GridBagLayout.java b/jdk/src/share/classes/java/awt/GridBagLayout.java index 1362e57dd76..8ac290a7a42 100644 --- a/jdk/src/share/classes/java/awt/GridBagLayout.java +++ b/jdk/src/share/classes/java/awt/GridBagLayout.java @@ -125,9 +125,9 @@ import java.util.Arrays; **
- * *- * Absolute Values
- * Orientation Relative Values
+ * Baseline Relative Values
+ * Absolute Values
+ * Orientation Relative Values
* Baseline Relative Values
* @@ -255,10 +255,10 @@ import java.util.Arrays; * *
* - * *+ *
*
- * *+ *
*
* Figure 2: Horizontal, Left-to-Right @@ -366,7 +366,7 @@ java.io.Serializable { static final int EMPIRICMULTIPLIER = 2; /** - * This field is no longer used to reserve arrays and keeped for backward + * This field is no longer used to reserve arrays and kept for backward * compatibility. Previously, this was * the maximum number of grid positions (both horizontal and * vertical) that could be laid out by the grid bag layout. @@ -444,7 +444,7 @@ java.io.Serializable { * applied to the gridbag after all of the minimum row * heights have been calculated. * IfrowHeightshas more elements than the number of - * rows, rowa are added to the gridbag to match + * rows, rows are added to the gridbag to match * the number of elements inrowHeights. * * @serial @@ -533,7 +533,7 @@ java.io.Serializable { * and returnsnull. * * @param comp the component to be queried - * @return the contraints for the specified component + * @return the constraints for the specified component */ protected GridBagConstraints lookupConstraints(Component comp) { GridBagConstraints constraints = comptable.get(comp); @@ -800,7 +800,7 @@ java.io.Serializable { /** * Lays out the specified container using this grid bag layout. * This method reshapes components in the specified container in - * order to satisfy the contraints of thisGridBagLayout+ * order to satisfy the constraints of thisGridBagLayout* object. ** Most applications do not call this method directly. @@ -897,7 +897,7 @@ java.io.Serializable { *
*
* * This also caches the minsizes for all the children when they are @@ -979,7 +979,7 @@ java.io.Serializable { /** * This method is obsolete and supplied for backwards - * compatability only; new code should call {@link + * compatibility only; new code should call {@link * #getLayoutInfo(java.awt.Container, int) getLayoutInfo} instead. * This method is the same as- Figure out the dimensions of the layout grid. *
- Determine which cells the components occupy. - *
- Distribute the weights and min sizes amoung the rows/columns. + *
- Distribute the weights and min sizes among the rows/columns. *
getLayoutInfo; * refer togetLayoutInfofor details on parameters @@ -1612,7 +1612,7 @@ java.io.Serializable { /** * This method is obsolete and supplied for backwards - * compatability only; new code should call {@link + * compatibility only; new code should call {@link * #adjustForGravity(java.awt.GridBagConstraints, java.awt.Rectangle) * adjustForGravity} instead. * This method is the same asadjustForGravity; @@ -1993,7 +1993,7 @@ java.io.Serializable { /** * This method is obsolete and supplied for backwards - * compatability only; new code should call {@link + * compatibility only; new code should call {@link * #getMinSize(java.awt.Container, GridBagLayoutInfo) getMinSize} instead. * This method is the same asgetMinSize; * refer togetMinSizefor details on parameters @@ -2033,7 +2033,7 @@ java.io.Serializable { /** * This method is obsolete and supplied for backwards - * compatability only; new code should call {@link + * compatibility only; new code should call {@link * #arrangeGrid(Container) arrangeGrid} instead. * This method is the same asarrangeGrid; * refer toarrangeGridfor details on the @@ -2229,6 +2229,6 @@ java.io.Serializable { } } - // Added for serial backwards compatability (4348425) + // Added for serial backwards compatibility (4348425) static final long serialVersionUID = 8838754796412211005L; } diff --git a/jdk/src/share/classes/java/awt/KeyEventDispatcher.java b/jdk/src/share/classes/java/awt/KeyEventDispatcher.java index 6d2215e2359..9970ac586e3 100644 --- a/jdk/src/share/classes/java/awt/KeyEventDispatcher.java +++ b/jdk/src/share/classes/java/awt/KeyEventDispatcher.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -51,6 +51,7 @@ import java.awt.event.KeyEvent; * @see KeyboardFocusManager#removeKeyEventDispatcher * @since 1.4 */ +@FunctionalInterface public interface KeyEventDispatcher { /** diff --git a/jdk/src/share/classes/java/awt/KeyEventPostProcessor.java b/jdk/src/share/classes/java/awt/KeyEventPostProcessor.java index 12440aa1f95..5a36b9536b1 100644 --- a/jdk/src/share/classes/java/awt/KeyEventPostProcessor.java +++ b/jdk/src/share/classes/java/awt/KeyEventPostProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -54,6 +54,7 @@ import java.awt.event.KeyEvent; * @see KeyboardFocusManager#removeKeyEventPostProcessor * @since 1.4 */ +@FunctionalInterface public interface KeyEventPostProcessor { /** diff --git a/jdk/src/share/classes/java/awt/KeyboardFocusManager.java b/jdk/src/share/classes/java/awt/KeyboardFocusManager.java index 8f869fa19c4..0184083ec5c 100644 --- a/jdk/src/share/classes/java/awt/KeyboardFocusManager.java +++ b/jdk/src/share/classes/java/awt/KeyboardFocusManager.java @@ -2663,7 +2663,7 @@ public abstract class KeyboardFocusManager * only if we have the last request to dispatch. If the last request * fails, focus will be restored to either the component of the last * previously succedded request, or to to the focus owner that was - * before this clearing proccess. + * before this clearing process. */ if (!iter.hasNext()) { disableRestoreFocus = false; diff --git a/jdk/src/share/classes/java/awt/LinearGradientPaint.java b/jdk/src/share/classes/java/awt/LinearGradientPaint.java index e9fbcfc5d86..f4af6026da2 100644 --- a/jdk/src/share/classes/java/awt/LinearGradientPaint.java +++ b/jdk/src/share/classes/java/awt/LinearGradientPaint.java @@ -94,7 +94,8 @@ import java.beans.ConstructorProperties; * of the three cycle methods: **
- * * * @see java.awt.Paint diff --git a/jdk/src/share/classes/java/awt/List.java b/jdk/src/share/classes/java/awt/List.java index dba6ac0bcdf..b3be9aeaf2e 100644 --- a/jdk/src/share/classes/java/awt/List.java +++ b/jdk/src/share/classes/java/awt/List.java @@ -797,7 +797,7 @@ public class List extends Component implements ItemSelectable, Accessible { } /** - * Gets the minumum dimensions for a list with the specified + * Gets the minimum dimensions for a list with the specified * number of rows. * @param rows number of rows in the list * @return the minimum dimensions for displaying this scrolling list @@ -1164,7 +1164,7 @@ public class List extends Component implements ItemSelectable, Accessible { /* * Serialization support. Since the value of the selected - * field isn't neccessarily up to date we sync it up with the + * field isn't necessarily up to date, we sync it up with the * peer before serializing. */ diff --git a/jdk/src/share/classes/java/awt/MediaTracker.java b/jdk/src/share/classes/java/awt/MediaTracker.java index 9b8ba3cfb23..23ec3577274 100644 --- a/jdk/src/share/classes/java/awt/MediaTracker.java +++ b/jdk/src/share/classes/java/awt/MediaTracker.java @@ -744,7 +744,7 @@ public class MediaTracker implements java.io.Serializable { * All instances of+ *
*
Imagebeing tracked * under the specified ID are removed regardless of scale. * @param image the image to be removed - * @param id the tracking ID frrom which to remove the image + * @param id the tracking ID from which to remove the image * @see java.awt.MediaTracker#removeImage(java.awt.Image) * @see java.awt.MediaTracker#removeImage(java.awt.Image, int, int, int) * @since JDK1.1 diff --git a/jdk/src/share/classes/java/awt/MenuComponent.java b/jdk/src/share/classes/java/awt/MenuComponent.java index 4895fdc9548..8718821daaa 100644 --- a/jdk/src/share/classes/java/awt/MenuComponent.java +++ b/jdk/src/share/classes/java/awt/MenuComponent.java @@ -402,7 +402,7 @@ public abstract class MenuComponent implements java.io.Serializable { /** * Gets this component's locking object (the object that owns the thread - * sychronization monitor) for AWT component-tree and layout + * synchronization monitor) for AWT component-tree and layout * operations. * @return this component's locking object */ @@ -686,7 +686,7 @@ public abstract class MenuComponent implements java.io.Serializable { /** * Gets theCursorof this object. * - * @return theCurso, if supported, of the object; + * @return theCursor, if supported, of the object; * otherwise,null*/ public Cursor getCursor() { diff --git a/jdk/src/share/classes/java/awt/MultipleGradientPaintContext.java b/jdk/src/share/classes/java/awt/MultipleGradientPaintContext.java index edf6bd8267b..cdff1907d95 100644 --- a/jdk/src/share/classes/java/awt/MultipleGradientPaintContext.java +++ b/jdk/src/share/classes/java/awt/MultipleGradientPaintContext.java @@ -81,7 +81,7 @@ abstract class MultipleGradientPaintContext implements PaintContext { protected float a00, a01, a10, a11, a02, a12; /** - * This boolean specifies wether we are in simple lookup mode, where an + * This boolean specifies whether we are in simple lookup mode, where an * input value between 0 and 1 may be used to directly index into a single * array of gradient colors. If this boolean value is false, then we have * to use a 2-step process where we have to determine which gradient array diff --git a/jdk/src/share/classes/java/awt/Polygon.java b/jdk/src/share/classes/java/awt/Polygon.java index 08a545b78bc..5e649da6d76 100644 --- a/jdk/src/share/classes/java/awt/Polygon.java +++ b/jdk/src/share/classes/java/awt/Polygon.java @@ -246,7 +246,7 @@ public class Polygon implements Shape, java.io.Serializable { } /* - * Resizes the bounding box to accomodate the specified coordinates. + * Resizes the bounding box to accommodate the specified coordinates. * @param x, y the specified coordinates */ void updateBounds(int x, int y) { diff --git a/jdk/src/share/classes/java/awt/PopupMenu.java b/jdk/src/share/classes/java/awt/PopupMenu.java index 0e700638240..70ece5970ed 100644 --- a/jdk/src/share/classes/java/awt/PopupMenu.java +++ b/jdk/src/share/classes/java/awt/PopupMenu.java @@ -150,7 +150,7 @@ public class PopupMenu extends Menu { * @exception IllegalArgumentException if thisPopupMenu* has a non-Componentparent * @exception IllegalArgumentException if the origin is not in the - * parent's heirarchy + * parent's hierarchy * @exception RuntimeException if the parent is not showing on screen */ public void show(Component origin, int x, int y) { diff --git a/jdk/src/share/classes/java/awt/RadialGradientPaint.java b/jdk/src/share/classes/java/awt/RadialGradientPaint.java index a0bf944b93c..5fd08734f14 100644 --- a/jdk/src/share/classes/java/awt/RadialGradientPaint.java +++ b/jdk/src/share/classes/java/awt/RadialGradientPaint.java @@ -80,14 +80,16 @@ import java.beans.ConstructorProperties; * from the focus point. The following figure shows that the distance AB * is equal to the distance BC, and the distance AD is equal to the distance DE. *- * * If the gradient and graphics rendering transforms are uniformly scaled and * the user sets the focus so that it coincides with the center of the circle, * the gradient color proportions are equal for any line drawn from the center. * The following figure shows the distances AB, BC, AD, and DE. They are all equal. *+ *
*
- * * Note that some minor variations in distances may occur due to sampling at * the granularity of a pixel. @@ -117,7 +119,8 @@ import java.beans.ConstructorProperties; * (centered) focus for each of the three cycle methods: *+ *
*
*
- * * *+ *
*
@@ -141,7 +144,8 @@ import java.beans.ConstructorProperties; * focus for each of the three cycle methods: *
*
- * * * @see java.awt.Paint diff --git a/jdk/src/share/classes/java/awt/RenderingHints.java b/jdk/src/share/classes/java/awt/RenderingHints.java index 48cf9e11d32..42386797055 100644 --- a/jdk/src/share/classes/java/awt/RenderingHints.java +++ b/jdk/src/share/classes/java/awt/RenderingHints.java @@ -101,7 +101,7 @@ public class RenderingHints // - the integer key of the Key // It is theoretically possible for 2 distinct keys to collide // along all 3 of those attributes in the context of multiple - // class loaders, but that occurence will be extremely rare and + // class loaders, but that occurrence will be extremely rare and // we account for that possibility below in the recordIdentity // method by slightly relaxing our uniqueness guarantees if we // end up in that situation. @@ -729,7 +729,7 @@ public class RenderingHints * from one side of a sample to the other. * As the image is scaled down, more image pixels have their * color samples represented in the resulting output since each - * output pixel recieves color information from up to 4 image + * output pixel receives color information from up to 4 image * pixels. * * @see #KEY_INTERPOLATION diff --git a/jdk/src/share/classes/java/awt/ScrollPane.java b/jdk/src/share/classes/java/awt/ScrollPane.java index a2e2fc7ee0a..626fed6c0b1 100644 --- a/jdk/src/share/classes/java/awt/ScrollPane.java +++ b/jdk/src/share/classes/java/awt/ScrollPane.java @@ -425,8 +425,8 @@ public class ScrollPane extends Container implements Accessible { /** * Determine the size to allocate the child component. - * If the viewport area is bigger than the childs - * preferred size then the child is allocated enough + * If the viewport area is bigger than the preferred size + * of the child then the child is allocated enough * to fill the viewport, otherwise the child is given * it's preferred size. */ diff --git a/jdk/src/share/classes/java/awt/ScrollPaneAdjustable.java b/jdk/src/share/classes/java/awt/ScrollPaneAdjustable.java index d51a84250c8..be3ad5fec6a 100644 --- a/jdk/src/share/classes/java/awt/ScrollPaneAdjustable.java +++ b/jdk/src/share/classes/java/awt/ScrollPaneAdjustable.java @@ -336,7 +336,7 @@ public class ScrollPaneAdjustable implements Adjustable, Serializable { * the AdjustementEvent with specified type and value. * * @param v the new value of the scrollbar - * @param type the type of the scrolling operation occured + * @param type the type of the scrolling operation occurred */ private void setTypedValue(int v, int type) { v = Math.max(v, minimum); diff --git a/jdk/src/share/classes/java/awt/Shape.java b/jdk/src/share/classes/java/awt/Shape.java index e478ea7f3d8..8015d4593de 100644 --- a/jdk/src/share/classes/java/awt/Shape.java +++ b/jdk/src/share/classes/java/awt/Shape.java @@ -269,7 +269,7 @@ public interface Shape { * Tests if the interior of the+ *
*
Shapeentirely contains * the specified rectangular area. All coordinates that lie inside * the rectangular area must lie within theShapefor the - * entire rectanglar area to be considered contained within the + * entire rectangular area to be considered contained within the *Shape. ** The {@code Shape.contains()} method allows a {@code Shape} diff --git a/jdk/src/share/classes/java/awt/TextComponent.java b/jdk/src/share/classes/java/awt/TextComponent.java index 331b20f70cc..4b72de8d638 100644 --- a/jdk/src/share/classes/java/awt/TextComponent.java +++ b/jdk/src/share/classes/java/awt/TextComponent.java @@ -1000,7 +1000,7 @@ public class TextComponent extends Component implements Accessible { * Return 0 if the text is empty, or the caret position * if no selection. * - * @return the index into teh text of the end of the selection >= 0 + * @return the index into the text of the end of the selection >= 0 */ public int getSelectionEnd() { return TextComponent.this.getSelectionEnd(); diff --git a/jdk/src/share/classes/java/awt/TextField.java b/jdk/src/share/classes/java/awt/TextField.java index cfdaf51e213..85eaba2d17b 100644 --- a/jdk/src/share/classes/java/awt/TextField.java +++ b/jdk/src/share/classes/java/awt/TextField.java @@ -405,7 +405,7 @@ public class TextField extends TextComponent { } /** - * Gets the minumum dimensions for a text field with + * Gets the minimum dimensions for a text field with * the specified number of columns. * @param columns the number of columns in * this text field. @@ -430,7 +430,7 @@ public class TextField extends TextComponent { } /** - * Gets the minumum dimensions for this text field. + * Gets the minimum dimensions for this text field. * @return the minimum dimensions for * displaying this text field. * @since JDK1.1 diff --git a/jdk/src/share/classes/java/awt/Toolkit.java b/jdk/src/share/classes/java/awt/Toolkit.java index 606df3ed154..dcc1fa15b4e 100644 --- a/jdk/src/share/classes/java/awt/Toolkit.java +++ b/jdk/src/share/classes/java/awt/Toolkit.java @@ -1457,7 +1457,7 @@ public abstract class Toolkit { *
Note that multi-frame images are invalid and may cause this * method to hang. * - * @param cursor the image to display when the cursor is actived + * @param cursor the image to display when the cursor is activated * @param hotSpot the X and Y of the large cursor's hot spot; the * hotSpot values must be less than the Dimension returned by *
getBestCursorSize@@ -1809,8 +1809,7 @@ public abstract class Toolkit { // This property should never be cached if (propertyName.equals("awt.dynamicLayoutSupported")) { - value = lazilyLoadDesktopProperty(propertyName); - return value; + return getDefaultToolkit().lazilyLoadDesktopProperty(propertyName); } value = desktopProperties.get(propertyName); diff --git a/jdk/src/share/classes/java/awt/Window.java b/jdk/src/share/classes/java/awt/Window.java index 6f66395169b..ceb901a3c4b 100644 --- a/jdk/src/share/classes/java/awt/Window.java +++ b/jdk/src/share/classes/java/awt/Window.java @@ -1656,7 +1656,7 @@ public class Window extends Container implements Accessible { * effect until it is hidden and then shown again. * * @param exclusionType the modal exclusion type for this window; a {@code null} - * value is equivivalent to {@link Dialog.ModalExclusionType#NO_EXCLUDE + * value is equivalent to {@link Dialog.ModalExclusionType#NO_EXCLUDE * NO_EXCLUDE} * @throws SecurityException if the calling thread does not have permission * to set the modal exclusion property to the window with the given @@ -2079,7 +2079,7 @@ public class Window extends Container implements Accessible { } /** - * Processes window focus event occuring on this window by + * Processes window focus event occurring on this window by * dispatching them to any registered WindowFocusListener objects. * NOTE: this method will not be called unless window focus events * are enabled for this window. This happens when one of the @@ -2114,7 +2114,7 @@ public class Window extends Container implements Accessible { } /** - * Processes window state event occuring on this window by + * Processes window state event occurring on this window by * dispatching them to any registered {@code WindowStateListener} * objects. * NOTE: this method will not be called unless window state events @@ -2191,13 +2191,11 @@ public class Window extends Container implements Accessible { * When the window is later shown, it will be always-on-top. * *When this method is called on a window with a value of - * {@code false} the always-on-top state is set to normal. The - * window remains in the top-most position but it`s z-order can be - * changed as for any other window. Calling this method with a value - * of {@code false} on a window that has a normal state has no - * effect. Setting the always-on-top state to false has no effect on - * the relative z-order of the windows if there are no other - * always-on-top windows. + * {@code false} the always-on-top state is set to normal. It may also + * cause an unspecified, platform-dependent change in the z-order of + * top-level windows, but other always-on-top windows will remain in + * top-most position. Calling this method with a value of {@code false} + * on a window that has a normal state has no effect. * *
Note: some platforms might not support always-on-top * windows. To detect if always-on-top windows are supported by the @@ -2978,11 +2976,11 @@ public class Window extends Container implements Accessible { addToWindowList(); initGC(null); + ownedWindowList = new Vector<>(); } private void deserializeResources(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException { - ownedWindowList = new Vector<>(); if (windowSerializedDataVersion < 2) { // Translate old-style focus tracking to new model. For 1.4 and @@ -3678,7 +3676,7 @@ public class Window extends Container implements Accessible { * and either the {@code UnsupportedOperationException} or {@code * IllegalComponentStateException} will be thrown. *
- * The tranlucency levels of individual pixels may also be effected by the + * The translucency levels of individual pixels may also be effected by the * alpha component of their color (see {@link Window#setBackground(Color)}) and the * opacity value (see {@link #setOpacity(float)}). See {@link * GraphicsDevice.WindowTranslucency} for more details. @@ -3749,7 +3747,7 @@ public class Window extends Container implements Accessible { *
* If the windowing system supports the {@link * GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT PERPIXEL_TRANSLUCENT} - * tranclucency, the alpha component of the given background color + * translucency, the alpha component of the given background color * may effect the mode of operation for this window: it indicates whether * this window must be opaque (alpha equals {@code 1.0f}) or per-pixel translucent * (alpha is less than {@code 1.0f}). If the given background color is diff --git a/jdk/src/share/classes/java/awt/color/package.html b/jdk/src/share/classes/java/awt/color/package.html index 8b82f8e59eb..13ab17419a3 100644 --- a/jdk/src/share/classes/java/awt/color/package.html +++ b/jdk/src/share/classes/java/awt/color/package.html @@ -25,6 +25,7 @@ +
Provides classes for color spaces. It contains an diff --git a/jdk/src/share/classes/java/awt/datatransfer/DataFlavor.java b/jdk/src/share/classes/java/awt/datatransfer/DataFlavor.java index 86ac95cb172..90789edc97c 100644 --- a/jdk/src/share/classes/java/awt/datatransfer/DataFlavor.java +++ b/jdk/src/share/classes/java/awt/datatransfer/DataFlavor.java @@ -104,7 +104,7 @@ import static sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION; public class DataFlavor implements Externalizable, Cloneable { private static final long serialVersionUID = 8367026044764648243L; - private static final Class ioInputStreamClass = java.io.InputStream.class; + private static final Class ioInputStreamClass = InputStream.class; /** * Tries to load a class from: the bootstrap loader, the system loader, @@ -151,7 +151,7 @@ public class DataFlavor implements Externalizable, Cloneable { /* * private initializer */ - static private DataFlavor createConstant(Class rc, String prn) { + static private DataFlavor createConstant(Class> rc, String prn) { try { return new DataFlavor(rc, prn); } catch (Exception e) { @@ -323,7 +323,7 @@ public class DataFlavor implements Externalizable, Cloneable { * @exception NullPointerException if either primaryType, *subTypeorrepresentationClassis null */ - private DataFlavor(String primaryType, String subType, MimeTypeParameterList params, Class representationClass, String humanPresentableName) { + private DataFlavor(String primaryType, String subType, MimeTypeParameterList params, Class> representationClass, String humanPresentableName) { super(); if (primaryType == null) { throw new NullPointerException("primaryType"); @@ -340,7 +340,7 @@ public class DataFlavor implements Externalizable, Cloneable { params.set("class", representationClass.getName()); if (humanPresentableName == null) { - humanPresentableName = (String)params.get("humanPresentableName"); + humanPresentableName = params.get("humanPresentableName"); if (humanPresentableName == null) humanPresentableName = primaryType + "/" + subType; @@ -741,7 +741,7 @@ public class DataFlavor implements Externalizable, Cloneable { return bestFlavor; } - private static Comparator textFlavorComparator; + private static ComparatortextFlavorComparator; static class TextFlavorComparator extends DataTransferer.DataFlavorComparator { @@ -1447,6 +1447,6 @@ public class DataFlavor implements Externalizable, Cloneable { /** Java class of objects this DataFlavor represents **/ - private Class representationClass; + private Class> representationClass; } // class DataFlavor diff --git a/jdk/src/share/classes/java/awt/datatransfer/FlavorMap.java b/jdk/src/share/classes/java/awt/datatransfer/FlavorMap.java index e5041073401..6bfbd510fce 100644 --- a/jdk/src/share/classes/java/awt/datatransfer/FlavorMap.java +++ b/jdk/src/share/classes/java/awt/datatransfer/FlavorMap.java @@ -30,7 +30,7 @@ import java.util.Map; /** * A two-way Map between "natives" (Strings), which correspond to platform- - * specfic data formats, and "flavors" (DataFlavors), which corerspond to + * specific data formats, and "flavors" (DataFlavors), which correspond to * platform-independent MIME types. FlavorMaps need not be symmetric, but * typically are. * diff --git a/jdk/src/share/classes/java/awt/datatransfer/MimeTypeParameterList.java b/jdk/src/share/classes/java/awt/datatransfer/MimeTypeParameterList.java index 80947d9ea6f..2ef30747632 100644 --- a/jdk/src/share/classes/java/awt/datatransfer/MimeTypeParameterList.java +++ b/jdk/src/share/classes/java/awt/datatransfer/MimeTypeParameterList.java @@ -33,7 +33,7 @@ import java.util.Set; /** - * An object that encapsualtes the parameter list of a MimeType + * An object that encapsulates the parameter list of a MimeType * as defined in RFC 2045 and 2046. * * @author jeff.dunn@eng.sun.com @@ -44,13 +44,13 @@ class MimeTypeParameterList implements Cloneable { * Default constructor. */ public MimeTypeParameterList() { - parameters = new Hashtable(); + parameters = new Hashtable<>(); } public MimeTypeParameterList(String rawdata) throws MimeTypeParseException { - parameters = new Hashtable(); + parameters = new Hashtable<>(); // now parse rawdata parse(rawdata); @@ -59,10 +59,10 @@ class MimeTypeParameterList implements Cloneable { public int hashCode() { int code = Integer.MAX_VALUE/45; // "random" value for empty lists String paramName = null; - Enumeration enum_ = this.getNames(); + Enumeration enum_ = this.getNames(); while (enum_.hasMoreElements()) { - paramName = (String)enum_.nextElement(); + paramName = enum_.nextElement(); code += paramName.hashCode(); code += this.get(paramName).hashCode(); } @@ -87,14 +87,14 @@ class MimeTypeParameterList implements Cloneable { String name = null; String thisValue = null; String thatValue = null; - Set entries = parameters.entrySet(); - Iterator iterator = entries.iterator(); - Map.Entry entry = null; + Set > entries = parameters.entrySet(); + Iterator > iterator = entries.iterator(); + Map.Entry entry = null; while (iterator.hasNext()) { - entry = (Map.Entry)iterator.next(); - name = (String)entry.getKey(); - thisValue = (String)entry.getValue(); - thatValue = (String)that.parameters.get(name); + entry = iterator.next(); + name = entry.getKey(); + thisValue = entry.getValue(); + thatValue = that.parameters.get(name); if ((thisValue == null) || (thatValue == null)) { // both null -> equal, only one null -> not equal if (thisValue != thatValue) { @@ -250,7 +250,7 @@ class MimeTypeParameterList implements Cloneable { * is no current association. */ public String get(String name) { - return (String)parameters.get(name.trim().toLowerCase()); + return parameters.get(name.trim().toLowerCase()); } /** @@ -271,7 +271,7 @@ class MimeTypeParameterList implements Cloneable { /** * Retrieve an enumeration of all the names in this list. */ - public Enumeration getNames() { + public Enumeration getNames() { return parameters.keys(); } @@ -279,15 +279,15 @@ class MimeTypeParameterList implements Cloneable { // Heuristic: 8 characters per field StringBuilder buffer = new StringBuilder(parameters.size() * 16); - Enumeration keys = parameters.keys(); + Enumeration keys = parameters.keys(); while(keys.hasMoreElements()) { buffer.append("; "); - String key = (String)keys.nextElement(); + String key = keys.nextElement(); buffer.append(key); buffer.append('='); - buffer.append(quote((String)parameters.get(key))); + buffer.append(quote(parameters.get(key))); } return buffer.toString(); @@ -307,7 +307,7 @@ class MimeTypeParameterList implements Cloneable { return newObj; } - private Hashtable parameters; + private Hashtable parameters; // below here be scary parsing related things diff --git a/jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java b/jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java index ef154acdc2e..1258881c1e8 100644 --- a/jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java +++ b/jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java @@ -1324,7 +1324,7 @@ public final class SystemFlavorMap implements FlavorMap, FlavorTable { List retval = null; for (DataFlavor dataFlavor : convertMimeTypeToDataFlavors(type)) { List natives = getFlavorToNative().get(dataFlavor); - if (!natives.isEmpty()) { + if (natives != null && !natives.isEmpty()) { if (retval == null) { retval = new ArrayList<>(); } diff --git a/jdk/src/share/classes/java/awt/datatransfer/package.html b/jdk/src/share/classes/java/awt/datatransfer/package.html index a16e0090889..f33946cac58 100644 --- a/jdk/src/share/classes/java/awt/datatransfer/package.html +++ b/jdk/src/share/classes/java/awt/datatransfer/package.html @@ -25,6 +25,7 @@ + Provides interfaces and classes for transferring data diff --git a/jdk/src/share/classes/java/awt/dnd/DragGestureListener.java b/jdk/src/share/classes/java/awt/dnd/DragGestureListener.java index 76b719bf70b..5da844c80b4 100644 --- a/jdk/src/share/classes/java/awt/dnd/DragGestureListener.java +++ b/jdk/src/share/classes/java/awt/dnd/DragGestureListener.java @@ -50,8 +50,8 @@ import java.util.EventListener; /** * This method is invoked by the {@code DragGestureRecognizer} * when the {@code DragGestureRecognizer} detects a platform-dependent - * drag initiating gesture. To intiate the drag and drop operation, - * if approtiate, {@link DragGestureEvent#startDrag startDrag()} method on + * drag initiating gesture. To initiate the drag and drop operation, + * if appropriate, {@link DragGestureEvent#startDrag startDrag()} method on * the {@code DragGestureEvent} has to be invoked. * * @see java.awt.dnd.DragGestureRecognizer diff --git a/jdk/src/share/classes/java/awt/dnd/DragGestureRecognizer.java b/jdk/src/share/classes/java/awt/dnd/DragGestureRecognizer.java index 60c1876fddf..331f085a3d3 100644 --- a/jdk/src/share/classes/java/awt/dnd/DragGestureRecognizer.java +++ b/jdk/src/share/classes/java/awt/dnd/DragGestureRecognizer.java @@ -46,7 +46,7 @@ import java.io.Serializable; *
* The appropriate
DragGestureRecognizer* subclass instance is obtained from the - * {@link DragSource} asssociated with + * {@link DragSource} associated with * a particularComponent, or from theToolkitobject via its * {@link java.awt.Toolkit#createDragGestureRecognizer createDragGestureRecognizer()} * method. diff --git a/jdk/src/share/classes/java/awt/dnd/DragSourceContext.java b/jdk/src/share/classes/java/awt/dnd/DragSourceContext.java index 9655689a237..dd2a4150a85 100644 --- a/jdk/src/share/classes/java/awt/dnd/DragSourceContext.java +++ b/jdk/src/share/classes/java/awt/dnd/DragSourceContext.java @@ -474,7 +474,7 @@ public class DragSourceContext protected synchronized void updateCurrentCursor(int sourceAct, int targetAct, int status) { - // if the cursor has been previously set then dont do any defaults + // if the cursor has been previously set then don't do any defaults // processing. if (useCustomCursor) { diff --git a/jdk/src/share/classes/java/awt/dnd/DragSourceEvent.java b/jdk/src/share/classes/java/awt/dnd/DragSourceEvent.java index 62ab7fcb27a..05e29f53a45 100644 --- a/jdk/src/share/classes/java/awt/dnd/DragSourceEvent.java +++ b/jdk/src/share/classes/java/awt/dnd/DragSourceEvent.java @@ -38,7 +38,7 @@ import java.util.EventObject; * over, or exits a drop site, when the drop action changes, and when the drag * ends. The location for the generatedDragSourceEventspecifies * the mouse cursor location in screen coordinates at the moment this event - * occured. + * occurred. ** In a multi-screen environment without a virtual device, the cursor location is * specified in the coordinate system of the initiator @@ -71,7 +71,7 @@ public class DragSourceEvent extends EventObject { /** * The horizontal coordinate for the cursor location at the moment this - * event occured if the cursor location is specified for this event; + * event occurred if the cursor location is specified for this event; * otherwise zero. * * @serial @@ -80,7 +80,7 @@ public class DragSourceEvent extends EventObject { /** * The vertical coordinate for the cursor location at the moment this event - * occured if the cursor location is specified for this event; + * occurred if the cursor location is specified for this event; * otherwise zero. * * @serial @@ -141,7 +141,7 @@ public class DragSourceEvent extends EventObject { /** * This method returns a
Pointindicating the cursor - * location in screen coordinates at the moment this event occured, or + * location in screen coordinates at the moment this event occurred, or *nullif the cursor location is not specified for this * event. * @@ -159,7 +159,7 @@ public class DragSourceEvent extends EventObject { /** * This method returns the horizontal coordinate of the cursor location in - * screen coordinates at the moment this event occured, or zero if the + * screen coordinates at the moment this event occurred, or zero if the * cursor location is not specified for this event. * * @return an integer indicating the horizontal coordinate of the cursor @@ -172,7 +172,7 @@ public class DragSourceEvent extends EventObject { /** * This method returns the vertical coordinate of the cursor location in - * screen coordinates at the moment this event occured, or zero if the + * screen coordinates at the moment this event occurred, or zero if the * cursor location is not specified for this event. * * @return an integer indicating the vertical coordinate of the cursor diff --git a/jdk/src/share/classes/java/awt/dnd/DropTarget.java b/jdk/src/share/classes/java/awt/dnd/DropTarget.java index 4006f728c9b..0480ba5f67e 100644 --- a/jdk/src/share/classes/java/awt/dnd/DropTarget.java +++ b/jdk/src/share/classes/java/awt/dnd/DropTarget.java @@ -612,7 +612,7 @@ public class DropTarget implements DropTargetListener, Serializable { dropTargetContext = (DropTargetContext)f.get("dropTargetContext", null); } catch (IllegalArgumentException e) { - // Pre-1.4 support. 'dropTargetContext' was previoulsy transient + // Pre-1.4 support. 'dropTargetContext' was previously transient } if (dropTargetContext == null) { dropTargetContext = createDropTargetContext(); @@ -789,7 +789,7 @@ public class DropTarget implements DropTargetListener, Serializable { } /** - * update autoscrolling with current cursor locn + * update autoscrolling with current cursor location ** @param dragCursorLocn the
Point*/ diff --git a/jdk/src/share/classes/java/awt/dnd/InvalidDnDOperationException.java b/jdk/src/share/classes/java/awt/dnd/InvalidDnDOperationException.java index 72a81fc75b8..37bf2cb8e1b 100644 --- a/jdk/src/share/classes/java/awt/dnd/InvalidDnDOperationException.java +++ b/jdk/src/share/classes/java/awt/dnd/InvalidDnDOperationException.java @@ -29,7 +29,7 @@ package java.awt.dnd; * This exception is thrown by various methods in the java.awt.dnd package. * It is usually thrown to indicate that the target in question is unable * to undertake the requested operation that the present time, since the - * undrelying DnD system is not in the appropriate state. + * underlying DnD system is not in the appropriate state. * * @since 1.2 */ diff --git a/jdk/src/share/classes/java/awt/dnd/package.html b/jdk/src/share/classes/java/awt/dnd/package.html index b39c069b0c5..f2df34617bd 100644 --- a/jdk/src/share/classes/java/awt/dnd/package.html +++ b/jdk/src/share/classes/java/awt/dnd/package.html @@ -25,6 +25,7 @@ +Drag and Drop is a direct manipulation gesture found in many Graphical @@ -51,18 +52,18 @@ states (not entirely sequentially): associated with some presentation element ( Component) in the GUI, to initiate a Drag and Drop of some potentiallyTransferabledata. -+
- 1 or more
DropTarget(s) come into/go out of existence, associated with presentation elements in the GUI (Components), potentially capable of consumingTransferabledata types. -+
- A
DragGestureRecognizeris obtained from theDragSourceand is associated with aComponentin order to track and identify any Drag initiating gesture by the user over theComponent. -+
- A user makes a Drag gesture over the
Component, which the registeredDragGestureRecognizerdetects, and notifies its @@ -76,13 +77,13 @@ contains the abstract classMouseDragGestureRecognizerfor recognizing mouse device gestures. Other abstract subclasses may be provided by the platform to support other input devices or particularComponentclass semantics. -+
- The
DragGestureListenercauses theDragSourceto initiate the Drag and Drop operation on behalf of the user, perhaps animating the GUI Cursor and/or rendering anImageof the item(s) that are the subject of the operation. -+
- As the user gestures navigate over
Component(s) in the GUI with associatedDropTarget(s), theDragSource@@ -111,11 +112,11 @@ as follows:-
- By the transfer "operation" selected by the user, and supported by both the
DragSourceandDropTarget: Copy, Move or Reference(link). -+
- By the intersection of the set of data types provided by the
DragSourceand the set of data types comprehensible by theDropTarget. -+
- When the user terminates the drag operation, normally resulting in a successful Drop, both the
DragSourceandDropTargetreceive diff --git a/jdk/src/share/classes/java/awt/doc-files/AWTThreadIssues.html b/jdk/src/share/classes/java/awt/doc-files/AWTThreadIssues.html index 735cfdd97d6..93d185181fe 100644 --- a/jdk/src/share/classes/java/awt/doc-files/AWTThreadIssues.html +++ b/jdk/src/share/classes/java/awt/doc-files/AWTThreadIssues.html @@ -23,7 +23,11 @@ questions. --> + + ++ AWT Threading Issues
@@ -81,13 +85,13 @@ this machinery are as follows: dispatched:
- Sequentially. -
- That is, it is not permitted that several events from - this queue are dispatched simultaneously. +
- That is, it is not permitted that several events from + this queue are dispatched simultaneously.
- In the same order as they are enqueued. -
- That is, if
AWTEventA is enqueued +
- That is, if
AWTEventA is enqueued to theEventQueuebeforeAWTEventB then event B will not be - dispatched before event A. + dispatched before event A.- There is at least one alive non-daemon thread while there is at least one displayable AWT or Swing component within the diff --git a/jdk/src/share/classes/java/awt/doc-files/DesktopProperties.html b/jdk/src/share/classes/java/awt/doc-files/DesktopProperties.html index ff9b144951c..8a3923c0f40 100644 --- a/jdk/src/share/classes/java/awt/doc-files/DesktopProperties.html +++ b/jdk/src/share/classes/java/awt/doc-files/DesktopProperties.html @@ -23,7 +23,11 @@ questions. --> + + +
+ AWT Desktop Properties
@@ -51,8 +55,8 @@ unavailable for any reason, the implementation will returnThe following table summarizes the desktop properties documented here, and their value types. -
-
-
Property Name @@ -60,17 +64,17 @@ here, and their value types.Summary Description - awt.font.desktophints - java.util.Map -Font smoothing (text antialiasing) settings. +awt.font.desktophints +java.util.Map +Font smoothing (text antialiasing) settings. - sun.awt.enableExtraMouseButtons - java.lang.Boolean -Controls if mouse events from extra buttons are to be generated or not +sun.awt.enableExtraMouseButtons +java.lang.Boolean +Controls if mouse events from extra buttons are to be generated or not +
Desktop Font Rendering Hints
Desktop Property: "awt.font.desktophints"@@ -84,14 +88,14 @@ This is particularly important when creating Swing components which are required to appear consistent with native desktop components or other Swing components. -
+
Basic Usage
The standard desktop property named "awt.font.desktophints" can be used to obtain the rendering hints that best match the desktop settings. The return value is a - Map of + Map ofRenderingHintswhich can be directly applied to aGraphics2D.@@ -105,7 +109,7 @@ if (map != null) { }
Advanced Usage Tips
-+
Listening for changes
An application can listen for changes in the property @@ -161,7 +165,7 @@ RenderingHints getRenderingHints(Graphics2D g2d, if (hintsToSave.size() == 0) { return savedHints; } - /* RenderingHints.keySet() returns Set
Definitions
+Definitions
Document - a window without an owner that, together with all its child hierarchy, may be operated on as a single self-contained document. - Every window belongs to some document its root can be found as + Every window belongs to some document — its root can be found as the closest ancestor window without an owner.
@@ -92,12 +92,12 @@
Warning! Some window managers allow users to change the window - Z-order in an arbitrary way in that case the last requirement + Z-order in an arbitrary way — in that case the last requirement may not be met.
-
Note: Everywhere in this document the notion of "window" is equal - to a top-level window in the Java programming language in other words + to a top-level window in the Java programming language — in other words an instance ofjava.awt.Windowor any descendant class.Modality types
+Modality types
There are four supported modality types : @@ -163,11 +163,11 @@
-Show/hide blocking
+Show/hide blocking
Showing the window or modeless dialog: "F"
- All the visible modal dialogs are looked through if F is from the SB + All the visible modal dialogs are looked through — if F is from the SB of one of them, it becomes blocked by it. If there are several such dialogs, the first shown is used. If no such dialogs exist, F remains unblocked. @@ -185,7 +185,7 @@ dialogs outside M's SB and modal dialogs outside M's SB that do not block M).+
After the modal dialog M is shown, it becomes blocked by the first shown dialog from the first group (if there are any), all the windows from the second one become blocked by M, and all the windows from the third group @@ -197,12 +197,12 @@
Showing the document-modal dialog: "M"
All the visible application- and toolkit-modal dialogs are looked - through if M is from the SB of one of them, + through — if M is from the SB of one of them, it becomes blocked by it. If there are several such dialogs, the first shown is used. If no such dialogs exist, M remains unblocked.Showing the application-modal dialog: "M"
- All the visible toolkit-modal dialogs are looked through + All the visible toolkit-modal dialogs are looked through — if M is from the SB of one of them, it becomes blocked by it. If there are several such dialogs, the first shown is used. If no such dialogs exist, M remains unblocked. @@ -212,7 +212,7 @@-
+
The Standard Blocking Matrix current/shown @@ -293,11 +293,10 @@
Implementation note: Changing the modal exclusion type for a visible window may have no effect until it is hidden and then shown again. - - -Related AWT features
+ +Related AWT features
Always-On-Top
@@ -315,16 +314,16 @@Minimizing, maximizing and closing blocked windows
When a modal dialog blocks a window, the user may not be able to maximize or - minimize the blocked window however, the actual behavior is unspecified + minimize the blocked window— however, the actual behavior is unspecified and platform-dependent. In any case, the user can't close the blocked window - interactively but it can be closed programmatically by calling the + interactively— but it can be closed programmatically by calling thesetVisible(false)ordispose()methods on the blocked window.Blocked windows activations
When the user selects a blocked window, it may be brought to the front, along - with the blocking modal dialog which would then become the active window + with the blocking modal dialog which would then become the active window— however, the actual behavior is unspecified and platform-dependent.@@ -339,9 +338,9 @@ If the modal dialog to be hidden does not have focus, the active window remains unchanged. -
+ -Security
+Security
A special
AWTPermission,"toolkitModality", @@ -386,35 +385,35 @@Examples
-+
- + -
- Frame "F" is shown
- Document-modal dialog "Di" is shown
-- F becomes blocked by Di it's in the same document
+- F becomes blocked by Di — it's in the same document
- Document-modal dialog "Dii" is shown
-- Di becomes blocked by Dii it's in the +
- Di becomes blocked by Dii — it's in the same document
+ ![]()
- + @@ -424,45 +423,45 @@
- Frame "F" is shown
- Document-modal dialog "Di" is shown
-- F becomes blocked by Di it's in the same document
+- F becomes blocked by Di — it's in the same document
- Document-modal dialog "Dii" is shown
-- Di becomes blocked by Dii +
- Di becomes blocked by Dii — it's in the same document
- Di is hidden
-- F becomes blocked by Dii it's in the same document
+- F becomes blocked by Dii — it's in the same document
- + -
- Frame "F" is shown
- Toolkit-modal dialog "Di" is created, but not shown
- Document-modal dialog "Dii" is shown
-- F becomes blocked by Dii it's in the same document
+- F becomes blocked by Dii — it's in the same document
- Application-modal dialog "Diii" is shown
-- Dii becomes blocked by Diii +
- Dii becomes blocked by Diii — it's in the same application
- Di is shown
-- Di becomes blocked by Dii it's its owner
-- Diii remains unblocked it blocks Dii and +
- Di becomes blocked by Dii — it's its owner
+- Diii remains unblocked — it blocks Dii and Dii blocks Di
+ ![]()
- + -
- Frame "F" is shown
- Toolkit-modal dialog "Di" is created, but not shown
- Document-modal dialog "Dii" is shown
-- F becomes blocked by Dii it's in the same document
+- F becomes blocked by Dii — it's in the same document
- Application-modal dialog "Diii" is shown
-- Dii becomes blocked by Diii it's in the +
- Dii becomes blocked by Diii — it's in the same application
- Di is shown
-- Diii becomes blocked by Di Di +
- Diii becomes blocked by Di — Di is not blocked
- Di remains unblocked
+ diff --git a/jdk/src/share/classes/java/awt/event/ActionEvent.java b/jdk/src/share/classes/java/awt/event/ActionEvent.java index d549db020ca..24a91ac0cd2 100644 --- a/jdk/src/share/classes/java/awt/event/ActionEvent.java +++ b/jdk/src/share/classes/java/awt/event/ActionEvent.java @@ -95,7 +95,7 @@ public class ActionEvent extends AWTEvent { public static final int ACTION_LAST = 1001; /** - * This event id indicates that a meaningful action occured. + * This event id indicates that a meaningful action occurred. */ @Native public static final int ACTION_PERFORMED = ACTION_FIRST; //Event.ACTION_EVENT diff --git a/jdk/src/share/classes/java/awt/event/InvocationEvent.java b/jdk/src/share/classes/java/awt/event/InvocationEvent.java index 1f411e1ac1a..3f04a2316e8 100644 --- a/jdk/src/share/classes/java/awt/event/InvocationEvent.java +++ b/jdk/src/share/classes/java/awt/event/InvocationEvent.java @@ -25,6 +25,8 @@ package java.awt.event; +import sun.awt.AWTAccessor; + import java.awt.ActiveEvent; import java.awt.AWTEvent; @@ -56,6 +58,15 @@ import java.awt.AWTEvent; */ public class InvocationEvent extends AWTEvent implements ActiveEvent { + static { + AWTAccessor.setInvocationEventAccessor(new AWTAccessor.InvocationEventAccessor() { + @Override + public void dispose(InvocationEvent invocationEvent) { + invocationEvent.finishedDispatching(false); + } + }); + } + /** * Marks the first integer id for the range of invocation event ids. */ @@ -78,11 +89,21 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent { /** * The (potentially null) Object whose notifyAll() method will be called - * immediately after the Runnable.run() method has returned or thrown an exception. + * immediately after the Runnable.run() method has returned or thrown an exception + * or after the event was disposed. * * @see #isDispatched */ - protected Object notifier; + protected volatile Object notifier; + + /** + * The (potentially null) Runnable whose run() method will be called + * immediately after the event was dispatched or disposed. + * + * @see #isDispatched + * @since 1.8 + */ + private final Runnable listener; /** * Indicates whether the ![]()
run()method of therunnable@@ -147,7 +168,7 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent { * @see #InvocationEvent(Object, Runnable, Object, boolean) */ public InvocationEvent(Object source, Runnable runnable) { - this(source, runnable, null, false); + this(source, INVOCATION_DEFAULT, runnable, null, null, false); } /** @@ -171,7 +192,8 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent { * @param notifier The {@code Object} whosenotifyAll* method will be called after *Runnable.runhas returned or - * thrown an exception + * thrown an exception or after the event was + * disposed * @param catchThrowables Specifies whetherdispatch* should catch Throwable when executing * theRunnable'srun@@ -185,7 +207,39 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent { */ public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchThrowables) { - this(source, INVOCATION_DEFAULT, runnable, notifier, catchThrowables); + this(source, INVOCATION_DEFAULT, runnable, notifier, null, catchThrowables); + } + + /** + * Constructs anInvocationEventwith the specified + * source which will execute the runnable'srun+ * method when dispatched. If listener is non-null, + *listener.run()will be called immediately after + *runhas returned, thrown an exception or the event + * was disposed. + *This method throws an
IllegalArgumentException+ * ifsourceisnull. + * + * @param source TheObjectthat originated + * the event + * @param runnable TheRunnablewhose + *runmethod will be + * executed + * @param listener TheRunnableRunnable whose + *run()method will be called + * after the {@code InvocationEvent} + * was dispatched or disposed + * @param catchThrowables Specifies whetherdispatch+ * should catch Throwable when executing + * theRunnable'srun+ * method, or should instead propagate those + * Throwables to the EventDispatchThread's + * dispatch loop + * @throws IllegalArgumentException ifsourceis null + */ + public InvocationEvent(Object source, Runnable runnable, Runnable listener, + boolean catchThrowables) { + this(source, INVOCATION_DEFAULT, runnable, null, listener, catchThrowables); } /** @@ -208,7 +262,8 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent { * @param notifier TheObjectwhosenotifyAll* method will be called after *Runnable.runhas returned or - * thrown an exception + * thrown an exception or after the event was + * disposed * @param catchThrowables Specifies whetherdispatch* should catch Throwable when executing the *Runnable'srun@@ -221,13 +276,18 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent { */ protected InvocationEvent(Object source, int id, Runnable runnable, Object notifier, boolean catchThrowables) { + this(source, id, runnable, notifier, null, catchThrowables); + } + + private InvocationEvent(Object source, int id, Runnable runnable, + Object notifier, Runnable listener, boolean catchThrowables) { super(source, id); this.runnable = runnable; this.notifier = notifier; + this.listener = listener; this.catchExceptions = catchThrowables; this.when = System.currentTimeMillis(); } - /** * Executes the Runnable'srun()method and notifies the * notifier (if any) whenrun()has returned or thrown an exception. @@ -251,13 +311,7 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent { runnable.run(); } } finally { - dispatched = true; - - if (notifier != null) { - synchronized (notifier) { - notifier.notifyAll(); - } - } + finishedDispatching(true); } } @@ -330,6 +384,25 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent { return dispatched; } + /** + * Called when the event was dispatched or disposed + * @param dispatched true if the event was dispatched + * false if the event was disposed + */ + private void finishedDispatching(boolean dispatched) { + this.dispatched = dispatched; + + if (notifier != null) { + synchronized (notifier) { + notifier.notifyAll(); + } + } + + if (listener != null) { + listener.run(); + } + } + /** * Returns a parameter string identifying this event. * This method is useful for event-logging and for debugging. diff --git a/jdk/src/share/classes/java/awt/event/KeyEvent.java b/jdk/src/share/classes/java/awt/event/KeyEvent.java index 5f88e3a9165..682c226fa3d 100644 --- a/jdk/src/share/classes/java/awt/event/KeyEvent.java +++ b/jdk/src/share/classes/java/awt/event/KeyEvent.java @@ -133,7 +133,7 @@ import sun.awt.AWTAccessor; * WARNING: Aside from those keys that are defined by the Java language * (VK_ENTER, VK_BACK_SPACE, and VK_TAB), do not rely on the values of the VK_ * constants. Sun reserves the right to change these values as needed - * to accomodate a wider range of keyboards in the future. + * to accommodate a wider range of keyboards in the future. ** An unspecified behavior will be caused if the {@code id} parameter * of any particular {@code KeyEvent} instance is not diff --git a/jdk/src/share/classes/java/awt/event/WindowEvent.java b/jdk/src/share/classes/java/awt/event/WindowEvent.java index ef5082937f2..6750805a9fa 100644 --- a/jdk/src/share/classes/java/awt/event/WindowEvent.java +++ b/jdk/src/share/classes/java/awt/event/WindowEvent.java @@ -79,8 +79,10 @@ public class WindowEvent extends ComponentEvent { @Native public static final int WINDOW_CLOSING = 1 + WINDOW_FIRST; //Event.WINDOW_DESTROY /** - * The window closed event. This event is delivered after - * the window has been closed as the result of a call to dispose. + * The window closed event. This event is delivered after the displayable + * window has been closed as the result of a call to dispose. + * @see java.awt.Component#isDisplayable + * @see Window#dispose */ @Native public static final int WINDOW_CLOSED = 2 + WINDOW_FIRST; diff --git a/jdk/src/share/classes/java/awt/event/package.html b/jdk/src/share/classes/java/awt/event/package.html index edf84c11476..eec07cacd6c 100644 --- a/jdk/src/share/classes/java/awt/event/package.html +++ b/jdk/src/share/classes/java/awt/event/package.html @@ -25,6 +25,7 @@ +
Provides interfaces and classes for dealing with different diff --git a/jdk/src/share/classes/java/awt/font/FontRenderContext.java b/jdk/src/share/classes/java/awt/font/FontRenderContext.java index 8ad710607cc..f9f5f1eec79 100644 --- a/jdk/src/share/classes/java/awt/font/FontRenderContext.java +++ b/jdk/src/share/classes/java/awt/font/FontRenderContext.java @@ -126,7 +126,7 @@ public class FontRenderContext { * anti-aliasing or fractional metrics. * @param tx the transform which is used to scale typographical points * to pixels in this FontRenderContext. If null, an - * identity tranform is used. + * identity transform is used. * @param aaHint - one of the text antialiasing rendering hint values * defined in {@link java.awt.RenderingHints java.awt.RenderingHints}. * Any other value will throwIllegalArgumentException. diff --git a/jdk/src/share/classes/java/awt/font/GlyphMetrics.java b/jdk/src/share/classes/java/awt/font/GlyphMetrics.java index 267debc77c4..74f2b0a69aa 100644 --- a/jdk/src/share/classes/java/awt/font/GlyphMetrics.java +++ b/jdk/src/share/classes/java/awt/font/GlyphMetrics.java @@ -43,7 +43,7 @@ package java.awt.font; import java.awt.geom.Rectangle2D; /** - * TheGlyphMetricsclass represents infomation for a + * TheGlyphMetricsclass represents information for a * single glyph. A glyph is the visual representation of one or more * characters. Many different glyphs can be used to represent a single * character or combination of characters.GlyphMetrics@@ -143,24 +143,24 @@ public final class GlyphMetrics { * as a ligature, for example 'fi' or 'ffi'. It is followed by * filler glyphs for the remaining characters. Filler and combining * glyphs can be intermixed to control positioning of accent marks - * on the logically preceeding ligature. + * on the logically preceding ligature. */ public static final byte LIGATURE = 1; /** * Indicates a glyph that represents a combining character, * such as an umlaut. There is no caret position between this glyph - * and the preceeding glyph. + * and the preceding glyph. */ public static final byte COMBINING = 2; /** * Indicates a glyph with no corresponding character in the * backing store. The glyph is associated with the character - * represented by the logicaly preceeding non-component glyph. This + * represented by the logically preceding non-component glyph. This * is used for kashida justification or other visual modifications to * existing glyphs. There is no caret position between this glyph - * and the preceeding glyph. + * and the preceding glyph. */ public static final byte COMPONENT = 3; diff --git a/jdk/src/share/classes/java/awt/font/GlyphVector.java b/jdk/src/share/classes/java/awt/font/GlyphVector.java index 264a06f07ab..23ce1a9bdf0 100644 --- a/jdk/src/share/classes/java/awt/font/GlyphVector.java +++ b/jdk/src/share/classes/java/awt/font/GlyphVector.java @@ -395,7 +395,7 @@ public abstract class GlyphVector implements Cloneable { * indicates that no special transform is applied for the specified * glyph. * This method can be used to rotate, mirror, translate and scale the - * glyph. Adding a transform can result in signifant performance changes. + * glyph. Adding a transform can result in significant performance changes. * @param glyphIndex the index into thisGlyphVector* @param newTX the new transform of the glyph atglyphIndex* @throws IndexOutOfBoundsException ifglyphIndexdiff --git a/jdk/src/share/classes/java/awt/font/LineBreakMeasurer.java b/jdk/src/share/classes/java/awt/font/LineBreakMeasurer.java index 2e2be83e58c..0688ab41969 100644 --- a/jdk/src/share/classes/java/awt/font/LineBreakMeasurer.java +++ b/jdk/src/share/classes/java/awt/font/LineBreakMeasurer.java @@ -112,7 +112,7 @@ import java.awt.font.FontRenderContext; * Examples:* Rendering a paragraph in a component *
- **+ **{@code * public void paint(Graphics graphics) { * * Point2D pen = new Point2D(10, 20); @@ -137,13 +137,13 @@ import java.awt.font.FontRenderContext; * pen.y += layout.getDescent() + layout.getLeading(); * } * } - *+ * }* Rendering text with tabs. For simplicity, the overall text * direction is assumed to be left-to-right *
- ** @see TextLayout */ diff --git a/jdk/src/share/classes/java/awt/font/MultipleMaster.java b/jdk/src/share/classes/java/awt/font/MultipleMaster.java index 757ca01db23..8c672647939 100644 --- a/jdk/src/share/classes/java/awt/font/MultipleMaster.java +++ b/jdk/src/share/classes/java/awt/font/MultipleMaster.java @@ -41,7 +41,7 @@ public interface MultipleMaster { public int getNumDesignAxes(); /** - * Returns an array of design limits interleaved in the form [from->to] + * Returns an array of design limits interleaved in the form [from→to] * for each axis. For example, * design limits for weight could be from 0.1 to 1.0. The values are * returned in the same order returned by diff --git a/jdk/src/share/classes/java/awt/font/NumericShaper.java b/jdk/src/share/classes/java/awt/font/NumericShaper.java index 7685e65f918..0de80e91f39 100644 --- a/jdk/src/share/classes/java/awt/font/NumericShaper.java +++ b/jdk/src/share/classes/java/awt/font/NumericShaper.java @@ -1212,7 +1212,7 @@ public final class NumericShaper implements java.io.Serializable { * For example, to check if a shaper shapes to Arabic, you would use the * following: *+ **{@code * public void paint(Graphics graphics) { * * float leftMargin = 10, rightMargin = 310; @@ -240,7 +240,7 @@ import java.awt.font.FontRenderContext; * verticalPos += maxDescent; * } * } - *+ * }- ** *if ((shaper.getRanges() & shaper.ARABIC) != 0) { ...+ *if ((shaper.getRanges() & shaper.ARABIC) != 0) { ...*Note that this method supports only the bit mask-based diff --git a/jdk/src/share/classes/java/awt/font/OpenType.java b/jdk/src/share/classes/java/awt/font/OpenType.java index a5bcdce3dc3..559cb03f939 100644 --- a/jdk/src/share/classes/java/awt/font/OpenType.java +++ b/jdk/src/share/classes/java/awt/font/OpenType.java @@ -33,7 +33,7 @@ package java.awt.font; *
* For more information on TrueType and OpenType fonts, see the * OpenType specification. - * ( http://www.microsoft.com/typography/otspec/l ). + * ( http://www.microsoft.com/typography/otspec/ ). */ public interface OpenType { @@ -268,7 +268,7 @@ public interface OpenType { public final static int TAG_ACNT = 0x61636e74; /** - * Axis variaiton. Table tag "avar" in the Open + * Axis variation. Table tag "avar" in the Open * Type Specification. */ public final static int TAG_AVAR = 0x61766172; diff --git a/jdk/src/share/classes/java/awt/font/TextLayout.java b/jdk/src/share/classes/java/awt/font/TextLayout.java index c09afd7e653..34e9f88e41f 100644 --- a/jdk/src/share/classes/java/awt/font/TextLayout.java +++ b/jdk/src/share/classes/java/awt/font/TextLayout.java @@ -223,7 +223,7 @@ import sun.text.CodePointIterator; * baseline-relative coordinates map the 'x' coordinate to the * distance along the baseline, (positive x is forward along the * baseline), and the 'y' coordinate to a distance along the - * perpendicular to the baseline at 'x' (postitive y is 90 degrees + * perpendicular to the baseline at 'x' (positive y is 90 degrees * clockwise from the baseline vector). Values in standard * coordinates are measured along the x and y axes, with 0,0 at the * origin of the TextLayout. Documentation for each relevant API @@ -337,7 +337,7 @@ public final class TextLayout implements Cloneable { TextHitInfo hit2, TextLayout layout) { - // default implmentation just calls private method on layout + // default implementation just calls private method on layout return layout.getStrongHit(hit1, hit2); } } @@ -912,7 +912,7 @@ public final class TextLayout implements Cloneable { * The ascent is the distance from the top (right) of the *
TextLayoutto the baseline. It is always either * positive or zero. The ascent is sufficient to - * accomodate superscripted text and is the maximum of the sum of the + * accommodate superscripted text and is the maximum of the sum of the * ascent, offset, and baseline of each glyph. The ascent is * the maximum ascent from the baseline of all the text in the * TextLayout. It is in baseline-relative coordinates. @@ -927,7 +927,7 @@ public final class TextLayout implements Cloneable { * Returns the descent of thisTextLayout. * The descent is the distance from the baseline to the bottom (left) of * theTextLayout. It is always either positive or zero. - * The descent is sufficient to accomodate subscripted text and is the + * The descent is sufficient to accommodate subscripted text and is the * maximum of the sum of the descent, offset, and baseline of each glyph. * This is the maximum descent from the baseline of all the text in * the TextLayout. It is in baseline-relative coordinates. diff --git a/jdk/src/share/classes/java/awt/font/TransformAttribute.java b/jdk/src/share/classes/java/awt/font/TransformAttribute.java index 6156b4df7f3..e282c715cef 100644 --- a/jdk/src/share/classes/java/awt/font/TransformAttribute.java +++ b/jdk/src/share/classes/java/awt/font/TransformAttribute.java @@ -120,7 +120,7 @@ public final class TransformAttribute implements Serializable { return this; } - // Added for serial backwards compatability (4348425) + // Added for serial backwards compatibility (4348425) static final long serialVersionUID = 3356247357827709530L; /** diff --git a/jdk/src/share/classes/java/awt/font/package.html b/jdk/src/share/classes/java/awt/font/package.html index ec5d783e708..d4d0a0a998d 100644 --- a/jdk/src/share/classes/java/awt/font/package.html +++ b/jdk/src/share/classes/java/awt/font/package.html @@ -25,6 +25,7 @@ +Provides classes and interface relating to fonts. It diff --git a/jdk/src/share/classes/java/awt/geom/AffineTransform.java b/jdk/src/share/classes/java/awt/geom/AffineTransform.java index 0977cf8eaa4..d3c27ffa87e 100644 --- a/jdk/src/share/classes/java/awt/geom/AffineTransform.java +++ b/jdk/src/share/classes/java/awt/geom/AffineTransform.java @@ -47,7 +47,7 @@ import java.beans.ConstructorProperties; * [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ] * * Handling 90-Degree Rotations
+ *Handling 90-Degree Rotations
** In some variations of the
rotatemethods in the *AffineTransformclass, a double-precision argument @@ -525,7 +525,7 @@ public class AffineTransform implements Cloneable, java.io.Serializable { /** * Constructs a newAffineTransformfrom an array of * floating point values representing either the 4 non-translation - * enries or the 6 specifiable entries of the 3x3 transformation + * entries or the 6 specifiable entries of the 3x3 transformation * matrix. The values are retrieved from the array as * { m00 m10 m01 m11 [m02 m12]}. * @param flatmatrix the float array containing the values to be set @@ -715,7 +715,7 @@ public class AffineTransform implements Cloneable, java.io.Serializable { /** * Returns a transform that rotates coordinates around an anchor - * point accordinate to a rotation vector. + * point according to a rotation vector. * All coordinates rotate about the specified anchor coordinates * by the same amount. * The amount of rotation is such that coordinates along the former @@ -845,7 +845,7 @@ public class AffineTransform implements Cloneable, java.io.Serializable { * this transform. * The return value is either one of the constants TYPE_IDENTITY * or TYPE_GENERAL_TRANSFORM, or a combination of the - * appriopriate flag bits. + * appropriate flag bits. * A valid combination of flag bits is an exclusive OR operation * that can combine * the TYPE_TRANSLATION flag bit @@ -2876,7 +2876,7 @@ public class AffineTransform implements Cloneable, java.io.Serializable { * @param ptDst the specifiedPoint2Dthat stores the * result of transformingptSrc* @return theptDstafter transforming - *ptSrcand stroring the result inptDst. + *ptSrcand storing the result inptDst. * @since 1.2 */ public Point2D transform(Point2D ptSrc, Point2D ptDst) { diff --git a/jdk/src/share/classes/java/awt/geom/Line2D.java b/jdk/src/share/classes/java/awt/geom/Line2D.java index a34e7941479..7d49d27e29b 100644 --- a/jdk/src/share/classes/java/awt/geom/Line2D.java +++ b/jdk/src/share/classes/java/awt/geom/Line2D.java @@ -477,7 +477,7 @@ public abstract class Line2D implements Shape, Cloneable { * direction is clockwise. *A return value of 0 indicates that the point lies * exactly on the line segment. Note that an indicator value - * of 0 is rare and not useful for determining colinearity + * of 0 is rare and not useful for determining collinearity * because of floating point rounding issues. *
If the point is colinear with the line segment, but * not between the end points, then the value will be -1 if the point diff --git a/jdk/src/share/classes/java/awt/geom/Path2D.java b/jdk/src/share/classes/java/awt/geom/Path2D.java index 3aae874310c..acf781ad775 100644 --- a/jdk/src/share/classes/java/awt/geom/Path2D.java +++ b/jdk/src/share/classes/java/awt/geom/Path2D.java @@ -2064,7 +2064,7 @@ public abstract class Path2D implements Shape, Cloneable { * @param w the width of the specified rectangular area * @param h the height of the specified rectangular area * @return {@code true} if the specified {@code PathIterator} contains - * the specified rectangluar area; {@code false} otherwise. + * the specified rectangular area; {@code false} otherwise. * @since 1.6 */ public static boolean contains(PathIterator pi, diff --git a/jdk/src/share/classes/java/awt/geom/QuadCurve2D.java b/jdk/src/share/classes/java/awt/geom/QuadCurve2D.java index 4df791e40b2..a2c41d91fae 100644 --- a/jdk/src/share/classes/java/awt/geom/QuadCurve2D.java +++ b/jdk/src/share/classes/java/awt/geom/QuadCurve2D.java @@ -511,7 +511,7 @@ public abstract class QuadCurve2D implements Shape, Cloneable { /** * Returns the X coordinate of the end point in *
doubleprecision. - * @return the x coordiante of the end point. + * @return the x coordinate of the end point. * @since 1.2 */ public abstract double getX2(); diff --git a/jdk/src/share/classes/java/awt/geom/package.html b/jdk/src/share/classes/java/awt/geom/package.html index e0ff8681e04..4b18dee4c5f 100644 --- a/jdk/src/share/classes/java/awt/geom/package.html +++ b/jdk/src/share/classes/java/awt/geom/package.html @@ -25,6 +25,7 @@ +Provides the Java 2D classes for defining and performing operations diff --git a/jdk/src/share/classes/java/awt/im/InputContext.java b/jdk/src/share/classes/java/awt/im/InputContext.java index e2223fcbc50..615029120dd 100644 --- a/jdk/src/share/classes/java/awt/im/InputContext.java +++ b/jdk/src/share/classes/java/awt/im/InputContext.java @@ -98,7 +98,6 @@ public class InputContext { * an input method or keyboard layout has been successfully selected. The * following steps are taken until an input method has been selected: * - * *
*
+- * If the currently selected input method or keyboard layout supports the diff --git a/jdk/src/share/classes/java/awt/im/InputMethodRequests.java b/jdk/src/share/classes/java/awt/im/InputMethodRequests.java index 080d25140db..414eaaad48f 100644 --- a/jdk/src/share/classes/java/awt/im/InputMethodRequests.java +++ b/jdk/src/share/classes/java/awt/im/InputMethodRequests.java @@ -83,7 +83,7 @@ public interface InputMethodRequests { * For example, for horizontal left-to-right text (such as English), the * location to the left of the left-most character on the last line * containing selected text is returned. For vertical top-to-bottom text, - * with lines proceding from right to left, the location to the top of the + * with lines proceeding from right to left, the location to the top of the * left-most line containing selected text is returned. * *
diff --git a/jdk/src/share/classes/java/awt/image/BandedSampleModel.java b/jdk/src/share/classes/java/awt/image/BandedSampleModel.java index c1a620c7d8f..ac97f06dcd0 100644 --- a/jdk/src/share/classes/java/awt/image/BandedSampleModel.java +++ b/jdk/src/share/classes/java/awt/image/BandedSampleModel.java @@ -39,7 +39,7 @@ package java.awt.image; * This class represents image data which is stored in a band interleaved * fashion and for * which each sample of a pixel occupies one data element of the DataBuffer. - * It subclasses ComponentSampleModel but provides a more efficent + * It subclasses ComponentSampleModel but provides a more efficient * implementation for accessing band interleaved image data than is provided * by ComponentSampleModel. This class should typically be used when working * with images which store sample data for each band in a different bank of the diff --git a/jdk/src/share/classes/java/awt/image/BufferStrategy.java b/jdk/src/share/classes/java/awt/image/BufferStrategy.java index de7877330b9..7a4f793b791 100644 --- a/jdk/src/share/classes/java/awt/image/BufferStrategy.java +++ b/jdk/src/share/classes/java/awt/image/BufferStrategy.java @@ -34,7 +34,7 @@ import java.awt.Image; * to organize complex memory on a particular
Canvasor *Window. Hardware and software limitations determine whether and * how a particular buffer strategy can be implemented. These limitations - * are detectible through the capabilities of the + * are detectable through the capabilities of the *GraphicsConfigurationused when creating the *CanvasorWindow. *diff --git a/jdk/src/share/classes/java/awt/image/BufferedImage.java b/jdk/src/share/classes/java/awt/image/BufferedImage.java index b4222b1e740..811c209a983 100644 --- a/jdk/src/share/classes/java/awt/image/BufferedImage.java +++ b/jdk/src/share/classes/java/awt/image/BufferedImage.java @@ -1336,7 +1336,7 @@ public class BufferedImage extends java.awt.Image /** * Returns the minimum tile index in the y direction. * This is always zero. - * @return the mininum tile index in the y direction. + * @return the minimum tile index in the y direction. */ public int getMinTileY() { return 0; diff --git a/jdk/src/share/classes/java/awt/image/ComponentColorModel.java b/jdk/src/share/classes/java/awt/image/ComponentColorModel.java index ec0bce587f0..28e41a2bc27 100644 --- a/jdk/src/share/classes/java/awt/image/ComponentColorModel.java +++ b/jdk/src/share/classes/java/awt/image/ComponentColorModel.java @@ -2318,7 +2318,7 @@ public class ComponentColorModel extends ColorModel { * and is not large enough to hold all the color and alpha components * (starting at
normOffset). *- * This method must be overrridden by a subclass if that subclass + * This method must be overridden by a subclass if that subclass * is designed to translate pixel sample values to color component values * in a non-default way. The default translations implemented by this * class is described in the class comments. Any subclass implementing diff --git a/jdk/src/share/classes/java/awt/image/ComponentSampleModel.java b/jdk/src/share/classes/java/awt/image/ComponentSampleModel.java index 5dee98cc55b..2a9def53a96 100644 --- a/jdk/src/share/classes/java/awt/image/ComponentSampleModel.java +++ b/jdk/src/share/classes/java/awt/image/ComponentSampleModel.java @@ -614,7 +614,7 @@ public class ComponentSampleModel extends SampleModel * * @throws NullPointerException if data is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are - * not in bounds, or if obj is too small to hold the ouput. + * not in bounds, or if obj is too small to hold the output. */ public Object getDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { diff --git a/jdk/src/share/classes/java/awt/image/ImageConsumer.java b/jdk/src/share/classes/java/awt/image/ImageConsumer.java index da2231008d3..5298c9d58f8 100644 --- a/jdk/src/share/classes/java/awt/image/ImageConsumer.java +++ b/jdk/src/share/classes/java/awt/image/ImageConsumer.java @@ -191,7 +191,7 @@ public interface ImageConsumer { * finished delivering all of the pixels that the source image * contains, or when a single frame of a multi-frame animation has * been completed, or when an error in loading or producing the - * image has occured. The ImageConsumer should remove itself from the + * image has occurred. The ImageConsumer should remove itself from the * list of consumers registered with the ImageProducer at this time, * unless it is interested in successive frames. * @param status the status of image loading diff --git a/jdk/src/share/classes/java/awt/image/IndexColorModel.java b/jdk/src/share/classes/java/awt/image/IndexColorModel.java index d26e3d381be..7e4317cd3ab 100644 --- a/jdk/src/share/classes/java/awt/image/IndexColorModel.java +++ b/jdk/src/share/classes/java/awt/image/IndexColorModel.java @@ -1152,7 +1152,7 @@ public class IndexColorModel extends ColorModel { * @throws ClassCastException if
pixelis not a * primitive array of typetransferType* @throws UnsupportedOperationException iftransferType- * is not one of the supported transer types + * is not one of the supported transfer types * @see ColorModel#hasAlpha * @see ColorModel#getNumComponents */ @@ -1271,7 +1271,7 @@ public class IndexColorModel extends ColorModel { * array is not large enough to hold all of the color and alpha * components starting atoffset* @throws UnsupportedOperationException iftransferType- * is not one of the supported transer types + * is not one of the supported transfer types * @see WritableRaster#setDataElements * @see SampleModel#setDataElements */ diff --git a/jdk/src/share/classes/java/awt/image/PixelInterleavedSampleModel.java b/jdk/src/share/classes/java/awt/image/PixelInterleavedSampleModel.java index 1c5475d09bc..8cc3c179146 100644 --- a/jdk/src/share/classes/java/awt/image/PixelInterleavedSampleModel.java +++ b/jdk/src/share/classes/java/awt/image/PixelInterleavedSampleModel.java @@ -29,7 +29,7 @@ package java.awt.image; * This class represents image data which is stored in a pixel interleaved * fashion and for * which each sample of a pixel occupies one data element of the DataBuffer. - * It subclasses ComponentSampleModel but provides a more efficent + * It subclasses ComponentSampleModel but provides a more efficient * implementation for accessing pixel interleaved image data than is provided * by ComponentSampleModel. This class * stores sample data for all bands in a single bank of the diff --git a/jdk/src/share/classes/java/awt/image/package.html b/jdk/src/share/classes/java/awt/image/package.html index 9ef6e7f419b..c2f4c69d5c5 100644 --- a/jdk/src/share/classes/java/awt/image/package.html +++ b/jdk/src/share/classes/java/awt/image/package.html @@ -25,6 +25,7 @@ +Provides classes for creating and modifying images. diff --git a/jdk/src/share/classes/java/awt/image/renderable/RenderableImage.java b/jdk/src/share/classes/java/awt/image/renderable/RenderableImage.java index 3fec6d62977..8b0b3de368d 100644 --- a/jdk/src/share/classes/java/awt/image/renderable/RenderableImage.java +++ b/jdk/src/share/classes/java/awt/image/renderable/RenderableImage.java @@ -65,7 +65,7 @@ public interface RenderableImage { * String constant that can be used to identify a property on * a RenderedImage obtained via the createRendering or * createScaledRendering methods. If such a property exists, - * the value of the propoery will be a RenderingHints object + * the value of the property will be a RenderingHints object * specifying which hints were observed in creating the rendering. */ static final String HINTS_OBSERVED = "HINTS_OBSERVED"; @@ -162,7 +162,7 @@ public interface RenderableImage { * * @param w the width of rendered image in pixels, or 0. * @param h the height of rendered image in pixels, or 0. - * @param hints a RenderingHints object containg hints. + * @param hints a RenderingHints object containing hints. * @return a RenderedImage containing the rendered data. */ RenderedImage createScaledRendering(int w, int h, RenderingHints hints); diff --git a/jdk/src/share/classes/java/awt/image/renderable/RenderableImageOp.java b/jdk/src/share/classes/java/awt/image/renderable/RenderableImageOp.java index f2247a309b7..92b3b96fc45 100644 --- a/jdk/src/share/classes/java/awt/image/renderable/RenderableImageOp.java +++ b/jdk/src/share/classes/java/awt/image/renderable/RenderableImageOp.java @@ -236,7 +236,7 @@ public class RenderableImageOp implements RenderableImage { * * @param w the width of rendered image in pixels, or 0. * @param h the height of rendered image in pixels, or 0. - * @param hints a RenderingHints object containg hints. + * @param hints a RenderingHints object containing hints. * @return a RenderedImage containing the rendered data. */ public RenderedImage createScaledRendering(int w, int h, diff --git a/jdk/src/share/classes/java/awt/image/renderable/package.html b/jdk/src/share/classes/java/awt/image/renderable/package.html index 3bcff3c39ab..58a9694269f 100644 --- a/jdk/src/share/classes/java/awt/image/renderable/package.html +++ b/jdk/src/share/classes/java/awt/image/renderable/package.html @@ -25,6 +25,7 @@ + Provides classes and interfaces for producing diff --git a/jdk/src/share/classes/java/awt/package.html b/jdk/src/share/classes/java/awt/package.html index 184ca072c9a..1b6527e45b6 100644 --- a/jdk/src/share/classes/java/awt/package.html +++ b/jdk/src/share/classes/java/awt/package.html @@ -25,6 +25,7 @@ + Contains all of the classes for creating user @@ -53,7 +54,7 @@ If the bounds of a Component object exceed a platform limit, there is no way to properly arrange them within a Container object. The object's bounds are defined by any object's coordinate in combination with its size on a respective axis. - +
Additional Specification
diff --git a/jdk/src/share/classes/java/awt/print/package.html b/jdk/src/share/classes/java/awt/print/package.html index ddbecd2ee54..c04f6f9e33b 100644 --- a/jdk/src/share/classes/java/awt/print/package.html +++ b/jdk/src/share/classes/java/awt/print/package.html @@ -25,6 +25,7 @@ +
* - * In any case, byte order marks occuring after the first element of an + * In any case, byte order marks occurring after the first element of an * input sequence are not omitted since the same code is used to represent * ZERO-WIDTH NON-BREAKING SPACE. * diff --git a/jdk/src/share/classes/java/nio/file/attribute/UserDefinedFileAttributeView.java b/jdk/src/share/classes/java/nio/file/attribute/UserDefinedFileAttributeView.java index 2a1dd6e18f8..9840e849302 100644 --- a/jdk/src/share/classes/java/nio/file/attribute/UserDefinedFileAttributeView.java +++ b/jdk/src/share/classes/java/nio/file/attribute/UserDefinedFileAttributeView.java @@ -81,7 +81,7 @@ public interface UserDefinedFileAttributeView /** * Returns a list containing the names of the user-defined attributes. * - * @return An unmodifiable list continaing the names of the file's + * @return An unmodifiable list containing the names of the file's * user-defined * * @throws IOException @@ -179,7 +179,7 @@ public interface UserDefinedFileAttributeView *Provides classes and interfaces for a general printing API. The diff --git a/jdk/src/share/classes/java/beans/AppletInitializer.java b/jdk/src/share/classes/java/beans/AppletInitializer.java index 2c271a236ca..c28f67434fd 100644 --- a/jdk/src/share/classes/java/beans/AppletInitializer.java +++ b/jdk/src/share/classes/java/beans/AppletInitializer.java @@ -32,7 +32,7 @@ import java.beans.beancontext.BeanContext; /** * * This interface is designed to work in collusion with java.beans.Beans.instantiate. - * The interafce is intended to provide mechanism to allow the proper + * The interface is intended to provide mechanism to allow the proper * initialization of JavaBeans that are also Applets, during their * instantiation by java.beans.Beans.instantiate(). *
diff --git a/jdk/src/share/classes/java/beans/DefaultPersistenceDelegate.java b/jdk/src/share/classes/java/beans/DefaultPersistenceDelegate.java index d4ec31a29e1..76ceaa65b22 100644 --- a/jdk/src/share/classes/java/beans/DefaultPersistenceDelegate.java +++ b/jdk/src/share/classes/java/beans/DefaultPersistenceDelegate.java @@ -273,7 +273,7 @@ public class DefaultPersistenceDelegate extends PersistenceDelegate { TableModelListener (the JTable itself in this case) to the supplied table model. - We do not need to explictly add these listeners to the model in an + We do not need to explicitly add these listeners to the model in an archive as they will be added automatically by, in the above case, the JTable's "setModel" method. In some cases, we must specifically avoid trying to do this since the listener may be an inner class diff --git a/jdk/src/share/classes/java/beans/EventHandler.java b/jdk/src/share/classes/java/beans/EventHandler.java index 935f7359e26..470991e11bd 100644 --- a/jdk/src/share/classes/java/beans/EventHandler.java +++ b/jdk/src/share/classes/java/beans/EventHandler.java @@ -611,7 +611,7 @@ public class EventHandler implements InvocationHandler { * the empty string. * The format of theeventPropertyNamestring is a sequence of * methods or properties where each method or - * property is applied to the value returned by the preceeding method + * property is applied to the value returned by the preceding method * starting from the incoming event object. * The syntax is:propertyName{.propertyName}** wherepropertyNamematches a method or diff --git a/jdk/src/share/classes/java/beans/MethodDescriptor.java b/jdk/src/share/classes/java/beans/MethodDescriptor.java index f8cd73d3897..f7f527c7d42 100644 --- a/jdk/src/share/classes/java/beans/MethodDescriptor.java +++ b/jdk/src/share/classes/java/beans/MethodDescriptor.java @@ -76,7 +76,7 @@ public class MethodDescriptor extends FeatureDescriptor { } /** - * Gets the method that this MethodDescriptor encapsualtes. + * Gets the method that this MethodDescriptor encapsulates. * * @return The low-level description of the method */ diff --git a/jdk/src/share/classes/java/beans/PropertyDescriptor.java b/jdk/src/share/classes/java/beans/PropertyDescriptor.java index aed5ec57a4d..07149f9752d 100644 --- a/jdk/src/share/classes/java/beans/PropertyDescriptor.java +++ b/jdk/src/share/classes/java/beans/PropertyDescriptor.java @@ -335,7 +335,7 @@ public class PropertyDescriptor extends FeatureDescriptor { */ void setClass0(Class> clz) { if (getClass0() != null && clz.isAssignableFrom(getClass0())) { - // dont replace a subclass with a superclass + // don't replace a subclass with a superclass return; } super.setClass0(clz); diff --git a/jdk/src/share/classes/java/beans/PropertyEditorSupport.java b/jdk/src/share/classes/java/beans/PropertyEditorSupport.java index 246eca0ad61..ece9378aa0f 100644 --- a/jdk/src/share/classes/java/beans/PropertyEditorSupport.java +++ b/jdk/src/share/classes/java/beans/PropertyEditorSupport.java @@ -30,7 +30,7 @@ import java.beans.*; /** * This is a support class to help build property editors. *- * It can be used either as a base class or as a delagatee. + * It can be used either as a base class or as a delegate. */ public class PropertyEditorSupport implements PropertyEditor { diff --git a/jdk/src/share/classes/java/beans/beancontext/BeanContextChildSupport.java b/jdk/src/share/classes/java/beans/beancontext/BeanContextChildSupport.java index b2b855867b5..897e5a8a4da 100644 --- a/jdk/src/share/classes/java/beans/beancontext/BeanContextChildSupport.java +++ b/jdk/src/share/classes/java/beans/beancontext/BeanContextChildSupport.java @@ -302,7 +302,7 @@ public class BeanContextChildSupport implements BeanContextChild, BeanContextSer /** * This method may be overridden by subclasses to provide their own - * initialization behaviors. When invoked any resources requried by the + * initialization behaviors. When invoked any resources required by the * BeanContextChild should be obtained from the current BeanContext. */ @@ -317,7 +317,7 @@ public class BeanContextChildSupport implements BeanContextChild, BeanContextSer private void writeObject(ObjectOutputStream oos) throws IOException { /* - * dont serialize if we are delegated and the delegator isnt also + * don't serialize if we are delegated and the delegator is not also * serializable. */ diff --git a/jdk/src/share/classes/java/beans/beancontext/BeanContextServiceRevokedListener.java b/jdk/src/share/classes/java/beans/beancontext/BeanContextServiceRevokedListener.java index ecf4017c657..fe976f21dd1 100644 --- a/jdk/src/share/classes/java/beans/beancontext/BeanContextServiceRevokedListener.java +++ b/jdk/src/share/classes/java/beans/beancontext/BeanContextServiceRevokedListener.java @@ -38,7 +38,7 @@ public interface BeanContextServiceRevokedListener extends EventListener { /** * The service named has been revoked. getService requests for - * this service will no longer be satisifed. + * this service will no longer be satisfied. * @param bcsre the
*BeanContextServiceRevokedEventreceived * by this listener. */ diff --git a/jdk/src/share/classes/java/beans/beancontext/BeanContextServicesSupport.java b/jdk/src/share/classes/java/beans/beancontext/BeanContextServicesSupport.java index ca0942efef9..41cfa9d7a89 100644 --- a/jdk/src/share/classes/java/beans/beancontext/BeanContextServicesSupport.java +++ b/jdk/src/share/classes/java/beans/beancontext/BeanContextServicesSupport.java @@ -620,7 +620,7 @@ public class BeanContextServicesSupport extends BeanContextSupport /** * subclasses can override this method to create new subclasses of - * BCSSServiceProvider without having to overrride addService() in + * BCSSServiceProvider without having to override addService() in * order to instantiate. * @param sc the class * @param bcsp the service provider diff --git a/jdk/src/share/classes/java/beans/beancontext/BeanContextSupport.java b/jdk/src/share/classes/java/beans/beancontext/BeanContextSupport.java index a549e2dc317..43dfcb02c97 100644 --- a/jdk/src/share/classes/java/beans/beancontext/BeanContextSupport.java +++ b/jdk/src/share/classes/java/beans/beancontext/BeanContextSupport.java @@ -183,7 +183,7 @@ public class BeanContextSupport extends BeanContextChildSupport * into a BeanContext. *- * The semantics of the beanName parameter are defined by java.beans.Beans.instantate. + * The semantics of the beanName parameter are defined by java.beans.Beans.instantiate. *
* * @param beanName the name of the Bean to instantiate within this BeanContext diff --git a/jdk/src/share/classes/java/io/File.java b/jdk/src/share/classes/java/io/File.java index bafcea5a839..846ddc3004d 100644 --- a/jdk/src/share/classes/java/io/File.java +++ b/jdk/src/share/classes/java/io/File.java @@ -1685,7 +1685,7 @@ public class File * operation will fail if the user does not have permission to * change the access permissions of this abstract pathname. If *executableisfalseand the underlying - * file system does not implement an excute permission, then the + * file system does not implement an execute permission, then the * operation will fail. * * @throws SecurityException diff --git a/jdk/src/share/classes/java/io/ObjectStreamConstants.java b/jdk/src/share/classes/java/io/ObjectStreamConstants.java index ddbada963b1..89265fb4fb5 100644 --- a/jdk/src/share/classes/java/io/ObjectStreamConstants.java +++ b/jdk/src/share/classes/java/io/ObjectStreamConstants.java @@ -219,7 +219,7 @@ public interface ObjectStreamConstants { * This protocol is written by JVM 1.2. * * Externalizable data is written in block data mode and is - * terminated with TC_ENDBLOCKDATA. Externalizable classdescriptor + * terminated with TC_ENDBLOCKDATA. Externalizable class descriptor * flags has SC_BLOCK_DATA enabled. JVM 1.1.6 and greater can * read this format change. * diff --git a/jdk/src/share/classes/java/io/PrintStream.java b/jdk/src/share/classes/java/io/PrintStream.java index b803c6a657f..d57984e298b 100644 --- a/jdk/src/share/classes/java/io/PrintStream.java +++ b/jdk/src/share/classes/java/io/PrintStream.java @@ -303,7 +303,7 @@ public class PrintStream extends FilterOutputStream * creating the file * * @throws SecurityException - * If a security manager is presentand {@link + * If a security manager is present and {@link * SecurityManager#checkWrite checkWrite(file.getPath())} * denies write access to the file * diff --git a/jdk/src/share/classes/java/lang/invoke/MethodType.java b/jdk/src/share/classes/java/lang/invoke/MethodType.java index f8e0967c7af..cfef437cda6 100644 --- a/jdk/src/share/classes/java/lang/invoke/MethodType.java +++ b/jdk/src/share/classes/java/lang/invoke/MethodType.java @@ -813,7 +813,7 @@ class MethodType implements java.io.Serializable { * So this method returns {@link #parameterCount() parameterCount} plus the * number of long and double parameters (if any). *- * This method is included for the benfit of applications that must + * This method is included for the benefit of applications that must * generate bytecodes that process method handles and invokedynamic. * @return the number of JVM stack slots for this type's parameters */ @@ -844,7 +844,7 @@ class MethodType implements java.io.Serializable { * plus the number of long or double arguments * at or after after the argument for the given parameter. *
- * This method is included for the benfit of applications that must + * This method is included for the benefit of applications that must * generate bytecodes that process method handles and invokedynamic. * @param num an index (zero-based, inclusive) within the parameter types * @return the index of the (shallowest) JVM stack slot transmitting the @@ -862,7 +862,7 @@ class MethodType implements java.io.Serializable { * If the {@link #returnType() return type} is void, it will be zero, * else if the return type is long or double, it will be two, else one. *
- * This method is included for the benfit of applications that must + * This method is included for the benefit of applications that must * generate bytecodes that process method handles and invokedynamic. * @return the number of JVM stack slots (0, 1, or 2) for this type's return value * Will be removed for PFD. @@ -882,7 +882,7 @@ class MethodType implements java.io.Serializable { * constructed by this method, because their component types are * not all reachable from a common class loader. *
- * This method is included for the benfit of applications that must + * This method is included for the benefit of applications that must * generate bytecodes that process method handles and {@code invokedynamic}. * @param descriptor a bytecode-level type descriptor string "(T...)T" * @param loader the class loader in which to look up the types @@ -912,7 +912,7 @@ class MethodType implements java.io.Serializable { * Two distinct classes which share a common name but have different class loaders * will appear identical when viewed within descriptor strings. *
- * This method is included for the benfit of applications that must + * This method is included for the benefit of applications that must * generate bytecodes that process method handles and {@code invokedynamic}. * {@link #fromMethodDescriptorString(java.lang.String, java.lang.ClassLoader) fromMethodDescriptorString}, * because the latter requires a suitable class loader argument. diff --git a/jdk/src/share/classes/java/lang/management/CompilationMXBean.java b/jdk/src/share/classes/java/lang/management/CompilationMXBean.java index 693beae1a01..bc411ed00ab 100644 --- a/jdk/src/share/classes/java/lang/management/CompilationMXBean.java +++ b/jdk/src/share/classes/java/lang/management/CompilationMXBean.java @@ -74,7 +74,7 @@ public interface CompilationMXBean extends PlatformManagedObject { public boolean isCompilationTimeMonitoringSupported(); /** - * Returns the approximate accumlated elapsed time (in milliseconds) + * Returns the approximate accumulated elapsed time (in milliseconds) * spent in compilation. * If multiple threads are used for compilation, this value is * summation of the approximate time that each thread spent in compilation. diff --git a/jdk/src/share/classes/java/lang/management/MemoryPoolMXBean.java b/jdk/src/share/classes/java/lang/management/MemoryPoolMXBean.java index 82aa1fcda87..ae0b97cbc85 100644 --- a/jdk/src/share/classes/java/lang/management/MemoryPoolMXBean.java +++ b/jdk/src/share/classes/java/lang/management/MemoryPoolMXBean.java @@ -147,7 +147,7 @@ package java.lang.management; * by calling either the {@link #getUsage} method for all * memory pools or the {@link #isUsageThresholdExceeded} method * for those memory pools that support a usage threshold. - * Below is example code that has a thread delicated for + * Below is example code that has a thread dedicated for * task distribution and processing. At every interval, * it will determine if it should receive and process new tasks based * on its memory usage. If the memory usage exceeds its usage threshold, @@ -191,7 +191,7 @@ package java.lang.management; *
* The above example does not differentiate the case where * the memory usage has temporarily dropped below the usage threshold - * from the case where the memory usage remains above the threshould + * from the case where the memory usage remains above the threshold * between two iterations. The usage threshold count returned by * the {@link #getUsageThresholdCount} method * can be used to determine diff --git a/jdk/src/share/classes/java/lang/management/ThreadInfo.java b/jdk/src/share/classes/java/lang/management/ThreadInfo.java index e6f80b2eb23..b1028f31488 100644 --- a/jdk/src/share/classes/java/lang/management/ThreadInfo.java +++ b/jdk/src/share/classes/java/lang/management/ThreadInfo.java @@ -492,7 +492,7 @@ public class ThreadInfo { * @return the thread ID of the owner thread of the object * this thread is blocked on; * -1 if this thread is not blocked - * or if the object lis not owned by any thread. + * or if the object is not owned by any thread. * * @see #getLockInfo */ diff --git a/jdk/src/share/classes/java/lang/management/ThreadMXBean.java b/jdk/src/share/classes/java/lang/management/ThreadMXBean.java index 02a87dcf6d3..521ca7fe6dd 100644 --- a/jdk/src/share/classes/java/lang/management/ThreadMXBean.java +++ b/jdk/src/share/classes/java/lang/management/ThreadMXBean.java @@ -646,7 +646,7 @@ public interface ThreadMXBean extends PlatformManagedObject { * exists and the caller does not have * ManagementPermission("monitor"). * @throws java.lang.UnsupportedOperationException if the Java virtual - * machine does not support monitoriing of ownable synchronizer usage. + * machine does not support monitoring of ownable synchronizer usage. * * @see #isSynchronizerUsageSupported * @see #findMonitorDeadlockedThreads diff --git a/jdk/src/share/classes/java/net/Authenticator.java b/jdk/src/share/classes/java/net/Authenticator.java index 28df05ca0d3..c88a6006b89 100644 --- a/jdk/src/share/classes/java/net/Authenticator.java +++ b/jdk/src/share/classes/java/net/Authenticator.java @@ -358,7 +358,7 @@ class Authenticator { * will be based on a URL, but in a future JDK it could be, for * example, "SOCKS" for a password-protected SOCKS5 firewall. * - * @return the protcol, optionally followed by "/version", where + * @return the protocol, optionally followed by "/version", where * version is a version number. * * @see java.net.URL#getProtocol() diff --git a/jdk/src/share/classes/java/net/CookieManager.java b/jdk/src/share/classes/java/net/CookieManager.java index bb80f0a7f25..f2d29cda82b 100644 --- a/jdk/src/share/classes/java/net/CookieManager.java +++ b/jdk/src/share/classes/java/net/CookieManager.java @@ -143,7 +143,7 @@ public class CookieManager extends CookieHandler * * @param store a {@code CookieStore} to be used by cookie manager. * if {@code null}, cookie manager will use a default one, - * which is an in-memory CookieStore implmentation. + * which is an in-memory CookieStore implementation. * @param cookiePolicy a {@code CookiePolicy} instance * to be used by cookie manager as policy callback. * if {@code null}, ACCEPT_ORIGINAL_SERVER will diff --git a/jdk/src/share/classes/java/net/CookieStore.java b/jdk/src/share/classes/java/net/CookieStore.java index 648817e4b52..105cc667579 100644 --- a/jdk/src/share/classes/java/net/CookieStore.java +++ b/jdk/src/share/classes/java/net/CookieStore.java @@ -48,7 +48,7 @@ public interface CookieStore { *A cookie to store may or may not be associated with an URI. If it * is not associated with an URI, the cookie's domain and path attribute * will indicate where it comes from. If it is associated with an URI and - * its domain and path attribute are not speicifed, given URI will indicate + * its domain and path attribute are not specified, given URI will indicate * where this cookie comes from. * *
If a cookie corresponding to the given URI already exists, diff --git a/jdk/src/share/classes/java/net/DatagramSocket.java b/jdk/src/share/classes/java/net/DatagramSocket.java index ab60a263ac7..d779a3bb809 100644 --- a/jdk/src/share/classes/java/net/DatagramSocket.java +++ b/jdk/src/share/classes/java/net/DatagramSocket.java @@ -640,7 +640,7 @@ class DatagramSocket implements java.io.Closeable { SecurityManager security = System.getSecurityManager(); // The reason you want to synchronize on datagram packet - // is because you dont want an applet to change the address + // is because you don't want an applet to change the address // while you are trying to send the packet for example // after the security check but before the send. if (security != null) { diff --git a/jdk/src/share/classes/java/net/InetSocketAddress.java b/jdk/src/share/classes/java/net/InetSocketAddress.java index 6792979312b..e8a804fa601 100644 --- a/jdk/src/share/classes/java/net/InetSocketAddress.java +++ b/jdk/src/share/classes/java/net/InetSocketAddress.java @@ -196,7 +196,7 @@ public class InetSocketAddress * If that attempt fails, the address will be flagged as unresolved. *
* If there is a security manager, its {@code checkConnect} method - * is called with the host name as its argument to check the permissiom + * is called with the host name as its argument to check the permission * to resolve it. This could result in a SecurityException. *
* A valid port value is between 0 and 65535. diff --git a/jdk/src/share/classes/java/net/InterfaceAddress.java b/jdk/src/share/classes/java/net/InterfaceAddress.java index 704e1fae9d5..39354a0c233 100644 --- a/jdk/src/share/classes/java/net/InterfaceAddress.java +++ b/jdk/src/share/classes/java/net/InterfaceAddress.java @@ -56,7 +56,7 @@ public class InterfaceAddress { } /** - * Returns an {@code InetAddress} for the brodcast address + * Returns an {@code InetAddress} for the broadcast address * for this InterfaceAddress. *
* Only IPv4 networks have broadcast address therefore, in the case diff --git a/jdk/src/share/classes/java/net/JarURLConnection.java b/jdk/src/share/classes/java/net/JarURLConnection.java index c6fd8cf94f7..70dedec795e 100644 --- a/jdk/src/share/classes/java/net/JarURLConnection.java +++ b/jdk/src/share/classes/java/net/JarURLConnection.java @@ -82,7 +82,7 @@ import sun.net.www.ParseUtil; * * * - *
{@code !/} is refered to as the separator. + *
{@code !/} is referred to as the separator. * *
When constructing a JAR url via {@code new URL(context, spec)}, * the following rules apply: @@ -223,7 +223,7 @@ public abstract class JarURLConnection extends URLConnection { * for this connection. * * @exception IOException if getting the JAR file for this - * connection causes an IOException to be trown. + * connection causes an IOException to be thrown. * * @see #getJarFile */ @@ -240,7 +240,7 @@ public abstract class JarURLConnection extends URLConnection { * the JAR URL for this connection points to a JAR file. * * @exception IOException if getting the JAR file for this - * connection causes an IOException to be trown. + * connection causes an IOException to be thrown. * * @see #getJarFile * @see #getJarEntry diff --git a/jdk/src/share/classes/java/net/ServerSocket.java b/jdk/src/share/classes/java/net/ServerSocket.java index bcc77ae42f3..2ee3420d548 100644 --- a/jdk/src/share/classes/java/net/ServerSocket.java +++ b/jdk/src/share/classes/java/net/ServerSocket.java @@ -610,7 +610,7 @@ class ServerSocket implements java.io.Closeable { /** * Returns the binding state of the ServerSocket. * - * @return true if the ServerSocket succesfuly bound to an address + * @return true if the ServerSocket successfully bound to an address * @since 1.4 */ public boolean isBound() { diff --git a/jdk/src/share/classes/java/net/SocksSocketImpl.java b/jdk/src/share/classes/java/net/SocksSocketImpl.java index 3e4fb5fe74a..2138f9dfcf1 100644 --- a/jdk/src/share/classes/java/net/SocksSocketImpl.java +++ b/jdk/src/share/classes/java/net/SocksSocketImpl.java @@ -437,7 +437,7 @@ class SocksSocketImpl extends PlainSocketImpl implements SocksConsts { } } - // cmdIn & cmdOut were intialized during the privilegedConnect() call + // cmdIn & cmdOut were initialized during the privilegedConnect() call BufferedOutputStream out = new BufferedOutputStream(cmdOut, 512); InputStream in = cmdIn; diff --git a/jdk/src/share/classes/java/net/StandardSocketOptions.java b/jdk/src/share/classes/java/net/StandardSocketOptions.java index 84fedd804f1..25fb61aec71 100644 --- a/jdk/src/share/classes/java/net/StandardSocketOptions.java +++ b/jdk/src/share/classes/java/net/StandardSocketOptions.java @@ -257,7 +257,7 @@ public final class StandardSocketOptions { * represents the outgoing interface for multicast datagrams sent by the * datagram-oriented socket. For {@link StandardProtocolFamily#INET6 IPv6} * sockets then it is system dependent whether setting this option also - * sets the outgoing interface for multlicast datagrams sent to IPv4 + * sets the outgoing interface for multicast datagrams sent to IPv4 * addresses. * *
The initial/default value of this socket option may be {@code null} diff --git a/jdk/src/share/classes/java/net/URL.java b/jdk/src/share/classes/java/net/URL.java index e7946d22e89..1ff5d63a35a 100644 --- a/jdk/src/share/classes/java/net/URL.java +++ b/jdk/src/share/classes/java/net/URL.java @@ -465,7 +465,7 @@ public final class URL implements java.io.Serializable { * Otherwise, the path is treated as a relative path and is appended to the * context path, as described in RFC2396. Also, in this case, * the path is canonicalized through the removal of directory - * changes made by occurences of ".." and ".". + * changes made by occurrences of ".." and ".". *
* For a more detailed description of URL parsing, refer to RFC2396. * diff --git a/jdk/src/share/classes/java/net/URLConnection.java b/jdk/src/share/classes/java/net/URLConnection.java index b731ac70d90..8393cedab2f 100644 --- a/jdk/src/share/classes/java/net/URLConnection.java +++ b/jdk/src/share/classes/java/net/URLConnection.java @@ -371,7 +371,7 @@ public abstract class URLConnection { * java.net.SocketTimeoutException is raised. A timeout of zero is * interpreted as an infinite timeout. - *
Some non-standard implmentation of this method may ignore + *
Some non-standard implementation of this method may ignore * the specified timeout. To see the connect timeout set, please * call getConnectTimeout(). * @@ -1059,7 +1059,7 @@ public abstract class URLConnection { * *
NOTE: HTTP requires all request properties which can * legally have multiple instances with the same key - * to use a comma-seperated list syntax which enables multiple + * to use a comma-separated list syntax which enables multiple * properties to be appended into a single property. * * @param key the keyword by which the request is known diff --git a/jdk/src/share/classes/java/net/URLDecoder.java b/jdk/src/share/classes/java/net/URLDecoder.java index eb5e36e5d82..a0344dc7853 100644 --- a/jdk/src/share/classes/java/net/URLDecoder.java +++ b/jdk/src/share/classes/java/net/URLDecoder.java @@ -116,7 +116,7 @@ public class URLDecoder { * "http://www.w3.org/TR/html40/appendix/notes.html#non-ascii-chars"> * World Wide Web Consortium Recommendation states that * UTF-8 should be used. Not doing so may introduce - * incompatibilites. + * incompatibilities. * * @param s the {@code String} to decode * @param enc The name of a supported diff --git a/jdk/src/share/classes/java/net/URLEncoder.java b/jdk/src/share/classes/java/net/URLEncoder.java index b5c4a8c32f9..a39d4e4706c 100644 --- a/jdk/src/share/classes/java/net/URLEncoder.java +++ b/jdk/src/share/classes/java/net/URLEncoder.java @@ -186,7 +186,7 @@ public class URLEncoder { * "http://www.w3.org/TR/html40/appendix/notes.html#non-ascii-chars"> * World Wide Web Consortium Recommendation states that * UTF-8 should be used. Not doing so may introduce - * incompatibilites. + * incompatibilities. * * @param s {@code String} to be translated. * @param enc The name of a supported diff --git a/jdk/src/share/classes/java/nio/channels/AsynchronousChannelGroup.java b/jdk/src/share/classes/java/nio/channels/AsynchronousChannelGroup.java index ace607323cb..aa56bbf38a2 100644 --- a/jdk/src/share/classes/java/nio/channels/AsynchronousChannelGroup.java +++ b/jdk/src/share/classes/java/nio/channels/AsynchronousChannelGroup.java @@ -199,7 +199,7 @@ public abstract class AsynchronousChannelGroup { * *
The {@code initialSize} parameter may be used by the implementation * as a hint as to the initial number of tasks it may submit. For - * example, it may be used to indictae the initial number of threads that + * example, it may be used to indicate the initial number of threads that * wait on I/O events. * *
The executor is intended to be used exclusively by the resulting diff --git a/jdk/src/share/classes/java/nio/channels/DatagramChannel.java b/jdk/src/share/classes/java/nio/channels/DatagramChannel.java index 3626317a982..b979cd398ff 100644 --- a/jdk/src/share/classes/java/nio/channels/DatagramChannel.java +++ b/jdk/src/share/classes/java/nio/channels/DatagramChannel.java @@ -153,7 +153,7 @@ public abstract class DatagramChannel * Opens a datagram channel. * *
The {@code family} parameter is used to specify the {@link - * ProtocolFamily}. If the datagram channel is to be used for IP multicasing + * ProtocolFamily}. If the datagram channel is to be used for IP multicasting * then this should correspond to the address type of the multicast groups * that this channel will join. * diff --git a/jdk/src/share/classes/java/nio/channels/MembershipKey.java b/jdk/src/share/classes/java/nio/channels/MembershipKey.java index ea7536ac344..cd955862ebe 100644 --- a/jdk/src/share/classes/java/nio/channels/MembershipKey.java +++ b/jdk/src/share/classes/java/nio/channels/MembershipKey.java @@ -103,7 +103,7 @@ public abstract class MembershipKey { * multicast datagrams from the given source address. If the given source * address is already blocked then this method has no effect. * After a source address is blocked it may still be possible to receive - * datagams from that source. This can arise when datagrams are waiting to + * datagrams from that source. This can arise when datagrams are waiting to * be received in the socket's receive buffer. * * @param source diff --git a/jdk/src/share/classes/java/nio/channels/package-info.java b/jdk/src/share/classes/java/nio/channels/package-info.java index cb55f8f8da7..81183472108 100644 --- a/jdk/src/share/classes/java/nio/channels/package-info.java +++ b/jdk/src/share/classes/java/nio/channels/package-info.java @@ -269,7 +269,7 @@ * own asynchronous channel groups or configure the {@code ExecutorService} * that will be used for the default group. * - *
As with selectors, the implementatin of asynchronous channels can be + *
As with selectors, the implementation of asynchronous channels can be * replaced by "plugging in" an alternative definition or instance of the {@link * java.nio.channels.spi.AsynchronousChannelProvider} class defined in the * {@link java.nio.channels.spi} package. It is not expected that many diff --git a/jdk/src/share/classes/java/nio/charset/Charset.java b/jdk/src/share/classes/java/nio/charset/Charset.java index e1a828dcb15..3d946f1d4bc 100644 --- a/jdk/src/share/classes/java/nio/charset/Charset.java +++ b/jdk/src/share/classes/java/nio/charset/Charset.java @@ -201,7 +201,7 @@ import sun.security.action.GetPropertyAction; * *
If an attribute of the given name already exists then its value is * replaced. If the attribute does not exist then it is created. If it * implementation specific if a test to check for the existence of the - * attribute and the creation of attribute are atomic with repect to other + * attribute and the creation of attribute are atomic with respect to other * file system activities. * *
Where there is insufficient space to store the attribute, or the diff --git a/jdk/src/share/classes/java/rmi/MarshalledObject.java b/jdk/src/share/classes/java/rmi/MarshalledObject.java index 84675c11d1c..384230f88a3 100644 --- a/jdk/src/share/classes/java/rmi/MarshalledObject.java +++ b/jdk/src/share/classes/java/rmi/MarshalledObject.java @@ -135,7 +135,7 @@ public final class MarshalledObject
-implements Serializable { /** * Returns a new copy of the contained marshalledobject. The internal * representation is deserialized with the semantics used for - * unmarshaling paramters for RMI calls. + * unmarshaling parameters for RMI calls. * * @return a copy of the contained object * @exception IOException if an IOExceptionoccurs while @@ -182,7 +182,7 @@ public final class MarshalledObjectimplements Serializable { * in the serialized representation. * * @param obj the object to compare with this MarshalledObject- * @returntrueif the argument contains an equaivalent + * @returntrueif the argument contains an equivalent * serialized object;falseotherwise * @since 1.2 */ diff --git a/jdk/src/share/classes/java/security/AccessControlException.java b/jdk/src/share/classes/java/security/AccessControlException.java index fbdbb77b999..a4f2a7803ad 100644 --- a/jdk/src/share/classes/java/security/AccessControlException.java +++ b/jdk/src/share/classes/java/security/AccessControlException.java @@ -44,7 +44,7 @@ public class AccessControlException extends SecurityException { private static final long serialVersionUID = 5138225684096988535L; - // the permission that caused the exeception to be thrown. + // the permission that caused the exception to be thrown. private Permission perm; /** @@ -71,7 +71,7 @@ public class AccessControlException extends SecurityException { } /** - * Gets the Permission object associated with this exeception, or + * Gets the Permission object associated with this exception, or * null if there was no corresponding Permission object. * * @return the Permission object. diff --git a/jdk/src/share/classes/java/security/DigestOutputStream.java b/jdk/src/share/classes/java/security/DigestOutputStream.java index 5634a2252ec..51db133a5f6 100644 --- a/jdk/src/share/classes/java/security/DigestOutputStream.java +++ b/jdk/src/share/classes/java/security/DigestOutputStream.java @@ -38,7 +38,7 @@ import java.io.ByteArrayOutputStream; * *To complete the message digest computation, call one of the * {@code digest} methods on the associated message - * digest after your calls to one of this digest ouput stream's + * digest after your calls to one of this digest output stream's * {@link #write(int) write} methods. * *
It is possible to turn this stream on or off (see diff --git a/jdk/src/share/classes/java/security/KeyStore.java b/jdk/src/share/classes/java/security/KeyStore.java index e769bb158e1..f770d97b9b1 100644 --- a/jdk/src/share/classes/java/security/KeyStore.java +++ b/jdk/src/share/classes/java/security/KeyStore.java @@ -1612,7 +1612,7 @@ public class KeyStore { * Returns the KeyStore described by this object. * * @return the {@code KeyStore} described by this object - * @exception KeyStoreException if an error occured during the + * @exception KeyStoreException if an error occurred during the * operation, for example if the KeyStore could not be * instantiated or loaded */ @@ -1628,7 +1628,7 @@ public class KeyStore { * the {@link KeyStore.Entry Entry} with the given alias. * @param alias the alias of the KeyStore entry * @throws NullPointerException if alias is null - * @throws KeyStoreException if an error occured during the + * @throws KeyStoreException if an error occurred during the * operation * @throws IllegalStateException if the getKeyStore method has * not been invoked prior to calling this method diff --git a/jdk/src/share/classes/java/security/ProtectionDomain.java b/jdk/src/share/classes/java/security/ProtectionDomain.java index 3e306edd376..ed57ce9a2ac 100644 --- a/jdk/src/share/classes/java/security/ProtectionDomain.java +++ b/jdk/src/share/classes/java/security/ProtectionDomain.java @@ -401,7 +401,7 @@ public class ProtectionDomain { if (perms != null && permissions != null) { // // Weed out the duplicates from the policy. Unless a refresh - // has occured since the pd was consed this should result in + // has occurred since the pd was consed this should result in // an empty vector. synchronized (permissions) { e = permissions.elements(); // domain vs policy diff --git a/jdk/src/share/classes/java/security/Security.java b/jdk/src/share/classes/java/security/Security.java index ce99101e716..0db09da7061 100644 --- a/jdk/src/share/classes/java/security/Security.java +++ b/jdk/src/share/classes/java/security/Security.java @@ -496,7 +496,7 @@ public final class Security { *
- {@literal
. ** : } The cryptographic service name must not contain any dots. There - * must be one or more space charaters between the + * must be one or more space characters between the * {@literal
} and the * {@literal} . *A provider satisfies this selection criterion iff the @@ -570,7 +570,7 @@ public final class Security { *
- {@literal
}. * {@literal *} The cryptographic service name must not contain any dots. There - * must be one or more space charaters between the + * must be one or more space characters between the * {@literal
} * and the {@literal} . *The value associated with the key must be a non-empty string. diff --git a/jdk/src/share/classes/java/security/UnresolvedPermission.java b/jdk/src/share/classes/java/security/UnresolvedPermission.java index e6a6b36ed2a..6c400382dfe 100644 --- a/jdk/src/share/classes/java/security/UnresolvedPermission.java +++ b/jdk/src/share/classes/java/security/UnresolvedPermission.java @@ -441,7 +441,7 @@ implements java.io.Serializable * * @return the target name of the underlying permission that * has not been resolved, or {@code null}, - * if there is no targe name + * if there is no target name * * @since 1.5 */ diff --git a/jdk/src/share/classes/java/security/cert/CertificateRevokedException.java b/jdk/src/share/classes/java/security/cert/CertificateRevokedException.java index c50a224861a..a545627061a 100644 --- a/jdk/src/share/classes/java/security/cert/CertificateRevokedException.java +++ b/jdk/src/share/classes/java/security/cert/CertificateRevokedException.java @@ -129,7 +129,7 @@ public class CertificateRevokedException extends CertificateException { } /** - * Returns the invalidity date, as specifed in the Invalidity Date + * Returns the invalidity date, as specified in the Invalidity Date * extension of this {@code CertificateRevokedException}. The * invalidity date is the date on which it is known or suspected that the * private key was compromised or that the certificate otherwise became diff --git a/jdk/src/share/classes/java/security/spec/ECFieldF2m.java b/jdk/src/share/classes/java/security/spec/ECFieldF2m.java index 58843ab67da..4076fa6a39b 100644 --- a/jdk/src/share/classes/java/security/spec/ECFieldF2m.java +++ b/jdk/src/share/classes/java/security/spec/ECFieldF2m.java @@ -64,7 +64,7 @@ public class ECFieldF2m implements ECField { * field which has 2^{@code m} elements with * polynomial basis. * The reduction polynomial for this field is based - * on {@code rp} whose i-th bit correspondes to + * on {@code rp} whose i-th bit corresponds to * the i-th coefficient of the reduction polynomial.
* Note: A valid reduction polynomial is either a * trinomial (X^{@code m} + X^{@code k} + 1 diff --git a/jdk/src/share/classes/java/sql/Array.java b/jdk/src/share/classes/java/sql/Array.java index 584c63ffaf9..81278144b10 100644 --- a/jdk/src/share/classes/java/sql/Array.java +++ b/jdk/src/share/classes/java/sql/Array.java @@ -323,7 +323,7 @@ public interface Array { * element at index
index. The result set has * up tocountrows in ascending order based on the * indices. Each row has two columns: The second column stores - * the element value; the first column stroes the index into the + * the element value; the first column stores the index into the * array for that element. * * @param index the array index of the first element to retrieve; diff --git a/jdk/src/share/classes/java/sql/BatchUpdateException.java b/jdk/src/share/classes/java/sql/BatchUpdateException.java index 4d41d471cff..9c0c072140c 100644 --- a/jdk/src/share/classes/java/sql/BatchUpdateException.java +++ b/jdk/src/share/classes/java/sql/BatchUpdateException.java @@ -143,7 +143,7 @@ public class BatchUpdateException extends SQLException { * initialized by a call to the * {@link Throwable#initCause(java.lang.Throwable)} method. The *SQLStateis initialized tonull- * and the vender code is initialized to 0. + * and the vendor code is initialized to 0. ** Note: There is no validation of {@code updateCounts} for * overflow and because of this it is recommended that you use the constructor diff --git a/jdk/src/share/classes/java/sql/Blob.java b/jdk/src/share/classes/java/sql/Blob.java index 90bb251c07b..ba65c4027d6 100644 --- a/jdk/src/share/classes/java/sql/Blob.java +++ b/jdk/src/share/classes/java/sql/Blob.java @@ -158,7 +158,7 @@ public interface Blob { * in the
Blobobject starting at the position *pos. If the end of theBlobvalue is reached * while writing the array of bytes, then the length of theBlob- * value will be increased to accomodate the extra bytes. + * value will be increased to accommodate the extra bytes. ** Note: If the value specified for
pos* is greater then the length+1 of theBLOBvalue then the @@ -190,7 +190,7 @@ public interface Blob { * in theBlobobject starting at the position *pos. If the end of theBlobvalue is reached * while writing the array of bytes, then the length of theBlob- * value will be increased to accomodate the extra bytes. + * value will be increased to accommodate the extra bytes. ** Note: If the value specified for
pos* is greater then the length+1 of theBLOBvalue then the @@ -224,7 +224,7 @@ public interface Blob { * in theBlobobject starting at the position *pos. If the end of theBlobvalue is reached * while writing to the stream, then the length of theBlob- * value will be increased to accomodate the extra bytes. + * value will be increased to accommodate the extra bytes. ** Note: If the value specified for
pos* is greater then the length+1 of theBLOBvalue then the diff --git a/jdk/src/share/classes/java/sql/CallableStatement.java b/jdk/src/share/classes/java/sql/CallableStatement.java index a41aa10fa1e..9e593ae32db 100644 --- a/jdk/src/share/classes/java/sql/CallableStatement.java +++ b/jdk/src/share/classes/java/sql/CallableStatement.java @@ -1900,7 +1900,7 @@ public interface CallableStatement extends PreparedStatement { * @throws SQLException if parameterName does not correspond to a named * parameter; if the length specified * is less than zero; if the number of bytes in the inputstream does not match - * the specfied length; if a database access error occurs or + * the specified length; if a database access error occurs or * this method is called on a closedCallableStatement* @exception SQLFeatureNotSupportedException if the JDBC driver does not support * this method diff --git a/jdk/src/share/classes/java/sql/Clob.java b/jdk/src/share/classes/java/sql/Clob.java index 8ffc38af754..86bd1cc870c 100644 --- a/jdk/src/share/classes/java/sql/Clob.java +++ b/jdk/src/share/classes/java/sql/Clob.java @@ -172,7 +172,7 @@ public interface Clob { * in theClobobject starting at the position *pos. If the end of theClobvalue is reached * while writing the given string, then the length of theClob- * value will be increased to accomodate the extra characters. + * value will be increased to accommodate the extra characters. ** Note: If the value specified for
pos* is greater then the length+1 of theCLOBvalue then the @@ -202,7 +202,7 @@ public interface Clob { * in theClobobject starting at the position *pos. If the end of theClobvalue is reached * while writing the given string, then the length of theClob- * value will be increased to accomodate the extra characters. + * value will be increased to accommodate the extra characters. ** Note: If the value specified for
pos* is greater then the length+1 of theCLOBvalue then the @@ -235,7 +235,7 @@ public interface Clob { * in theClobobject starting at the position *pos. If the end of theClobvalue is reached * while writing characters to the stream, then the length of theClob- * value will be increased to accomodate the extra characters. + * value will be increased to accommodate the extra characters. ** Note: If the value specified for
pos* is greater then the length+1 of theCLOBvalue then the @@ -264,7 +264,7 @@ public interface Clob { * in theClobobject starting at the position *pos. If the end of theClobvalue is reached * while writing characters to the stream, then the length of theClob- * value will be increased to accomodate the extra characters. + * value will be increased to accommodate the extra characters. ** Note: If the value specified for
pos* is greater then the length+1 of theCLOBvalue then the diff --git a/jdk/src/share/classes/java/sql/Connection.java b/jdk/src/share/classes/java/sql/Connection.java index 3077c3c278c..19acac7fa61 100644 --- a/jdk/src/share/classes/java/sql/Connection.java +++ b/jdk/src/share/classes/java/sql/Connection.java @@ -242,7 +242,7 @@ public interface Connection extends Wrapper, AutoCloseable { * * @exception SQLException if a database access error occurs, * this method is called while participating in a distributed transaction, - * if this method is called on a closed conection or this + * if this method is called on a closed connection or this *Connectionobject is in auto-commit mode * @see #setAutoCommit */ diff --git a/jdk/src/share/classes/java/sql/DataTruncation.java b/jdk/src/share/classes/java/sql/DataTruncation.java index 09d43ac6019..c21305c33f4 100644 --- a/jdk/src/share/classes/java/sql/DataTruncation.java +++ b/jdk/src/share/classes/java/sql/DataTruncation.java @@ -30,7 +30,7 @@ package java.sql; * (on writes) or reported as a *DataTruncationwarning (on reads) * when a data values is unexpectedly truncated for reasons other than its having - * execeededMaxFieldSize. + * exceededMaxFieldSize. * *The SQLstate for a
DataTruncationduring read is01004. *The SQLstate for a
DataTruncationduring write is22001. @@ -107,7 +107,7 @@ public class DataTruncation extends SQLWarning { *This may be -1 if the column or parameter index is unknown, in * which case the
parameterandreadfields should be ignored. * - * @return the index of the truncated paramter or column value + * @return the index of the truncated parameter or column value */ public int getIndex() { return index; diff --git a/jdk/src/share/classes/java/sql/DatabaseMetaData.java b/jdk/src/share/classes/java/sql/DatabaseMetaData.java index 1ab6a60379d..11b013df863 100644 --- a/jdk/src/share/classes/java/sql/DatabaseMetaData.java +++ b/jdk/src/share/classes/java/sql/DatabaseMetaData.java @@ -1701,7 +1701,7 @@ public interface DatabaseMetaData extends Wrapper { *Only privileges matching the column name criteria are * returned. They are ordered by COLUMN_NAME and PRIVILEGE. * - *
Each privilige description has the following columns: + *
Each privilege description has the following columns: *
*
- TABLE_CAT String {@code =>} table catalog (may be
null) *- TABLE_SCHEM String {@code =>} table schema (may be
null) @@ -1747,7 +1747,7 @@ public interface DatabaseMetaData extends Wrapper { *TABLE_SCHEM,TABLE_NAME, * andPRIVILEGE. * - *Each privilige description has the following columns: + *
Each privilege description has the following columns: *
*
- TABLE_CAT String {@code =>} table catalog (may be
null) *- TABLE_SCHEM String {@code =>} table schema (may be
null) @@ -3257,7 +3257,7 @@ public interface DatabaseMetaData extends Wrapper { boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException; /** - * Retrieves whether aSQLExceptionwhile autoCommit istrueinidcates + * Retrieves whether aSQLExceptionwhile autoCommit istrueindicates * that all open ResultSets are closed, even ones that are holdable. When aSQLExceptionoccurs while * autocommit istrue, it is vendor specific whether the JDBC driver responds with a commit operation, a * rollback operation, or by doing neither a commit nor a rollback. A potential result of this difference diff --git a/jdk/src/share/classes/java/sql/DriverManager.java b/jdk/src/share/classes/java/sql/DriverManager.java index bd16f92de7b..53b4762d562 100644 --- a/jdk/src/share/classes/java/sql/DriverManager.java +++ b/jdk/src/share/classes/java/sql/DriverManager.java @@ -59,7 +59,7 @@ import sun.reflect.Reflection; *my.sql.Driver* * - *Applications no longer need to explictly load JDBC drivers using
Class.forName(). Existing programs + *Applications no longer need to explicitly load JDBC drivers using
Class.forName(). Existing programs * which currently load JDBC drivers usingClass.forName()will continue to work without * modification. * diff --git a/jdk/src/share/classes/java/sql/DriverPropertyInfo.java b/jdk/src/share/classes/java/sql/DriverPropertyInfo.java index 6e78e0723fc..0a0b8702ca5 100644 --- a/jdk/src/share/classes/java/sql/DriverPropertyInfo.java +++ b/jdk/src/share/classes/java/sql/DriverPropertyInfo.java @@ -38,7 +38,7 @@ public class DriverPropertyInfo { /** * Constructs aDriverPropertyInfoobject with a given * name and value. Thedescriptionandchoices- * are intialized tonullandrequiredis initialized + * are initialized tonullandrequiredis initialized * tofalse. * * @param name the name of the property diff --git a/jdk/src/share/classes/java/sql/PreparedStatement.java b/jdk/src/share/classes/java/sql/PreparedStatement.java index 83c005cee3d..20cde7fb985 100644 --- a/jdk/src/share/classes/java/sql/PreparedStatement.java +++ b/jdk/src/share/classes/java/sql/PreparedStatement.java @@ -856,7 +856,7 @@ public interface PreparedStatement extends Statement { * this method is called on a closedPreparedStatement; * if the length specified * is less than zero or if the number of bytes in the inputstream does not match - * the specfied length. + * the specified length. * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method * * @since 1.6 diff --git a/jdk/src/share/classes/java/sql/ResultSet.java b/jdk/src/share/classes/java/sql/ResultSet.java index 3b9bfbbfe09..5ac61d1d4c1 100644 --- a/jdk/src/share/classes/java/sql/ResultSet.java +++ b/jdk/src/share/classes/java/sql/ResultSet.java @@ -184,7 +184,7 @@ public interface ResultSet extends Wrapper, AutoCloseable { *The closing of a
ResultSetobject does not close theBlob, *CloborNClobobjects created by theResultSet.Blob, *CloborNClobobjects remain valid for at least the duration of the - * transaction in which they are creataed, unless theirfreemethod is invoked. + * transaction in which they are created, unless theirfreemethod is invoked. ** When a
ResultSetis closed, anyResultSetMetaData* instances that were created by calling thegetMetaData@@ -2423,7 +2423,7 @@ public interface ResultSet extends Wrapper, AutoCloseable { *DatabaseMetaDatamethod, this method may return *null. * - * @return theStatmentobject that produced + * @return theStatementobject that produced * thisResultSetobject ornull* if the result set was produced some other way * @exception SQLException if a database access error occurs @@ -2749,7 +2749,7 @@ public interface ResultSet extends Wrapper, AutoCloseable { /** * The constant indicating that openResultSetobjects with this - * holdability will remain open when the current transaction is commited. + * holdability will remain open when the current transaction is committed. * * @since 1.4 */ @@ -2757,7 +2757,7 @@ public interface ResultSet extends Wrapper, AutoCloseable { /** * The constant indicating that openResultSetobjects with this - * holdability will be closed when the current transaction is commited. + * holdability will be closed when the current transaction is committed. * * @since 1.4 */ diff --git a/jdk/src/share/classes/java/sql/SQLException.java b/jdk/src/share/classes/java/sql/SQLException.java index dfc5be33349..3b8c27a79d7 100644 --- a/jdk/src/share/classes/java/sql/SQLException.java +++ b/jdk/src/share/classes/java/sql/SQLException.java @@ -107,7 +107,7 @@ public class SQLException extends java.lang.Exception /** * Constructs aSQLExceptionobject with a given *reason. TheSQLStateis initialized to - *nulland the vender code is initialized to 0. + *nulland the vendor code is initialized to 0. * * Thecauseis not initialized, and may subsequently be * initialized by a call to the diff --git a/jdk/src/share/classes/java/sql/SQLFeatureNotSupportedException.java b/jdk/src/share/classes/java/sql/SQLFeatureNotSupportedException.java index 164c3181814..c15ff74fee6 100644 --- a/jdk/src/share/classes/java/sql/SQLFeatureNotSupportedException.java +++ b/jdk/src/share/classes/java/sql/SQLFeatureNotSupportedException.java @@ -60,7 +60,7 @@ public class SQLFeatureNotSupportedException extends SQLNonTransientException { /** * Constructs aSQLFeatureNotSupportedExceptionobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be @@ -118,7 +118,7 @@ public class SQLFeatureNotSupportedException extends SQLNonTransientException { *cause==nullor tocause.toString()if *cause!=null. *- * @param cause the underlying reason for this
SQLException(which is saved for later retrieval bythegetCause()method); may be null indicating + * @param cause the underlying reason for thisSQLException(which is saved for later retrieval by thegetCause()method); may be null indicating * the cause is non-existent or unknown. * @since 1.6 */ diff --git a/jdk/src/share/classes/java/sql/SQLIntegrityConstraintViolationException.java b/jdk/src/share/classes/java/sql/SQLIntegrityConstraintViolationException.java index 0f92ac50dfa..0fd5ca7b6e5 100644 --- a/jdk/src/share/classes/java/sql/SQLIntegrityConstraintViolationException.java +++ b/jdk/src/share/classes/java/sql/SQLIntegrityConstraintViolationException.java @@ -55,7 +55,7 @@ public class SQLIntegrityConstraintViolationException extends SQLNonTransientExc /** * Constructs aSQLIntegrityConstraintViolationException* with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be diff --git a/jdk/src/share/classes/java/sql/SQLInvalidAuthorizationSpecException.java b/jdk/src/share/classes/java/sql/SQLInvalidAuthorizationSpecException.java index 0b4d206df96..74067f0abd6 100644 --- a/jdk/src/share/classes/java/sql/SQLInvalidAuthorizationSpecException.java +++ b/jdk/src/share/classes/java/sql/SQLInvalidAuthorizationSpecException.java @@ -55,7 +55,7 @@ public class SQLInvalidAuthorizationSpecException extends SQLNonTransientExcepti /** * Constructs aSQLInvalidAuthorizationSpecExceptionobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be diff --git a/jdk/src/share/classes/java/sql/SQLNonTransientConnectionException.java b/jdk/src/share/classes/java/sql/SQLNonTransientConnectionException.java index 036c881f205..726a50529eb 100644 --- a/jdk/src/share/classes/java/sql/SQLNonTransientConnectionException.java +++ b/jdk/src/share/classes/java/sql/SQLNonTransientConnectionException.java @@ -56,7 +56,7 @@ public class SQLNonTransientConnectionException extends java.sql.SQLNonTransient /** * Constructs aSQLNonTransientConnectionExceptionobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be diff --git a/jdk/src/share/classes/java/sql/SQLNonTransientException.java b/jdk/src/share/classes/java/sql/SQLNonTransientException.java index 1e6889338be..e9e151da579 100644 --- a/jdk/src/share/classes/java/sql/SQLNonTransientException.java +++ b/jdk/src/share/classes/java/sql/SQLNonTransientException.java @@ -54,7 +54,7 @@ public class SQLNonTransientException extends java.sql.SQLException { /** * Constructs aSQLNonTransientExceptionobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be diff --git a/jdk/src/share/classes/java/sql/SQLRecoverableException.java b/jdk/src/share/classes/java/sql/SQLRecoverableException.java index 08de9d7798a..9b7bdabccb3 100644 --- a/jdk/src/share/classes/java/sql/SQLRecoverableException.java +++ b/jdk/src/share/classes/java/sql/SQLRecoverableException.java @@ -56,7 +56,7 @@ public class SQLRecoverableException extends java.sql.SQLException { /** * Constructs aSQLRecoverableExceptionobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be diff --git a/jdk/src/share/classes/java/sql/SQLSyntaxErrorException.java b/jdk/src/share/classes/java/sql/SQLSyntaxErrorException.java index b65dec722c7..4b1f71b88fe 100644 --- a/jdk/src/share/classes/java/sql/SQLSyntaxErrorException.java +++ b/jdk/src/share/classes/java/sql/SQLSyntaxErrorException.java @@ -54,7 +54,7 @@ public class SQLSyntaxErrorException extends SQLNonTransientException { /** * Constructs aSQLSyntaxErrorExceptionobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be @@ -112,7 +112,7 @@ public class SQLSyntaxErrorException extends SQLNonTransientException { *cause==nullor tocause.toString()if *cause!=null. *- * @param cause the underlying reason for this
SQLException(which is saved for later retrieval bythegetCause()method); may be null indicating + * @param cause the underlying reason for thisSQLException(which is saved for later retrieval by thegetCause()method); may be null indicating * the cause is non-existent or unknown. * @since 1.6 */ diff --git a/jdk/src/share/classes/java/sql/SQLTimeoutException.java b/jdk/src/share/classes/java/sql/SQLTimeoutException.java index a55ee05a74d..3f9ed357d30 100644 --- a/jdk/src/share/classes/java/sql/SQLTimeoutException.java +++ b/jdk/src/share/classes/java/sql/SQLTimeoutException.java @@ -54,7 +54,7 @@ public class SQLTimeoutException extends SQLTransientException { /** * Constructs aSQLTimeoutExceptionobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be diff --git a/jdk/src/share/classes/java/sql/SQLTransactionRollbackException.java b/jdk/src/share/classes/java/sql/SQLTransactionRollbackException.java index 90eb702994b..f5fe1563787 100644 --- a/jdk/src/share/classes/java/sql/SQLTransactionRollbackException.java +++ b/jdk/src/share/classes/java/sql/SQLTransactionRollbackException.java @@ -54,7 +54,7 @@ public class SQLTransactionRollbackException extends SQLTransientException { /** * Constructs aSQLTransactionRollbackExceptionobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be diff --git a/jdk/src/share/classes/java/sql/SQLTransientConnectionException.java b/jdk/src/share/classes/java/sql/SQLTransientConnectionException.java index cebc67d67d4..538ca47b3f2 100644 --- a/jdk/src/share/classes/java/sql/SQLTransientConnectionException.java +++ b/jdk/src/share/classes/java/sql/SQLTransientConnectionException.java @@ -55,7 +55,7 @@ public class SQLTransientConnectionException extends java.sql.SQLTransientExcept /** * Constructs aSQLTransientConnectionExceptionobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be diff --git a/jdk/src/share/classes/java/sql/SQLTransientException.java b/jdk/src/share/classes/java/sql/SQLTransientException.java index 644be1b2764..f0e86d5b82b 100644 --- a/jdk/src/share/classes/java/sql/SQLTransientException.java +++ b/jdk/src/share/classes/java/sql/SQLTransientException.java @@ -27,7 +27,7 @@ package java.sql; /** * The subclass of {@link SQLException} is thrown in situations where a - * previoulsy failed operation might be able to succeed when the operation is + * previously failed operation might be able to succeed when the operation is * retried without any intervention by application-level functionality. ** @@ -53,7 +53,7 @@ public class SQLTransientException extends java.sql.SQLException { /** * Constructs a
SQLTransientExceptionobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be diff --git a/jdk/src/share/classes/java/sql/SQLWarning.java b/jdk/src/share/classes/java/sql/SQLWarning.java index 944540c1f72..011a93ad3b1 100644 --- a/jdk/src/share/classes/java/sql/SQLWarning.java +++ b/jdk/src/share/classes/java/sql/SQLWarning.java @@ -86,7 +86,7 @@ public class SQLWarning extends SQLException { /** * Constructs aSQLWarningobject * with a givenreason. TheSQLState- * is initialized tonulland the vender code is initialized + * is initialized tonulland the vendor code is initialized * to 0. * * Thecauseis not initialized, and may subsequently be diff --git a/jdk/src/share/classes/java/sql/SQLXML.java b/jdk/src/share/classes/java/sql/SQLXML.java index 65f38217c4f..b7e55220271 100644 --- a/jdk/src/share/classes/java/sql/SQLXML.java +++ b/jdk/src/share/classes/java/sql/SQLXML.java @@ -362,7 +362,7 @@ public interface SQLXML * * @paramthe type of the class modeled by this Class object * @param sourceClass The class of the source, or null. - * If the class is null, a vendor specifc Source implementation will be returned. + * If the class is null, a vendor specific Source implementation will be returned. * The following classes are supported at a minimum: * * javax.xml.transform.dom.DOMSource - returns a DOMSource diff --git a/jdk/src/share/classes/java/sql/Statement.java b/jdk/src/share/classes/java/sql/Statement.java index ca347074b20..7c8cff8185d 100644 --- a/jdk/src/share/classes/java/sql/Statement.java +++ b/jdk/src/share/classes/java/sql/Statement.java @@ -34,8 +34,8 @@ package java.sql; *ResultSetobject is interleaved * with the reading of another, each must have been generated by * differentStatementobjects. All execution methods in the - *Statementinterface implicitly close a statment's current - *ResultSetobject if an open one exists. + *Statementinterface implicitly close a current + *ResultSetobject of the statement if an open one exists. * * @see Connection#createStatement * @see ResultSet @@ -445,7 +445,7 @@ public interface Statement extends Wrapper, AutoCloseable { /** * Gives the JDBC driver a hint as to the number of rows that should * be fetched from the database when more rows are needed for - *ResultSetobjects genrated by thisStatement. + *ResultSetobjects generated by thisStatement. * If the value specified is zero, then the hint is ignored. * The default value is zero. * @@ -501,7 +501,7 @@ public interface Statement extends Wrapper, AutoCloseable { int getResultSetType() throws SQLException; /** - * Adds the given SQL command to the current list of commmands for this + * Adds the given SQL command to the current list of commands for this *Statementobject. The commands in this list can be * executed as a batch by calling the methodexecuteBatch. *@@ -567,8 +567,8 @@ public interface Statement extends Wrapper, AutoCloseable { *
* The possible implementations and return values have been modified in * the Java 2 SDK, Standard Edition, version 1.3 to - * accommodate the option of continuing to proccess commands in a batch - * update after a
BatchUpdateExceptionobejct has been thrown. + * accommodate the option of continuing to process commands in a batch + * update after aBatchUpdateExceptionobject has been thrown. * * @return an array of update counts containing one element for each * command in the batch. The elements of the array are ordered according @@ -635,7 +635,7 @@ public interface Statement extends Wrapper, AutoCloseable { int SUCCESS_NO_INFO = -2; /** - * The constant indicating that an error occured while executing a + * The constant indicating that an error occurred while executing a * batch statement. * * @since 1.4 diff --git a/jdk/src/share/classes/java/sql/Struct.java b/jdk/src/share/classes/java/sql/Struct.java index 50261a6c89c..1b549616f5f 100644 --- a/jdk/src/share/classes/java/sql/Struct.java +++ b/jdk/src/share/classes/java/sql/Struct.java @@ -81,7 +81,7 @@ public interface Struct { /** * Produces the ordered values of the attributes of the SQL * structured type that thisStructobject represents. - * As individual attrbutes are proccessed, this method uses the given type map + * As individual attributes are processed, this method uses the given type map * for customizations of the type mappings. * If there is no * entry in the given type map that matches the structured diff --git a/jdk/src/share/classes/java/sql/package.html b/jdk/src/share/classes/java/sql/package.html index d6c97126a2a..d60cb5354ce 100644 --- a/jdk/src/share/classes/java/sql/package.html +++ b/jdk/src/share/classes/java/sql/package.html @@ -221,7 +221,7 @@ Thejava.sqlpackage contains API for the following:- SQLException enhancements -- Added support for cause chaining; New SQLExceptions added for common SQLState class value codes
- Enhanced Blob/Clob functionality -- Support provided to create and free a Blob/Clob instance - as well as additional methods added to improve accessiblity + as well as additional methods added to improve accessibility
- Support added for accessing a SQL ROWID
- Support added to allow a JDBC application to access an instance of a JDBC resource that has been wrapped by a vendor, usually in an application server or connection diff --git a/jdk/src/share/classes/java/text/BreakIterator.java b/jdk/src/share/classes/java/text/BreakIterator.java index 7c1f4524b8e..f5e53c4d4f9 100644 --- a/jdk/src/share/classes/java/text/BreakIterator.java +++ b/jdk/src/share/classes/java/text/BreakIterator.java @@ -338,7 +338,7 @@ public abstract class BreakIterator implements Cloneable * Otherwise, the iterator's current position is set to the returned boundary. * The value returned is always less than the offset or the value *
BreakIterator.DONE. - * @param offset the characater offset to begin scanning. + * @param offset the character offset to begin scanning. * @return The last boundary before the specified offset or *BreakIterator.DONEif the first text boundary is passed in * as the offset. diff --git a/jdk/src/share/classes/java/text/ChoiceFormat.java b/jdk/src/share/classes/java/text/ChoiceFormat.java index 8fcba9a92a9..f55837f8a4c 100644 --- a/jdk/src/share/classes/java/text/ChoiceFormat.java +++ b/jdk/src/share/classes/java/text/ChoiceFormat.java @@ -409,7 +409,7 @@ public class ChoiceFormat extends NumberFormat { * @param status an input-output parameter. On input, the * status.index field indicates the first character of the * source text that should be parsed. On exit, if no error - * occured, status.index is set to the first unparsed character + * occurred, status.index is set to the first unparsed character * in the source text. On exit, if an error did occur, * status.index is unchanged and status.errorIndex is set to the * first index of the character that caused the parse to fail. diff --git a/jdk/src/share/classes/java/text/DigitList.java b/jdk/src/share/classes/java/text/DigitList.java index 5f4321c025b..363306406eb 100644 --- a/jdk/src/share/classes/java/text/DigitList.java +++ b/jdk/src/share/classes/java/text/DigitList.java @@ -483,7 +483,7 @@ final class DigitList implements Cloneable { * * This has to be considered only if digit at maximumDigits index * is exactly the last one in the set of digits, otherwise there are - * remaining digits after that position and we dont have to consider + * remaining digits after that position and we don't have to consider * what FloatingDecimal did. * * - Other rounding modes are not impacted by these tie cases. @@ -570,7 +570,7 @@ final class DigitList implements Cloneable { return false; if (!allDecimalDigits) - // Otherwise if the digits dont represent exact value, + // Otherwise if the digits don't represent exact value, // value was above tie and FloatingDecimal truncated // digits to tie. We must round up. return true; diff --git a/jdk/src/share/classes/java/text/FieldPosition.java b/jdk/src/share/classes/java/text/FieldPosition.java index 300c7e89822..955221dee80 100644 --- a/jdk/src/share/classes/java/text/FieldPosition.java +++ b/jdk/src/share/classes/java/text/FieldPosition.java @@ -136,7 +136,7 @@ public class FieldPosition { * constant,fieldIDshould be -1. * * @param attribute Format.Field constant identifying a field - * @param fieldID integer constantce identifying a field + * @param fieldID integer constant identifying a field * @since 1.4 */ public FieldPosition(Format.Field attribute, int fieldID) { diff --git a/jdk/src/share/classes/java/text/Format.java b/jdk/src/share/classes/java/text/Format.java index 7a9c2ec4ddf..74fcc37d1bf 100644 --- a/jdk/src/share/classes/java/text/Format.java +++ b/jdk/src/share/classes/java/text/Format.java @@ -281,7 +281,7 @@ public abstract class Format implements Serializable, Cloneable { } /** - * Creates anAttributedCharacterIteratorcontaing the + * Creates anAttributedCharacterIteratorcontaining the * concatenated contents of the passed in *AttributedCharacterIterators. * diff --git a/jdk/src/share/classes/java/text/RuleBasedCollator.java b/jdk/src/share/classes/java/text/RuleBasedCollator.java index a99c0f757eb..53ebc7e7ef5 100644 --- a/jdk/src/share/classes/java/text/RuleBasedCollator.java +++ b/jdk/src/share/classes/java/text/RuleBasedCollator.java @@ -671,7 +671,7 @@ public class RuleBasedCollator extends Collator{ if (tables.isFrenchSec()) { if (preSecIgnore < secResult.length()) { - // If we've accumlated any secondary characters after the last base character, + // If we've accumulated any secondary characters after the last base character, // reverse them. RBCollationTables.reverse(secResult, preSecIgnore, secResult.length()); } diff --git a/jdk/src/share/classes/java/time/chrono/ChronoZonedDateTime.java b/jdk/src/share/classes/java/time/chrono/ChronoZonedDateTime.java index 24e3a3a514c..e98f422bb3a 100644 --- a/jdk/src/share/classes/java/time/chrono/ChronoZonedDateTime.java +++ b/jdk/src/share/classes/java/time/chrono/ChronoZonedDateTime.java @@ -158,7 +158,7 @@ public interface ChronoZonedDateTime* This method matches the signature of the functional interface {@link TemporalQuery} * allowing it to be used as a query via method reference, {@code ChronoZonedDateTime::from}. * - * @param temporal the temporal objec t to convert, not null + * @param temporal the temporal object to convert, not null * @return the date-time, not null * @throws DateTimeException if unable to convert to a {@code ChronoZonedDateTime} * @see Chronology#zonedDateTime(TemporalAccessor) diff --git a/jdk/src/share/classes/java/time/zone/ZoneRules.java b/jdk/src/share/classes/java/time/zone/ZoneRules.java index 4ed12755c23..6d7c07bfb0e 100644 --- a/jdk/src/share/classes/java/time/zone/ZoneRules.java +++ b/jdk/src/share/classes/java/time/zone/ZoneRules.java @@ -899,7 +899,7 @@ public final class ZoneRules implements Serializable { return transArray[i]; } } - // use last from preceeding year + // use last from preceding year int lastHistoricYear = findYear(lastHistoric, lastHistoricOffset); if (--year > lastHistoricYear) { transArray = findTransitionArray(year); diff --git a/jdk/src/share/classes/java/util/Arrays.java b/jdk/src/share/classes/java/util/Arrays.java index 43463a5aff6..c620c81f572 100644 --- a/jdk/src/share/classes/java/util/Arrays.java +++ b/jdk/src/share/classes/java/util/Arrays.java @@ -1225,7 +1225,7 @@ public class Arrays { * * The implementation was adapted from Tim Peters's list sort for Python * ( - * TimSort). It uses techiques from Peter McIlroy's "Optimistic + * TimSort). It uses techniques from Peter McIlroy's "Optimistic * Sorting and Information Theoretic Complexity", in Proceedings of the * Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pp 467-474, * January 1993. @@ -1284,7 +1284,7 @@ public class Arrays { * *
The implementation was adapted from Tim Peters's list sort for Python * ( - * TimSort). It uses techiques from Peter McIlroy's "Optimistic + * TimSort). It uses techniques from Peter McIlroy's "Optimistic * Sorting and Information Theoretic Complexity", in Proceedings of the * Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pp 467-474, * January 1993. @@ -1411,7 +1411,7 @@ public class Arrays { * *
The implementation was adapted from Tim Peters's list sort for Python * ( - * TimSort). It uses techiques from Peter McIlroy's "Optimistic + * TimSort). It uses techniques from Peter McIlroy's "Optimistic * Sorting and Information Theoretic Complexity", in Proceedings of the * Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pp 467-474, * January 1993. @@ -1475,7 +1475,7 @@ public class Arrays { * *
The implementation was adapted from Tim Peters's list sort for Python * ( - * TimSort). It uses techiques from Peter McIlroy's "Optimistic + * TimSort). It uses techniques from Peter McIlroy's "Optimistic * Sorting and Information Theoretic Complexity", in Proceedings of the * Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pp 467-474, * January 1993. diff --git a/jdk/src/share/classes/java/util/Locale.java b/jdk/src/share/classes/java/util/Locale.java index 6ecd39393fd..48decebb693 100644 --- a/jdk/src/share/classes/java/util/Locale.java +++ b/jdk/src/share/classes/java/util/Locale.java @@ -1836,7 +1836,7 @@ public final class Locale implements Cloneable, Serializable { * country
* * depending on which fields are specified in the locale. If the - * language, sacript, country, and variant fields are all empty, + * language, script, country, and variant fields are all empty, * this function returns the empty string. * * @return The name of the locale appropriate to display. diff --git a/jdk/src/share/classes/java/util/MissingFormatWidthException.java b/jdk/src/share/classes/java/util/MissingFormatWidthException.java index af76ac5b273..bd7c5901599 100644 --- a/jdk/src/share/classes/java/util/MissingFormatWidthException.java +++ b/jdk/src/share/classes/java/util/MissingFormatWidthException.java @@ -28,7 +28,7 @@ package java.util; /** * Unchecked exception thrown when the format width is required. * - *Unless otherwise specified, passing a null argument to anyg + *
Unless otherwise specified, passing a null argument to any * method or constructor in this class will cause a {@link * NullPointerException} to be thrown. * diff --git a/jdk/src/share/classes/java/util/PriorityQueue.java b/jdk/src/share/classes/java/util/PriorityQueue.java index 645497530a7..f2f870670bb 100644 --- a/jdk/src/share/classes/java/util/PriorityQueue.java +++ b/jdk/src/share/classes/java/util/PriorityQueue.java @@ -65,7 +65,7 @@ import java.util.function.Consumer; * java.util.concurrent.PriorityBlockingQueue} class. * *
Implementation note: this implementation provides - * O(log(n)) time for the enqueing and dequeing methods + * O(log(n)) time for the enqueuing and dequeuing methods * ({@code offer}, {@code poll}, {@code remove()} and {@code add}); * linear time for the {@code remove(Object)} and {@code contains(Object)} * methods; and constant time for the retrieval methods diff --git a/jdk/src/share/classes/java/util/ResourceBundle.java b/jdk/src/share/classes/java/util/ResourceBundle.java index c2900fa3ce9..c95a7dc8618 100644 --- a/jdk/src/share/classes/java/util/ResourceBundle.java +++ b/jdk/src/share/classes/java/util/ResourceBundle.java @@ -1255,7 +1255,7 @@ public abstract class ResourceBundle { *
getBundlefinds *foo/bar/Messages_fr.propertiesand creates a *ResourceBundleinstance. Then,getBundle- * sets up its parent chain from the list of the candiate locales. Only + * sets up its parent chain from the list of the candidate locales. Only *foo/bar/Messages.propertiesis found in the list and *getBundlecreates aResourceBundleinstance * that becomes the parent of the instance for @@ -2241,7 +2241,7 @@ public abstract class ResourceBundle { *- For an input
Localewith a variant value consisting * of multiple subtags separated by underscore, generate candidate *Locales by omitting the variant subtags one by one, then - * insert them after every occurence ofLocales with the + * insert them after every occurrence ofLocales with the * full variant value in the original list. For example, if the * the variant consists of two subtags V1 and V2: * @@ -2844,7 +2844,7 @@ public abstract class ResourceBundle { * andvariantare the language, script, country, and variant * values oflocale, respectively. Final component values that * are empty Strings are omitted along with the preceding '_'. When the - * script is empty, the script value is ommitted along with the preceding '_'. + * script is empty, the script value is omitted along with the preceding '_'. * If all of the values are empty strings, thenbaseName* is returned. * diff --git a/jdk/src/share/classes/java/util/concurrent/ArrayBlockingQueue.java b/jdk/src/share/classes/java/util/concurrent/ArrayBlockingQueue.java index 9a0346f6a52..a8f27ec8216 100644 --- a/jdk/src/share/classes/java/util/concurrent/ArrayBlockingQueue.java +++ b/jdk/src/share/classes/java/util/concurrent/ArrayBlockingQueue.java @@ -946,7 +946,7 @@ public class ArrayBlockingQueueextends AbstractQueue } /** - * Called whenever an interior remove (not at takeIndex) occured. + * Called whenever an interior remove (not at takeIndex) occurred. * * Notifies all iterators, and expunges any that are now stale. */ @@ -1305,7 +1305,7 @@ public class ArrayBlockingQueue extends AbstractQueue } /** - * Called whenever an interior remove (not at takeIndex) occured. + * Called whenever an interior remove (not at takeIndex) occurred. * * @return true if this iterator should be unlinked from itrs */ diff --git a/jdk/src/share/classes/java/util/concurrent/ConcurrentSkipListMap.java b/jdk/src/share/classes/java/util/concurrent/ConcurrentSkipListMap.java index 62364d9f0ec..fed0aa4135f 100644 --- a/jdk/src/share/classes/java/util/concurrent/ConcurrentSkipListMap.java +++ b/jdk/src/share/classes/java/util/concurrent/ConcurrentSkipListMap.java @@ -265,7 +265,7 @@ public class ConcurrentSkipListMap extends AbstractMap * highly contended cases. * * Unlike most skip-list implementations, index insertion and - * deletion here require a separate traversal pass occuring after + * deletion here require a separate traversal pass occurring after * the base-level action, to add or remove index nodes. This adds * to single-threaded overhead, but improves contended * multithreaded performance by narrowing interference windows, diff --git a/jdk/src/share/classes/java/util/concurrent/ExecutorCompletionService.java b/jdk/src/share/classes/java/util/concurrent/ExecutorCompletionService.java index 34d1d1a4fda..6047fd86088 100644 --- a/jdk/src/share/classes/java/util/concurrent/ExecutorCompletionService.java +++ b/jdk/src/share/classes/java/util/concurrent/ExecutorCompletionService.java @@ -161,7 +161,7 @@ public class ExecutorCompletionService implements CompletionService { * @param completionQueue the queue to use as the completion queue * normally one dedicated for use by this service. This * queue is treated as unbounded -- failed attempted - * {@code Queue.add} operations for completed taskes cause + * {@code Queue.add} operations for completed tasks cause * them not to be retrievable. * @throws NullPointerException if executor or completionQueue are {@code null} */ diff --git a/jdk/src/share/classes/java/util/jar/Manifest.java b/jdk/src/share/classes/java/util/jar/Manifest.java index b25165b3345..4e7da2ae853 100644 --- a/jdk/src/share/classes/java/util/jar/Manifest.java +++ b/jdk/src/share/classes/java/util/jar/Manifest.java @@ -63,7 +63,7 @@ public class Manifest implements Cloneable { * Constructs a new Manifest from the specified input stream. * * @param is the input stream containing manifest data - * @throws IOException if an I/O error has occured + * @throws IOException if an I/O error has occurred */ public Manifest(InputStream is) throws IOException { read(is); diff --git a/jdk/src/share/classes/java/util/regex/Pattern.java b/jdk/src/share/classes/java/util/regex/Pattern.java index 81ea7145a78..21a00295b0b 100644 --- a/jdk/src/share/classes/java/util/regex/Pattern.java +++ b/jdk/src/share/classes/java/util/regex/Pattern.java @@ -2438,7 +2438,7 @@ loop: for(int x=0, offset=0; x Note that the AccessibleRole class is also extensible, so diff --git a/jdk/src/share/classes/javax/accessibility/AccessibleText.java b/jdk/src/share/classes/javax/accessibility/AccessibleText.java index 1e37354673e..d4ed6643727 100644 --- a/jdk/src/share/classes/javax/accessibility/AccessibleText.java +++ b/jdk/src/share/classes/javax/accessibility/AccessibleText.java @@ -175,7 +175,7 @@ public interface AccessibleText { * If there is no selection, but there is * a caret, the start and end offsets will be the same. * - * @return the index into teh text of the end of the selection + * @return the index into the text of the end of the selection */ public int getSelectionEnd(); diff --git a/jdk/src/share/classes/javax/crypto/NullCipher.java b/jdk/src/share/classes/javax/crypto/NullCipher.java index 5c8d2f54735..f24ff0b8098 100644 --- a/jdk/src/share/classes/javax/crypto/NullCipher.java +++ b/jdk/src/share/classes/javax/crypto/NullCipher.java @@ -27,7 +27,7 @@ package javax.crypto; /** * The NullCipher class is a class that provides an - * "identity cipher" -- one that does not tranform the plaintext. As + * "identity cipher" -- one that does not transform the plain text. As * a consequence, the ciphertext is identical to the plaintext. All * initialization methods do nothing, while the blocksize is set to 1 * byte. diff --git a/jdk/src/share/classes/javax/crypto/NullCipherSpi.java b/jdk/src/share/classes/javax/crypto/NullCipherSpi.java index 2b310974aaf..23399a80921 100644 --- a/jdk/src/share/classes/javax/crypto/NullCipherSpi.java +++ b/jdk/src/share/classes/javax/crypto/NullCipherSpi.java @@ -30,7 +30,7 @@ import java.security.spec.*; /** * This class provides a delegate for the identity cipher - one that does not - * tranform the plaintext. + * transform the plain text. * * @author Li Gong * @see NullCipher diff --git a/jdk/src/share/classes/javax/imageio/IIOParam.java b/jdk/src/share/classes/javax/imageio/IIOParam.java index 02482c9e8e9..33bede6cdb6 100644 --- a/jdk/src/share/classes/javax/imageio/IIOParam.java +++ b/jdk/src/share/classes/javax/imageio/IIOParam.java @@ -95,7 +95,7 @@ public abstract class IIOParam { /** * An ImageTypeSpecifierto be used to generate a * destination image when reading, or to set the output color type - * when writing. If non has been setm the value will be + * when writing. If non has been set the value will be *null. By default, the value isnull. */ protected ImageTypeSpecifier destinationType = null; diff --git a/jdk/src/share/classes/javax/imageio/ImageIO.java b/jdk/src/share/classes/javax/imageio/ImageIO.java index 62098779a72..e6345322301 100644 --- a/jdk/src/share/classes/javax/imageio/ImageIO.java +++ b/jdk/src/share/classes/javax/imageio/ImageIO.java @@ -102,7 +102,7 @@ public final class ImageIO { * into the registry for later retrieval. * *The exact set of locations searched depends on the - * implementation of the Java runtime enviroment. + * implementation of the Java runtime environment. * * @see ClassLoader#getResources */ @@ -1466,7 +1466,7 @@ public final class ImageIO { * it is the responsibility of the caller to close the stream, if desired. * * @param im a
RenderedImageto be written. - * @param formatName aStringcontaing the informal + * @param formatName aStringcontaining the informal * name of the format. * @param output anImageOutputStreamto be written to. * @@ -1499,7 +1499,7 @@ public final class ImageIO { * discarded. * * @param im aRenderedImageto be written. - * @param formatName aStringcontaing the informal + * @param formatName aStringcontaining the informal * name of the format. * @param output aFileto be written to. * @@ -1551,7 +1551,7 @@ public final class ImageIO { *getCacheDirectorywill be used to control caching. * * @param im aRenderedImageto be written. - * @param formatName aStringcontaing the informal + * @param formatName aStringcontaining the informal * name of the format. * @param output anOutputStreamto be written to. * diff --git a/jdk/src/share/classes/javax/imageio/ImageReader.java b/jdk/src/share/classes/javax/imageio/ImageReader.java index ebbb98324a0..b6b70216902 100644 --- a/jdk/src/share/classes/javax/imageio/ImageReader.java +++ b/jdk/src/share/classes/javax/imageio/ImageReader.java @@ -632,7 +632,7 @@ public abstract class ImageReader { * Returns the aspect ratio of the given image (that is, its width * divided by its height) as afloat. For images * that are inherently resizable, this method provides a way to - * determine the appropriate width given a deired height, or vice + * determine the appropriate width given a desired height, or vice * versa. For non-resizable images, the true width and height * are used. * @@ -750,7 +750,7 @@ public abstract class ImageReader { * not associated with any particular image). If no such data * exists,nullis returned. * - *The resuting metadata object is only responsible for + *
The resulting metadata object is only responsible for * returning documents in the format named by *
formatName. Within any documents that are * returned, only nodes whose names are members of @@ -855,7 +855,7 @@ public abstract class ImageReader { * if the reader does not support reading metadata or none * is available. * - *The resuting metadata object is only responsible for + *
The resulting metadata object is only responsible for * returning documents in the format named by *
formatName. Within any documents that are * returned, only nodes whose names are members of @@ -1435,7 +1435,7 @@ public abstract class ImageReader { * *This method is merely a convenience equivalent to calling *
read(int, ImageReadParam)with a read param - * specifiying a source region having offsets of + * specifying a source region having offsets of *tileX*getTileWidth(imageIndex), *tileY*getTileHeight(imageIndex)and width and * height ofgetTileWidth(imageIndex), @@ -1948,7 +1948,7 @@ public abstract class ImageReader { * *The final results of decoding will be the same whether or * not intermediate updates are performed. Thus if only the final - * image is desired it may be perferable not to register any + * image is desired it may be preferable not to register any *
IIOReadUpdateListeners. In general, progressive * updating is most effective when fetching images over a network * connection that is very slow compared to local CPU processing; diff --git a/jdk/src/share/classes/javax/imageio/ImageWriteParam.java b/jdk/src/share/classes/javax/imageio/ImageWriteParam.java index adf4f3a9029..f903dd6f917 100644 --- a/jdk/src/share/classes/javax/imageio/ImageWriteParam.java +++ b/jdk/src/share/classes/javax/imageio/ImageWriteParam.java @@ -253,7 +253,7 @@ public class ImageWriteParam extends IIOParam { *false. Subclasses must set the value manually. * *Subclasses that do not support writing tiles, or that - * supprt writing but not offsetting tiles must ensure that this + * support writing but not offsetting tiles must ensure that this * value is set to
false. */ protected boolean canOffsetTiles = false; @@ -803,7 +803,7 @@ public class ImageWriteParam extends IIOParam { * **
MODE_DISABLED- No progression. Use this to - * turn off progession. + * turn off progression. * *MODE_COPY_FROM_METADATA- The output image * will use whatever progression parameters are found in the diff --git a/jdk/src/share/classes/javax/imageio/ImageWriter.java b/jdk/src/share/classes/javax/imageio/ImageWriter.java index 1fdabdcd5f8..9c150b93de3 100644 --- a/jdk/src/share/classes/javax/imageio/ImageWriter.java +++ b/jdk/src/share/classes/javax/imageio/ImageWriter.java @@ -423,7 +423,7 @@ public abstract class ImageWriter implements ImageTranscoder { // Thumbnails /** - * Returns the number of thumbnails suported by the format being + * Returns the number of thumbnails supported by the format being * written, given the image type and any additional write * parameters and metadata objects that will be used during * encoding. A return value of-1indicates that @@ -923,7 +923,7 @@ public abstract class ImageWriter implements ImageTranscoder { *The default implementation throws an *
IllegalStateExceptionif the output is *null, and otherwise returnsfalse- * withour checking the value ofimageIndex. + * without checking the value ofimageIndex. * * @param imageIndex the index at which the image is to be * inserted. diff --git a/jdk/src/share/classes/javax/imageio/event/IIOReadProgressListener.java b/jdk/src/share/classes/javax/imageio/event/IIOReadProgressListener.java index 4f0423a753e..d3f455e10de 100644 --- a/jdk/src/share/classes/javax/imageio/event/IIOReadProgressListener.java +++ b/jdk/src/share/classes/javax/imageio/event/IIOReadProgressListener.java @@ -62,7 +62,7 @@ public interface IIOReadProgressListener extends EventListener { void sequenceStarted(ImageReader source, int minIndex); /** - * Reports that a sequence of read operationshas completed. + * Reports that a sequence of read operations has completed. *ImageReaderimplementations are required to call * this method exactly once from their *readAll(Iterator)method. diff --git a/jdk/src/share/classes/javax/imageio/event/IIOReadUpdateListener.java b/jdk/src/share/classes/javax/imageio/event/IIOReadUpdateListener.java index 6e49314127b..d5077682a90 100644 --- a/jdk/src/share/classes/javax/imageio/event/IIOReadUpdateListener.java +++ b/jdk/src/share/classes/javax/imageio/event/IIOReadUpdateListener.java @@ -58,7 +58,7 @@ public interface IIOReadUpdateListener extends EventListener { * @param source theImageReaderobject calling this * method. * @param theImage theBufferedImagebeing updated. - * @param pass the numer of the pass that is about to begin, + * @param pass the number of the pass that is about to begin, * starting with 0. * @param minPass the index of the first pass that will be decoded. * @param maxPass the index of the last pass that will be decoded. @@ -175,7 +175,7 @@ public interface IIOReadUpdateListener extends EventListener { * method. * @param theThumbnail theBufferedImagethumbnail * being updated. - * @param pass the numer of the pass that is about to begin, + * @param pass the number of the pass that is about to begin, * starting with 0. * @param minPass the index of the first pass that will be decoded. * @param maxPass the index of the last pass that will be decoded. diff --git a/jdk/src/share/classes/javax/imageio/event/IIOReadWarningListener.java b/jdk/src/share/classes/javax/imageio/event/IIOReadWarningListener.java index 72d4956b3ca..71a720b4e50 100644 --- a/jdk/src/share/classes/javax/imageio/event/IIOReadWarningListener.java +++ b/jdk/src/share/classes/javax/imageio/event/IIOReadWarningListener.java @@ -46,7 +46,7 @@ import javax.imageio.ImageReader; public interface IIOReadWarningListener extends EventListener { /** - * Reports the occurence of a non-fatal error in decoding. Decoding + * Reports the occurrence of a non-fatal error in decoding. Decoding * will continue following the call to this method. The application * may choose to display a dialog, print the warning to the console, * ignore the warning, or take any other action it chooses. diff --git a/jdk/src/share/classes/javax/imageio/event/IIOWriteWarningListener.java b/jdk/src/share/classes/javax/imageio/event/IIOWriteWarningListener.java index c39f0fed926..f7cde3e9758 100644 --- a/jdk/src/share/classes/javax/imageio/event/IIOWriteWarningListener.java +++ b/jdk/src/share/classes/javax/imageio/event/IIOWriteWarningListener.java @@ -46,7 +46,7 @@ import javax.imageio.ImageWriter; public interface IIOWriteWarningListener extends EventListener { /** - * Reports the occurence of a non-fatal error in encoding. Encoding + * Reports the occurrence of a non-fatal error in encoding. Encoding * will continue following the call to this method. The application * may choose to display a dialog, print the warning to the console, * ignore the warning, or take any other action it chooses. diff --git a/jdk/src/share/classes/javax/imageio/metadata/IIOMetadata.java b/jdk/src/share/classes/javax/imageio/metadata/IIOMetadata.java index 15a2e26d0a8..3040d64f7bd 100644 --- a/jdk/src/share/classes/javax/imageio/metadata/IIOMetadata.java +++ b/jdk/src/share/classes/javax/imageio/metadata/IIOMetadata.java @@ -45,7 +45,7 @@ import java.lang.reflect.Method; * is designed to encode its metadata losslessly. This format will * typically be designed specifically to work with a specific file * format, so that images may be loaded and saved in the same format - * with no loss of metadata, but may be less useful for transfering + * with no loss of metadata, but may be less useful for transferring * metadata between anImageReaderand an *ImageWriterfor different image formats. To convert * between two native formats as losslessly as the image file formats @@ -130,9 +130,9 @@ public abstract class IIOMetadata { /** * Constructs an emptyIIOMetadataobject. The - * subclass is responsible for suppying values for all protected + * subclass is responsible for supplying values for all protected * instance variables that will allow any non-overridden default - * implemtations of methods to satisfy their contracts. For example, + * implementations of methods to satisfy their contracts. For example, *extraMetadataFormatNamesshould not have length 0. */ protected IIOMetadata() {} @@ -475,7 +475,7 @@ public abstract class IIOMetadata { * Alters the internal state of thisIIOMetadata* object from a tree of XML DOMNodes whose syntax * is defined by the given metadata format. The previous state is - * altered only as necessary to accomodate the nodes that are + * altered only as necessary to accommodate the nodes that are * present in the given tree. If the tree structure or contents * are invalid, anIIOInvalidTreeExceptionwill be * thrown. diff --git a/jdk/src/share/classes/javax/imageio/metadata/IIOMetadataFormat.java b/jdk/src/share/classes/javax/imageio/metadata/IIOMetadataFormat.java index dff11b9d24e..08bc4f12d14 100644 --- a/jdk/src/share/classes/javax/imageio/metadata/IIOMetadataFormat.java +++ b/jdk/src/share/classes/javax/imageio/metadata/IIOMetadataFormat.java @@ -40,7 +40,7 @@ import javax.imageio.ImageTypeSpecifier; * *N.B: classes that implement this interface should contain a * method declared as
public static getInstance()which - * returns an instance of the class. Commonly, an implentation will + * returns an instance of the class. Commonly, an implementation will * construct only a single instance and cache it for future * invocations ofgetInstance. * @@ -307,7 +307,7 @@ public interface IIOMetadataFormat { * with child policyCHILD_POLICY_REPEAT. For * example, an element representing color primary information * might be required to have at least 3 children, one for each - * primay. + * primary. * * @param elementName the name of the element being queried. * @@ -343,7 +343,7 @@ public interface IIOMetadataFormat { /** * Returns aStringcontaining a description of the - * named element, ornull. The desciption will be + * named element, ornull. The description will be * localized for the suppliedLocaleif possible. * *If
localeisnull, the current @@ -434,8 +434,8 @@ public interface IIOMetadataFormat { /** * Returns one of the constants starting with *DATATYPE_, indicating the format and - * interpretation of the value of the given attribute within th - * enamed element. IfgetAttributeValueTypereturns + * interpretation of the value of the given attribute within the + * named element. IfgetAttributeValueTypereturns *VALUE_LIST, then the legal value is a * whitespace-spearated list of values of the returned datatype. * @@ -460,7 +460,7 @@ public interface IIOMetadataFormat { * @param elementName the name of the element being queried. * @param attrName the name of the attribute being queried. * - * @returntrueif the attribut must be present. + * @returntrueif the attribute must be present. * * @exception IllegalArgumentException ifelementName* isnullor is not a legal element name for this @@ -473,7 +473,7 @@ public interface IIOMetadataFormat { /** * Returns the default value of the named attribute, if it is not - * explictly present within the named element, as a + * explicitly present within the named element, as a *String, ornullif no default value * is available. * @@ -624,7 +624,7 @@ public interface IIOMetadataFormat { /** * Returns aStringcontaining a description of the - * named attribute, ornull. The desciption will be + * named attribute, ornull. The description will be * localized for the suppliedLocaleif possible. * *If
localeisnull, the current @@ -725,7 +725,7 @@ public interface IIOMetadataFormat { *VALUE_ENUMERATION. * *The
Objectassociated with a node that accepts - * emuerated values must be equal to one of the values returned by + * enumerated values must be equal to one of the values returned by * this method, as defined by the==operator (as * opposed to theObject.equalsmethod). * diff --git a/jdk/src/share/classes/javax/imageio/metadata/IIOMetadataFormatImpl.java b/jdk/src/share/classes/javax/imageio/metadata/IIOMetadataFormatImpl.java index 4ca4f74c4a0..ef7caf3313e 100644 --- a/jdk/src/share/classes/javax/imageio/metadata/IIOMetadataFormatImpl.java +++ b/jdk/src/share/classes/javax/imageio/metadata/IIOMetadataFormatImpl.java @@ -234,7 +234,7 @@ public abstract class IIOMetadataFormatImpl implements IIOMetadataFormat { * name will be equal tothis.getClass().getName() + * "Resources". * - * @param resourceBaseName aStringcontaing the new + * @param resourceBaseName aStringcontaining the new * base name. * * @exception IllegalArgumentException if @@ -381,7 +381,7 @@ public abstract class IIOMetadataFormatImpl implements IIOMetadataFormat { * * @param parentName the name of the element that will be the * new parent of the element. - * @param elementName the name of the element to be addded as a + * @param elementName the name of the element to be added as a * child. * * @exception IllegalArgumentException ifelementName@@ -991,7 +991,7 @@ public abstract class IIOMetadataFormatImpl implements IIOMetadataFormat { /** * Returns aStringcontaining a description of the - * named element, ornull. The desciption will be + * named element, ornull. The description will be * localized for the suppliedLocaleif possible. * *The default implementation will first locate a @@ -1129,7 +1129,7 @@ public abstract class IIOMetadataFormatImpl implements IIOMetadataFormat { /** * Returns a
Stringcontaining a description of the - * named attribute, ornull. The desciption will be + * named attribute, ornull. The description will be * localized for the suppliedLocaleif possible. * *The default implementation will first locate a diff --git a/jdk/src/share/classes/javax/imageio/metadata/doc-files/standard_metadata.html b/jdk/src/share/classes/javax/imageio/metadata/doc-files/standard_metadata.html index 2e515879edb..4b909e66162 100644 --- a/jdk/src/share/classes/javax/imageio/metadata/doc-files/standard_metadata.html +++ b/jdk/src/share/classes/javax/imageio/metadata/doc-files/standard_metadata.html @@ -228,7 +228,7 @@ following DTD: <!-- Data type: Float --> <!ELEMENT "HorizontalPixelOffset" EMPTY> - <!-- The horizonal position, in pixels, where the image should be + <!-- The horizontal position, in pixels, where the image should be rendered onto a raster display --> <!ATTLIST "HorizontalPixelOffset" "value" #CDATA #REQUIRED> <!-- Data type: Integer --> diff --git a/jdk/src/share/classes/javax/imageio/spi/ImageReaderSpi.java b/jdk/src/share/classes/javax/imageio/spi/ImageReaderSpi.java index 4d4ccec0fa6..36d08e6cfdb 100644 --- a/jdk/src/share/classes/javax/imageio/spi/ImageReaderSpi.java +++ b/jdk/src/share/classes/javax/imageio/spi/ImageReaderSpi.java @@ -341,7 +341,7 @@ public abstract class ImageReaderSpi extends ImageReaderWriterSpi { * @exception IOException if the attempt to instantiate * the reader fails. * @exception IllegalArgumentException if the - *
ImageReader's contructor throws an + *ImageReader's constructor throws an *IllegalArgumentExceptionto indicate that the * extension object is unsuitable. */ diff --git a/jdk/src/share/classes/javax/imageio/spi/ImageReaderWriterSpi.java b/jdk/src/share/classes/javax/imageio/spi/ImageReaderWriterSpi.java index 63719d415b9..60c049d1eb4 100644 --- a/jdk/src/share/classes/javax/imageio/spi/ImageReaderWriterSpi.java +++ b/jdk/src/share/classes/javax/imageio/spi/ImageReaderWriterSpi.java @@ -538,7 +538,7 @@ public abstract class ImageReaderWriterSpi extends IIOServiceProvider { * Returns anIIOMetadataFormatobject describing the * given image metadata format, ornullif no * description is available. The supplied name must be the native - * iamge metadata format name, the standard metadata format name, + * image metadata format name, the standard metadata format name, * or one of those returned by *getExtraImageMetadataFormatNames. * diff --git a/jdk/src/share/classes/javax/imageio/stream/ImageInputStream.java b/jdk/src/share/classes/javax/imageio/stream/ImageInputStream.java index ebf984a9ddc..822971f18a4 100644 --- a/jdk/src/share/classes/javax/imageio/stream/ImageInputStream.java +++ b/jdk/src/share/classes/javax/imageio/stream/ImageInputStream.java @@ -550,7 +550,7 @@ public interface ImageInputStream extends DataInput, Closeable { * the read occurs. * * @param s an array of shorts to be written to. - * @param off the starting position withinb to write to. + * @param off the starting position withinsto write to. * @param len the maximum number ofshorts to read. * * @exception IndexOutOfBoundsException ifoffis @@ -575,7 +575,7 @@ public interface ImageInputStream extends DataInput, Closeable { * the read occurs. * * @param c an array of chars to be written to. - * @param off the starting position withinb to write to. + * @param off the starting position withincto write to. * @param len the maximum number ofchars to read. * * @exception IndexOutOfBoundsException ifoffis @@ -600,7 +600,7 @@ public interface ImageInputStream extends DataInput, Closeable { * the read occurs. * * @param i an array of ints to be written to. - * @param off the starting position withinb to write to. + * @param off the starting position withinito write to. * @param len the maximum number ofints to read. * * @exception IndexOutOfBoundsException ifoffis @@ -625,7 +625,7 @@ public interface ImageInputStream extends DataInput, Closeable { * the read occurs. * * @param l an array of longs to be written to. - * @param off the starting position withinb to write to. + * @param off the starting position withinlto write to. * @param len the maximum number oflongs to read. * * @exception IndexOutOfBoundsException ifoffis @@ -650,7 +650,7 @@ public interface ImageInputStream extends DataInput, Closeable { * the read occurs. * * @param f an array of floats to be written to. - * @param off the starting position withinb to write to. + * @param off the starting position withinfto write to. * @param len the maximum number offloats to read. * * @exception IndexOutOfBoundsException ifoffis @@ -675,7 +675,7 @@ public interface ImageInputStream extends DataInput, Closeable { * the read occurs. * * @param d an array of doubles to be written to. - * @param off the starting position withinb to write to. + * @param off the starting position withindto write to. * @param len the maximum number ofdoubles to read. * * @exception IndexOutOfBoundsException ifoffis @@ -904,7 +904,7 @@ public interface ImageInputStream extends DataInput, Closeable { /** * Discards the initial portion of the stream prior to the - * indicated postion. Attempting to seek to an offset within the + * indicated position. Attempting to seek to an offset within the * flushed portion of the stream will result in an *IndexOutOfBoundsException. * diff --git a/jdk/src/share/classes/javax/management/relation/RelationService.java b/jdk/src/share/classes/javax/management/relation/RelationService.java index dce1fe4ed1a..6ea329a6d13 100644 --- a/jdk/src/share/classes/javax/management/relation/RelationService.java +++ b/jdk/src/share/classes/javax/management/relation/RelationService.java @@ -132,7 +132,7 @@ public class RelationService extends NotificationBroadcasterSupport private MBeanServer myMBeanServer = null; // Filter registered in the MBean Server with the Relation Service to be - // informed of referenced MBean unregistrations + // informed of referenced MBean deregistrations private MBeanServerNotificationFilter myUnregNtfFilter = null; // List of unregistration notifications received (storage used if purge @@ -2108,7 +2108,7 @@ public class RelationService extends NotificationBroadcasterSupport *Will check the role according to its corresponding role definition * provided in relation's relation type *
The Relation Service will keep track of the change to keep the - * consistency of relations by handling referenced MBean unregistrations. + * consistency of relations by handling referenced MBean deregistrations. * * @param relationId relation id * @param role role to be set (name and new value) @@ -2220,7 +2220,7 @@ public class RelationService extends NotificationBroadcasterSupport *
Will check the role according to its corresponding role definition * provided in relation's relation type *
The Relation Service keeps track of the changes to keep the - * consistency of relations by handling referenced MBean unregistrations. + * consistency of relations by handling referenced MBean deregistrations. * * @param relationId relation id * @param roleList list of roles to be set @@ -2831,7 +2831,7 @@ public class RelationService extends NotificationBroadcasterSupport } // Updates the listener registered to the MBean Server to be informed of - // referenced MBean unregistrations + // referenced MBean deregistrations // // -param newRefList ArrayList of ObjectNames for new references done // to MBeans (can be null) diff --git a/jdk/src/share/classes/javax/management/relation/RelationServiceMBean.java b/jdk/src/share/classes/javax/management/relation/RelationServiceMBean.java index 1c668e6785a..48dde4be3f4 100644 --- a/jdk/src/share/classes/javax/management/relation/RelationServiceMBean.java +++ b/jdk/src/share/classes/javax/management/relation/RelationServiceMBean.java @@ -699,7 +699,7 @@ public interface RelationServiceMBean { *
Will check the role according to its corresponding role definition * provided in relation's relation type *
The Relation Service will keep track of the change to keep the - * consistency of relations by handling referenced MBean unregistrations. + * consistency of relations by handling referenced MBean deregistrations. * * @param relationId relation id * @param role role to be set (name and new value) @@ -742,7 +742,7 @@ public interface RelationServiceMBean { *
Will check the role according to its corresponding role definition * provided in relation's relation type *
The Relation Service keeps track of the changes to keep the - * consistency of relations by handling referenced MBean unregistrations. + * consistency of relations by handling referenced MBean deregistrations. * * @param relationId relation id * @param roleList list of roles to be set diff --git a/jdk/src/share/classes/javax/management/remote/rmi/package.html b/jdk/src/share/classes/javax/management/remote/rmi/package.html index 8492a05bebf..4306c292e18 100644 --- a/jdk/src/share/classes/javax/management/remote/rmi/package.html +++ b/jdk/src/share/classes/javax/management/remote/rmi/package.html @@ -95,7 +95,7 @@ questions.
rmioriiopin theprotocolpart of theserviceURLwhen creating the connector server. You - can also create specialised connector servers by instantiating + can also create specialized connector servers by instantiating an appropriate subclass of {@link javax.management.remote.rmi.RMIServerImpl RMIServerImpl} and supplying it to theRMIConnectorServerdiff --git a/jdk/src/share/classes/javax/naming/Binding.java b/jdk/src/share/classes/javax/naming/Binding.java index 5b7f3b85faa..5206dd0899b 100644 --- a/jdk/src/share/classes/javax/naming/Binding.java +++ b/jdk/src/share/classes/javax/naming/Binding.java @@ -48,7 +48,7 @@ package javax.naming; public class Binding extends NameClassPair { /** * Contains this binding's object. - * It is initialized by the constuctor and can be updated using + * It is initialized by the constructor and can be updated using * setObject. * @serial * @see #getObject diff --git a/jdk/src/share/classes/javax/naming/InsufficientResourcesException.java b/jdk/src/share/classes/javax/naming/InsufficientResourcesException.java index 45535b325f0..3ef840c85e3 100644 --- a/jdk/src/share/classes/javax/naming/InsufficientResourcesException.java +++ b/jdk/src/share/classes/javax/naming/InsufficientResourcesException.java @@ -30,7 +30,7 @@ package javax.naming; * the requested operation. This might due to a lack of resources on * the server or on the client. There are no restrictions to resource types, * as different services might make use of different resources. Such - * restrictions might be due to physical limits and/or adminstrative quotas. + * restrictions might be due to physical limits and/or administrative quotas. * Examples of limited resources are internal buffers, memory, network bandwidth. ** InsufficientResourcesException is different from LimitExceededException in that diff --git a/jdk/src/share/classes/javax/naming/ldap/LdapName.java b/jdk/src/share/classes/javax/naming/ldap/LdapName.java index ce94537062d..cde2b6a13e2 100644 --- a/jdk/src/share/classes/javax/naming/ldap/LdapName.java +++ b/jdk/src/share/classes/javax/naming/ldap/LdapName.java @@ -432,7 +432,7 @@ public class LdapName implements Name { * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up - * (away from index 0) to accomodate the new components. + * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. @@ -467,7 +467,7 @@ public class LdapName implements Name { * Adds the RDNs of a name -- in order -- at a specified position * within this name. RDNs of this LDAP name at or after the * index (if any) of the first new RDN are shifted up (away from index 0) to - * accomodate the new RDNs. + * accommodate the new RDNs. * * @param suffixRdns The non-null suffix Rdns to add. * @param posn The index at which to add the suffix RDNs. diff --git a/jdk/src/share/classes/javax/naming/ldap/Rdn.java b/jdk/src/share/classes/javax/naming/ldap/Rdn.java index b9f305ee83b..943f2304174 100644 --- a/jdk/src/share/classes/javax/naming/ldap/Rdn.java +++ b/jdk/src/share/classes/javax/naming/ldap/Rdn.java @@ -116,7 +116,7 @@ public class Rdn implements Serializable, Comparable
-This document has the following sections: @@ -76,14 +75,12 @@ a Swing Connection article.
- +
- Overview -@@ -146,14 +143,12 @@ is called (unsurprisingly) the Multiplexing look and feel.
- +
- How to Use Auxiliary Look and Feels -It's easy to use auxiliary look and feels with Swing. To instruct @@ -204,14 +199,12 @@ of the UIs obtained from the default and auxiliary look and feels.
- +
- Tips for Writing an Auxiliary Look and Feel -An auxiliary look and feel is like any other look and feel, @@ -252,7 +245,6 @@ the
-javax.swing.plafpackage. Dos and Don'tsThe following paragraphs provide some general recommendations for developing @@ -264,22 +256,19 @@ auxiliary look and feels. to perform all initialization, and the
-uninstallUImethod to perform all cleanup. --
+
TheinstallUIanduninstallUImethods are invoked when a component's look and feel is set. TheinstallUImethod gives the new UI object a chance to add listeners on the component and its data model. Similarly, theuninstallUImethod lets the previous UI object remove its listeners. -Don't extend visual look and feels.
--
+ look and feel can avoid competing with the default look and feel. +We recommended that you don't implement +
+ We recommended that you don't implement UI classes of an auxiliary look and feel as subclasses of the UI classes of a visual look and feel. Why not? Because they might accidentally inherit code that installs listeners on a component @@ -290,13 +279,13 @@ lets the previous UI object remove its listeners. Instead, we recommend that the UI classes of an auxiliary look and feel directly extend the abstract UI classes in thejavax.swing.plafpackage. By using this strategy, the developer of an auxiliary - look and feel can avoid competing with the default look and feel. -Override all UI-specific methods your UI classes inherit.
--
+ opaque components appear as blank areas on the screen! +We recommend that each UI class of +
+ We recommend that each UI class of an auxiliary look and feel override the methods defined in thejavax.swing.plafUI classes it descends from @@ -309,15 +298,14 @@ lets the previous UI object remove its listeners. if the component is opaque. If a UI class from a non-visual auxiliary look and feel does not override this method, all - opaque components appear as blank areas on the screen! -In many cases, you might want an auxiliary look and feel to be "incomplete." That @@ -379,7 +367,6 @@ In the preceding example, an auxiliary look and feel named
MyAuxExamining Other UI Objects -In rare instances, a UI object from an auxiliary look and feel @@ -395,12 +382,10 @@ In the preceding example, an auxiliary look and feel named
MyAux- +
- How the Multiplexing Look and Feel Is Implemented -The Multiplexing look and feel @@ -437,8 +422,8 @@ all developers and users. and feel is always the first to be created. After that, a UI object is created from each auxiliary look and feel in the order they are specified in the
swing.auxiliarylaf- property. -+ property.
+- When a method that requests information from a UI object is invoked, the multiplexing UI object invokes the method on all the UI objects, but returns @@ -450,8 +435,8 @@ all developers and users. The
-getPreferredSizemethod is also invoked on the UI object for each auxiliary look and feel, but the return values are ignored. -+
+- When a method that does not request information from the UI object is invoked, the multiplexing UI object invokes that method on all UIs -- @@ -474,14 +459,12 @@ all developers and users.
- +
- How to Provide a Custom Multiplexing Look and Feel - -While +
While we hope the behavior of the Multiplexing look and feel is flexible enough not to require an alternative multiplexing look and feel, Swing allows the user to specify another multiplexing look diff --git a/jdk/src/share/classes/javax/swing/plaf/multi/package.html b/jdk/src/share/classes/javax/swing/plaf/multi/package.html index 31b212bfbdb..94e73080e3d 100644 --- a/jdk/src/share/classes/javax/swing/plaf/multi/package.html +++ b/jdk/src/share/classes/javax/swing/plaf/multi/package.html @@ -25,7 +25,7 @@ Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA or visit www.oracle.com if you need additional information or have any questions. --> - +
diff --git a/jdk/src/share/classes/javax/swing/plaf/nimbus/AbstractRegionPainter.java b/jdk/src/share/classes/javax/swing/plaf/nimbus/AbstractRegionPainter.java index 355e68e95cb..6cdeb119c1e 100644 --- a/jdk/src/share/classes/javax/swing/plaf/nimbus/AbstractRegionPainter.java +++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/AbstractRegionPainter.java @@ -187,7 +187,7 @@ public abstract class AbstractRegionPainter implements Painter { protected abstract PaintContext getPaintContext(); /** - * Configures the given Graphics2D. Often, rendering hints or compositiing rules are + *
Configures the given Graphics2D. Often, rendering hints or compositing rules are * applied to a Graphics2D object prior to painting, which should affect all of the * subsequent painting operations. This method provides a convenient hook for configuring * the Graphics object prior to rendering, regardless of whether the render operation is @@ -201,7 +201,7 @@ public abstract class AbstractRegionPainter implements Painter
+the following properties:{ /** * Actually performs the painting operation. Subclasses must implement this method. - * The graphics object passed may represent the actual surface being rendererd to, + * The graphics object passed may represent the actual surface being rendered to, * or it may be an intermediate buffer. It has also been pre-translated. Simply render * the component as if it were located at 0, 0 and had a width of width* and a height ofheight. For performance reasons, you may want to read @@ -313,13 +313,13 @@ public abstract class AbstractRegionPainter implements Painter{ * Decodes and returns a color, which is derived from a base color in UI * defaults. * - * @param key A key corrosponding to the value in the UI Defaults table + * @param key A key corresponding to the value in the UI Defaults table * of UIManager where the base color is defined * @param hOffset The hue offset used for derivation. * @param sOffset The saturation offset used for derivation. * @param bOffset The brightness offset used for derivation. * @param aOffset The alpha offset used for derivation. Between 0...255 - * @return The derived color, whos color value will change if the parent + * @return The derived color, whose color value will change if the parent * uiDefault color changes. */ protected final Color decodeColor(String key, float hOffset, float sOffset, @@ -532,11 +532,11 @@ public abstract class AbstractRegionPainter implements Painter { * to one of the "decode" methods will return the passed in value. * @param inverted Whether to "invert" the meaning of the 9-square grid and stretching insets * @param cacheMode A hint as to which caching mode to use. If null, then set to no caching. - * @param maxH The maximium scale in the horizontal direction to use before punting and redrawing from scratch. + * @param maxH The maximum scale in the horizontal direction to use before punting and redrawing from scratch. * For example, if maxH is 2, then we will attempt to scale any cached images up to 2x the canvas * width before redrawing from scratch. Reasonable maxH values may improve painting performance. * If set too high, then you may get poor looking graphics at higher zoom levels. Must be >= 1. - * @param maxV The maximium scale in the vertical direction to use before punting and redrawing from scratch. + * @param maxV The maximum scale in the vertical direction to use before punting and redrawing from scratch. * For example, if maxV is 2, then we will attempt to scale any cached images up to 2x the canvas * height before redrawing from scratch. Reasonable maxV values may improve painting performance. * If set too high, then you may get poor looking graphics at higher zoom levels. Must be >= 1. diff --git a/jdk/src/share/classes/javax/swing/plaf/nimbus/LoweredBorder.java b/jdk/src/share/classes/javax/swing/plaf/nimbus/LoweredBorder.java index 768d7721974..deeecddfbbd 100644 --- a/jdk/src/share/classes/javax/swing/plaf/nimbus/LoweredBorder.java +++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/LoweredBorder.java @@ -64,7 +64,7 @@ class LoweredBorder extends AbstractRegionPainter implements Border { /** * Actually performs the painting operation. Subclasses must implement this * method. The graphics object passed may represent the actual surface being - * rendererd to, or it may be an intermediate buffer. It has also been + * rendered to, or it may be an intermediate buffer. It has also been * pre-translated. Simply render the component as if it were located at 0, 0 * and had a width of widthand a height of *height. For performance reasons, you may want to read the diff --git a/jdk/src/share/classes/javax/swing/plaf/nimbus/NimbusStyle.java b/jdk/src/share/classes/javax/swing/plaf/nimbus/NimbusStyle.java index fcb8cdb6a47..b4dfaffd124 100644 --- a/jdk/src/share/classes/javax/swing/plaf/nimbus/NimbusStyle.java +++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/NimbusStyle.java @@ -808,7 +808,7 @@ public final class NimbusStyle extends SynthStyle { } /** - * Simple utility method that searchs the given array of Strings for the + * Simple utility method that searches the given array of Strings for the * given string. This method is only called from getExtendedState if * the developer has specified a specific state for the component to be * in (ie, has "wedged" the component in that state) by specifying @@ -1010,7 +1010,7 @@ public final class NimbusStyle extends SynthStyle { } /** - * Contains values such as the UIDefaults and painters asssociated with + * Contains values such as the UIDefaults and painters associated with * a state. WhereasStaterepresents a distinct state that a * component can be in (such as Enabled), this class represents the colors, * fonts, painters, etc associated with some state for this diff --git a/jdk/src/share/classes/javax/swing/plaf/nimbus/doc-files/properties.html b/jdk/src/share/classes/javax/swing/plaf/nimbus/doc-files/properties.html index bedeffb5db7..67048cf1087 100644 --- a/jdk/src/share/classes/javax/swing/plaf/nimbus/doc-files/properties.html +++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/doc-files/properties.html @@ -1,5 +1,7 @@ + +Primary Colors
diff --git a/jdk/src/share/classes/javax/swing/plaf/nimbus/package.html b/jdk/src/share/classes/javax/swing/plaf/nimbus/package.html index 338df175b51..5a60f7a7885 100644 --- a/jdk/src/share/classes/javax/swing/plaf/nimbus/package.html +++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/package.html @@ -25,7 +25,7 @@ Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA or visit www.oracle.com if you need additional information or have any questions. --> - +@@ -39,11 +39,11 @@ component states. Nimbus allows customizing many of its properties, including painters, by altering the {@link javax.swing.UIDefaults} table. Here's an example: -
++UIManager.put("ProgressBar.tileWidth", myTileWidth); UIManager.put("ProgressBar[Enabled].backgroundPainter", myBgPainter); UIManager.put("ProgressBar[Enabled].foregroundPainter", myFgPainter); -Per-component customization is also possible. When rendering a component, Nimbus checks its client property named "Nimbus.Overrides". The value of this @@ -53,14 +53,14 @@ only. An optional client property, "Nimbus.Overrides.InheritDefaults" of type Boolean, specifies whether the overriding settings should be merged with default ones ({@code true}), or replace them ({@code false}). By default they are merged: -
++JProgressBar bar = new JProgressBar(); UIDefaults overrides = new UIDefaults(); overrides.put("ProgressBar.cycleTime", 330); ... bar.putClientProperty("Nimbus.Overrides", overrides); bar.putClientProperty("Nimbus.Overrides.InheritDefaults", false); -Colors in Nimbus are derived from a core set of primary colors. There are also diff --git a/jdk/src/share/classes/javax/swing/plaf/package.html b/jdk/src/share/classes/javax/swing/plaf/package.html index fdd354d8c0a..4e1745e4457 100644 --- a/jdk/src/share/classes/javax/swing/plaf/package.html +++ b/jdk/src/share/classes/javax/swing/plaf/package.html @@ -25,7 +25,7 @@ Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA or visit www.oracle.com if you need additional information or have any questions. --> - +
diff --git a/jdk/src/share/classes/javax/swing/plaf/synth/SynthInternalFrameTitlePane.java b/jdk/src/share/classes/javax/swing/plaf/synth/SynthInternalFrameTitlePane.java index 021d21de116..a6442da947c 100644 --- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthInternalFrameTitlePane.java +++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthInternalFrameTitlePane.java @@ -191,20 +191,28 @@ class SynthInternalFrameTitlePane extends BasicInternalFrameTitlePane } protected void addSystemMenuItems(JPopupMenu menu) { - // PENDING: this should all be localizable! JMenuItem mi = menu.add(restoreAction); - mi.setMnemonic('R'); + mi.setMnemonic(getButtonMnemonic("restore")); mi = menu.add(moveAction); - mi.setMnemonic('M'); + mi.setMnemonic(getButtonMnemonic("move")); mi = menu.add(sizeAction); - mi.setMnemonic('S'); + mi.setMnemonic(getButtonMnemonic("size")); mi = menu.add(iconifyAction); - mi.setMnemonic('n'); + mi.setMnemonic(getButtonMnemonic("minimize")); mi = menu.add(maximizeAction); - mi.setMnemonic('x'); + mi.setMnemonic(getButtonMnemonic("maximize")); menu.add(new JSeparator()); mi = menu.add(closeAction); - mi.setMnemonic('C'); + mi.setMnemonic(getButtonMnemonic("close")); + } + + private static int getButtonMnemonic(String button) { + try { + return Integer.parseInt(UIManager.getString( + "InternalFrameTitlePane." + button + "Button.mnemonic")); + } catch (NumberFormatException e) { + return -1; + } } protected void showSystemMenu() { diff --git a/jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java b/jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java index bece289030f..1df0737620d 100644 --- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java +++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java @@ -116,7 +116,7 @@ public class SynthLookAndFeel extends BasicLookAndFeel { /** * Used by the renderers. For the most part the renderers are implemented * as Labels, which is problematic in so far as they are never selected. - * To accomodate this SynthLabelUI checks if the current + * To accommodate this SynthLabelUI checks if the current * UI matches that of selectedUI(which this methods sets), if * it does, then a state as set by this method is returned. This provides * a way for labels to have a state other than selected. diff --git a/jdk/src/share/classes/javax/swing/plaf/synth/doc-files/componentProperties.html b/jdk/src/share/classes/javax/swing/plaf/synth/doc-files/componentProperties.html index aa0145cfce2..2837aaec4d7 100644 --- a/jdk/src/share/classes/javax/swing/plaf/synth/doc-files/componentProperties.html +++ b/jdk/src/share/classes/javax/swing/plaf/synth/doc-files/componentProperties.html @@ -47,7 +47,7 @@ Components will create it to render a button with an arrow. The JComboBox, JScrollBar and JSplitPane (for the buttons on the divider). In addition to the Button properties, ArrowButton supports -the following propeties:ArrowButton Specific Properties
@@ -887,7 +887,7 @@ invoked. JScrollPane is unique in that it provides a method for setting the Border around the JViewport with JViewport throwing an IllegalArgumentException from diff --git a/jdk/src/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html b/jdk/src/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html index dfb99f4ef50..ad84defba08 100644 --- a/jdk/src/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html +++ b/jdk/src/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html @@ -2,7 +2,7 @@setBorder. To - accomodate this a special border is installed on the + accommodate this a special border is installed on theJScrollPanethat uses the insets from the keyScrollPane.viewportBorderInsets. The @@ -1190,7 +1190,7 @@ space, along the y axis, to offset nodes from their parent.Tree.scrollsHorizontallyAndVertically Boolean false -If false and scrolling needs to happen to accomodate cells + If false and scrolling needs to happen to accommodate cells it will only happen along the vertical axis, if true, scrolling may happen along both the horizontal and vertical axis. Synth File Format -