Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I have two inner classes which extends SwingWorker class.

 
krishna Karthikk
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody, I am learning how to use SwingWorker class. I have a GUI which will be asking the user for a password. The same GUI can be used to change the password also. The password is stored in a text file. When ever the user press the login button an inner class which extends SwingWorker class is called.

Now if I want to change the password I again want to call another inner class which extends the SwingWorker class. Can I do like this?

Thank you all in advance.
 
Vijitha Kumara
Bartender
Posts: 3953
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It shouldn't be a problem having two inner classes extends from the same class, after all they are distinct inner classes.
 
krishna Karthikk
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vijitha, thank you for the reply.
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!