• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextField focus problem  RSS feed

srinivasa varadhan
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a focus problem in JTextField. let me explain the problem to you all.,

I have a JFrame (View), where two JPanels (forms) are added, Each JPanel has there own fields, for example the 1st Panel as the client details and 2nd panel as the address details. whenever I select the field in the panel, the panel should be bordered in yellow, so all the fields have there own focus management and whenever the focus of the field happens the parentComponent will be intimated

for example

the problem is I can't able to see the blinking cursor it is not visible in the Field but when I minimise and maximise the frame the blinking cursor is visible in the field.

i don't know why it is happening like this,

I tried

it is not right way because it is creating a regression bug like displaying blinking cursor in 2 fields.

it is very urgent, please help me to sort out this problem.,

thanks in advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!