0

I have two JTextFields that cannot be edited/clicked on unless I click outside the current JFrame window. I have tried to setEditable, setEnabled, requestFocus(), etc to true but all do not work. Any suggestions?

I do not know how to replicate the issue, but I believe it has to do with re-gettingJFrame focus.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Miguel Z
  • 1
  • 2
  • The only way to edit/be able to click on the JTextFields is to click on a different application/outside the JFrame and reclicking on the JFrame – Miguel Z Dec 30 '19 at 04:33
  • Seeing your code may help with knowing what your issue is :) – Anthony Cathers Dec 30 '19 at 05:33
  • 1
    Need to see the code that leads to this particular situation. Provide a [Minimal, Complete and Verifiable Example (MCVE)](https://stackoverflow.com/help/minimal-reproducible-example) that demonstrates the problem. – DevilsHnd - 退職した Dec 30 '19 at 05:40

0 Answers0