Hi All,

 I wanted to display a list of all UIManager properties and the default
 settings. it seems nothing is special but.
 
 the first time I got 545,
 the second time I got 547,
 
 why ?
 
 Could you please anyone answer me .The source is:
 //W2000, nb3.3.1, jdk1.3.1_02
 // begin
 import javax.swing.*;
 import java.util.*;
 
 public class DefaulltKey {
    public static void main(String[] args) {
    UIDefaults defaults = UIManager.getDefaults();
 
    TreeMap tm = new TreeMap();
 
    System.out.println("1 Count Item = " + defaults.size());
 
    int i = 0;
    for( Enumeration e = defaults.keys(); e.hasMoreElements(); i++ ){
          Object kk = e.nextElement();
          tm.put(kk,defaults.get(kk));
    }
 
    System.out.println("2 Count Item = " + defaults.size());
    }
 }
 // end
 
 thank you,
 
 Alexander Gusev.
_______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to