• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
ok, I can see the source code in the package,
see how it works internally




Thanks
Jack
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic