Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

depricated methods  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting a deprecated error when compiling on some, but not all my getText() methods. Does anyone know why I am getting this and why only on some of them. :confused;
 
Swamy Vatti
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you are using a JPasswordField. getText() method on this is deprecated. instead you can use getPassword() method. Ignore this if you are not using a JPasswordField and Let me know what components you are using.
 
hennie louw
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gregg Bolinger:
I am getting a deprecated error when compiling on some, but not all my getText() methods. Does anyone know why I am getting this and why only on some of them. :confused;

I'm not sure if theis is correct but maybe you are calling the
getText() method of a object who one had such a method but is now deprecated, it's hard to say without seeing your code.
hope it helps
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahh, thank you. I will try that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!