Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

extend thread and frame?

public class serverz extends Frame

Hi
this is the code im using to define a class but i also want to extend Thread, how do i do this?
Cheers
0
irish_paddy
Asked:
irish_paddy
  • 2
1 Solution
 
objectsCommented:
You shouldn't need to extend Thread, implementing Runnable sjhould be sufficient.

public class serverz extends Frame implements Runnable


You can then create a thread with:

new Thread(new serverz());
0
 
irish_paddyAuthor Commented:
Cheers,
0
 
objectsCommented:
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now