src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java
Print this page
*** 208,218 ****
/**
* Descendants should use this method to determine whether or not native window
* has focus.
*/
! final public boolean hasFocus() {
return bHasFocus;
}
/**
* Called when component receives focus
--- 208,218 ----
/**
* Descendants should use this method to determine whether or not native window
* has focus.
*/
! public final boolean hasFocus() {
return bHasFocus;
}
/**
* Called when component receives focus
*** 240,250 ****
}
private static Class<?> seClass;
private static Constructor<?> seCtor;
! final static AWTEvent wrapInSequenced(AWTEvent event) {
try {
if (seClass == null) {
seClass = Class.forName("java.awt.SequencedEvent");
}
--- 240,250 ----
}
private static Class<?> seClass;
private static Constructor<?> seCtor;
! static final AWTEvent wrapInSequenced(AWTEvent event) {
try {
if (seClass == null) {
seClass = Class.forName("java.awt.SequencedEvent");
}
*** 281,291 ****
return null;
}
// TODO: consider moving it to KeyboardFocusManagerPeerImpl
@SuppressWarnings("deprecation")
! final public boolean requestFocus(Component lightweightChild, boolean temporary,
boolean focusedWindowChangeAllowed, long time,
CausedFocusEvent.Cause cause)
{
if (XKeyboardFocusManagerPeer.
processSynchronousLightweightTransfer(target, lightweightChild, temporary,
--- 281,291 ----
return null;
}
// TODO: consider moving it to KeyboardFocusManagerPeerImpl
@SuppressWarnings("deprecation")
! public final boolean requestFocus(Component lightweightChild, boolean temporary,
boolean focusedWindowChangeAllowed, long time,
CausedFocusEvent.Cause cause)
{
if (XKeyboardFocusManagerPeer.
processSynchronousLightweightTransfer(target, lightweightChild, temporary,