Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #4852

Re: Debugging Focus problem

From Novice <novice@example..com>
Newsgroups comp.lang.java.gui
Subject Re: Debugging Focus problem
Date 2011-12-22 22:45 +0000
Organization Your Company
Message-ID <Xns9FC3B54E7596Fjpnasty@94.75.214.39> (permalink)
References <Xns9FC3ACBF370B4jpnasty@94.75.214.39> <jd09jv$adb$1@dont-email.me>

Show all headers | View raw


Jeff Higgins <jeff@invalid.invalid> wrote in news:jd09jv$adb$1@dont-
email.me:

> http://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html


I changed my requestFocus() to requestFocusInWindow() and it still didn't 
work; the System.out.println still indicated that the focus was on "null". 
But when I added the window focus listener suggested in the article you 
cited, it started setting the focus where I wanted it. 

Thanks for your help!

-- 
Novice

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Debugging Focus problem Novice <novice@example..com> - 2011-12-22 21:54 +0000
  Re: Debugging Focus problem Jeff Higgins <jeff@invalid.invalid> - 2011-12-22 17:10 -0500
    Re: Debugging Focus problem Novice <novice@example..com> - 2011-12-22 22:45 +0000
  Re: Debugging Focus problem Roedy Green <see_website@mindprod.com.invalid> - 2011-12-22 19:54 -0800

csiph-web