Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

in Java 1.5 shows logging for Focus Manager

paultaylorOct 1 2004 — edited Oct 7 2004
Hi, I have just tested my application against Java 1.5 it works ok but is spewing a load of information out to do with the Focus manager. Ive had a look at the source for one of these classes (java.awt.KeyboardFocusManager) and it contains code such as
static AWTEvent retargetFocusEvent(AWTEvent event) {
        if (clearingCurrentLightweightRequests) {
            return event;
        }        

        KeyboardFocusManager manager = getCurrentKeyboardFocusManager();
        if (focusLog.isLoggable(Level.FINE)) {
            if (event instanceof FocusEvent || event instanceof WindowEvent) {
                focusLog.log(Level.FINE, ">>> {0}", new Object[] {event});
            }
            if (focusLog.isLoggable(Level.FINER) && event instanceof KeyEvent) {
                focusLog.log(Level.FINER, "    focus owner is {0}", new Object[] {manager.getGlobalFocusOwner()});
                focusLog.log(Level.FINER, ">>> {0}", new Object[] {event});
            }
        }
How do I disable isLoggable(), i have tried using -da and -dsa options when starting java to do effect. ?

Are they indicating problems with my code or just general information ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2004
Added on Oct 1 2004
1 comment
82 views