summaryrefslogtreecommitdiffstats
path: root/src/nativewindow
diff options
context:
space:
mode:
Diffstat (limited to 'src/nativewindow')
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java
index 4b0ae5d20..8765f58d0 100644
--- a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java
+++ b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java
@@ -127,7 +127,7 @@ public abstract class JAWTWindow implements NativeWindow, OffscreenLayerSurface,
private class JAWTComponentListener implements ComponentListener, HierarchyListener {
private boolean isShowing;
- private String str(Object obj) {
+ private String str(final Object obj) {
if( null == obj ) {
return "0xnil: null";
} else if( obj instanceof Component ) {
@@ -138,14 +138,14 @@ public abstract class JAWTWindow implements NativeWindow, OffscreenLayerSurface,
return id(obj)+": "+obj.getClass().getSimpleName()+"[..]";
}
}
- private String s(ComponentEvent e) {
+ private String s(final ComponentEvent e) {
return "visible[isShowing "+isShowing+"],"+Platform.getNewline()+
" ** COMP "+str(e.getComponent())+Platform.getNewline()+
" ** SOURCE "+str(e.getSource())+Platform.getNewline()+
" ** THIS "+str(component)+Platform.getNewline()+
" ** THREAD "+getThreadName();
}
- private String s(HierarchyEvent e) {
+ private String s(final HierarchyEvent e) {
return "visible[isShowing "+isShowing+"], changeBits 0x"+Long.toHexString(e.getChangeFlags())+Platform.getNewline()+
" ** COMP "+str(e.getComponent())+Platform.getNewline()+
" ** SOURCE "+str(e.getSource())+Platform.getNewline()+
@@ -212,11 +212,11 @@ public abstract class JAWTWindow implements NativeWindow, OffscreenLayerSurface,
@Override
public final void hierarchyChanged(HierarchyEvent e) {
- final boolean wasAWTCompShowing = isShowing;
+ final boolean wasShowing = isShowing;
isShowing = component.isShowing();
int action = 0;
if( 0 != ( java.awt.event.HierarchyEvent.SHOWING_CHANGED & e.getChangeFlags() ) ) {
- if( e.getChanged() != component && wasAWTCompShowing != isShowing ) {
+ if( e.getChanged() != component && wasShowing != isShowing ) {
// A parent component changed and caused a 'showing' state change,
// propagate to offscreen-layer!
layoutSurfaceLayerIfEnabled(isShowing);