问题
After upgrading to java 1.8.0_40 from java 1.8.0_31 JTextFields
are no longer accepting any input.
Environment OS X 10.2.2 java 1.8.0_40 (the current build). iMac 4 GHz Intel Core i7.
I'm using webstart to launch the apps.
In order to test, I created a simple new project from the code downloaded from here:
http://www.javabeginner.com/java-swing/java-jtextfield-class-example
This sample code failed as well. In fact using the Oracle website examples fails to allow text field entry.
You can test from here:
http://docs.oracle.com/javase/tutorial/uiswing/components/textfield.html
Assuming you have the same environment.
It does not appear to fail on Windows 7 under Parallels on the same machine, can't say about other environments.
Any suggestion?
来源:https://stackoverflow.com/questions/28971608/java-jtextfield-entry-broken-on-1-8-0-40-os-x-yosemite-10-10-2