This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes Can I have two inner classes which extends SwingWorker class. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Can I have two inner classes which extends SwingWorker class." Watch "Can I have two inner classes which extends SwingWorker class." New topic
Author

Can I have two inner classes which extends SwingWorker class.

krishna Karthikk
Ranch Hand

Joined: Mar 16, 2010
Posts: 92
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.


There is no rule that we all should know everything. Lets learn few things of everything here.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

It shouldn't be a problem having two inner classes extends from the same class, after all they are distinct inner classes.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
krishna Karthikk
Ranch Hand

Joined: Mar 16, 2010
Posts: 92
Hi Vijitha, thank you for the reply.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can I have two inner classes which extends SwingWorker class.
 
Similar Threads
thread problem
inner class
Java Code Not Running on Redhat 9 Properly
Problem with swing GUI due to lengthy code running in background.
Java How Multiple instances of SwingWorker runs parallel with GUI processes