Re: UIManager.put() allows duplicates ????



I made some more tests, on different OSs, different IDEs, and the
problem remains.

The UIDefaults class which inherits the Hashtable allows duplicate
keys.
If I remove the "Label.font" key prior to put("Label.font", myFont) ,
I can solve the problem, but I'm bothered with this undocumented
feature or the Hashtable bug.

.



Relevant Pages

  • Re: Create a custom collection
    ... | I implemented a class called MyDictionary that inherits from ... DictionaryBase. ... | The thing is that my class, cannot handle a duplicate value in the "keys" ... You could code your Add such that if you are adding a duplicate that it ...
    (microsoft.public.dotnet.languages.vb)
  • Re: how to parse INI files ?
    ... >> What of duplicate sections? ... > I allowed duplicate keys; and if the value associated with the duplicate ... When multiple spaces are found within section names and keys, ... Michel Bardiaux ...
    (comp.lang.c)
  • Re: how to parse INI files ?
    ... > What of duplicate sections? ... I allowed duplicate keys; and if the value associated with the ... Multiple spaces within ... I maintained the order of /first instance/ of sections and KVPs ...
    (comp.lang.c)
  • Re: Thanks!
    ... I realize my concept of keys might be slightly askew. ... > a number and not having to worry about the user assigning duplicate ... on "surrogate keys" would return you some interesting, and lively, ... and interview the 'offending' employee. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: After creating a Form, how do you you put four tables that have a.
    ... I have been asked to creat a form, ... were not successful because they would create duplicate values in the index ... How do you redifine to ... keys and I also have 3 foreign keys to link everything together. ...
    (microsoft.public.access.forms)