Solved

extend thread and frame?

Posted on 2003-11-24
3
301 Views
Last Modified: 2008-03-06
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
Comment
Question by:irish_paddy
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 9814663
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
 

Author Comment

by:irish_paddy
ID: 9814732
Cheers,
0
 
LVL 92

Expert Comment

by:objects
ID: 9814739
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
map related example 6 55
factorial example 4 47
ejb example issues 3 19
learn programming 8 31
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question