• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to simulate a focusLost Event when the user click away from the JComboBox?

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems to be working only when the user uses the tab key.
It doesn't trigger this event for the focus listener when
the user click another component from, like
the JDateChooser.
Thanks
Jack
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like you have been told many many times before, without your SSCCE, nobody can be bothered to help you with questions like "It seems to be working only when..."
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In the code project, when the user finishes choosing a date, then click away
Event Triggered is not shown. I don't understand why
Thanks
Jack
 
m Korbel
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- why do you need that, miss any reason for this public and free API,

- because I'm sure that focus recycle is there excelent handled, code is clear, as aside this is one of the best of JCalendar, without side effect as you can see in most of non_free JCalendars

- load code_source, see how is created JComponents hierarchy, see which type of Top-Level Container is used for popup window, how is focus handled, which methods and how they are used (I think you can to override those methods - see Kais licencing before)

- raeson should be important, because most of (un_)standards are implemented by author in publics methods, then there isn't reason to walking throught JComponents tree and wrong way

- I see, I miss there some must_to_have addons (special days, hollydays, coloring, etc) that is probalby out of your scope
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
ok, I can see the source code in the package,
see how it works internally




Thanks
Jack
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!