• Post Reply Bookmark Topic Watch Topic
  • New Topic

get(Object key) in UIDefaults

 
krishna prasad gunasekaran
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
uiClassID maps to a UI class in the default hash table.
This is the code

Object o=defaults.get(btnClassID);
Class c=(Class)defaults.get(o);
Object o2=defaults.get(c);

System.out.println(o);
System.out.println(c);
System.out.println(o2);


Output

com.sun.java.swing.plaf.windows.WindowsButtonUI //oputput1

class com.sun.java.swing.plaf.windows.WindowsButtonUI //output2

public static javax.swing.plaf.ComponentUI com.sun.java.swing.plaf.windows.WindowsButtonUI.createUI (javax.swing.JComponent) //output3

what's the third one for?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!