Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

client properties of JRootPane  RSS feed

 
Stephen Suen
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all
I found following snippet in javax.swing.plaf.basic.BasicRootPaneUI:

Following that clue, I found this in BasicButtonListener:

I'm curious about two client properties, temporaryDefaultButton and initialDefaultButton. Can anybody tell me about the behaviors associated with these two properties?
Any help will be appreciated.
Stephen Suen
[ April 05, 2004: Message edited by: Stephen Suen ]
[ April 05, 2004: Message edited by: Stephen Suen ]
 
Fuqiang Zhao
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These property use for the default button, and the windows GUI has some feature that the default button follow the focus button, the "initialDefaultButton" is set by user use JRootPane.setDefaultButton method, and the "temporaryDefaultButton" is set when focus changed.

Hope that helps!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!