Imported GNU Classpath 0.20
Imported GNU Classpath 0.20 * Makefile.am (AM_CPPFLAGS): Add classpath/include. * java/nio/charset/spi/CharsetProvider.java: New override file. * java/security/Security.java: Likewise. * sources.am: Regenerated. * Makefile.in: Likewise. From-SVN: r109831
This commit is contained in:
parent
bcb36c3e02
commit
2127637945
444 changed files with 75778 additions and 30731 deletions
|
@ -54,6 +54,7 @@ import java.util.ResourceBundle;
|
|||
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.plaf.ComponentUI;
|
||||
import javax.swing.plaf.InputMapUIResource;
|
||||
|
||||
/**
|
||||
* UIDefaults is a database where all settings and interface bindings are
|
||||
|
@ -95,10 +96,14 @@ public class UIDefaults extends Hashtable
|
|||
}
|
||||
public Object createValue(UIDefaults table)
|
||||
{
|
||||
InputMap im = new InputMap ();
|
||||
InputMapUIResource im = new InputMapUIResource ();
|
||||
for (int i = 0; 2*i+1 < bind.length; ++i)
|
||||
{
|
||||
im.put (KeyStroke.getKeyStroke ((String) bind[2*i]),
|
||||
Object curr = bind[2*i];
|
||||
if (curr instanceof KeyStroke)
|
||||
im.put((KeyStroke) curr, bind[2*i+1]);
|
||||
else
|
||||
im.put(KeyStroke.getKeyStroke((String) curr),
|
||||
bind[2*i+1]);
|
||||
}
|
||||
return im;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue