Solved

extend thread and frame?

Posted on 2003-11-24
3
297 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java 1603 Error 3 45
Free Alternative to JIRA 4 58
unix in java example 9 43
Java and GPO 11 47
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now