我有一个用netbeans开发的应用程序,我想在jTextField显示一个面板时将焦点设置为某个.我已经阅读了一些帖子,并尝试了各种方法,但没有工作.其中一个主要问题是放置所需代码的位置,我相信在我的情况下this.txtMessage.requestFocusInWindow();
有一些帖子表明使用Window Listener,但是由于netbeans已经生成了GUI,我无法看到如何实现接口,因为我无法编辑创建jPANEL等的代码.整件事非常令人沮丧,我真的不相信这应该是那么困难.
就像测试一样,我将其添加requestFocusInWindow();到面板上的按钮,它确实将焦点设置为所需的输入.
刚尝试使用RVM在osx 10.8.2上安装ruby 1.9.3-p286并收到以下错误:
Installing new ruby ruby-1.9.3-p286
ruby-1.9.3-p286 - #configure
ruby-1.9.3-p286 - #download
ruby-1.9.3-p286 - #extract
ruby-1.9.3-p286 - #validate
Libraries missing for ruby-1.9.3-p286: /opt/sm/pkg/versions/libffi/3.0.10/lib/libffi.5.dylib. Refer to your system manual for installing libraries
Mounting remote ruby failed, trying to compile.
Installing Ruby from source to: /Users/lee/.rvm/rubies/ruby-1.9.3-p286, this may take a while depending on your cpu(s)...
ruby-1.9.3-p286 - #downloading ruby-1.9.3-p286, this may take a while depending on your connection...
ruby-1.9.3-p286 - #extracting ruby-1.9.3-p286 to /Users/lee/.rvm/src/ruby-1.9.3-p286
ruby-1.9.3-p286 - #extracted to /Users/lee/.rvm/src/ruby-1.9.3-p286
ruby-1.9.3-p286 - …Run Code Online (Sandbox Code Playgroud)