Extending more classes..

I Am aware of the fact that I cannot extend more than one class to a file.. But I would like to be able to use both threads and framework.. Is there any way to go around and make it possible..?
[200 byte] By [sniper83a] at [2007-11-27 8:26:45]
# 1
Implement the Runnable interface instead of extending Thread. You'll get the same threading functionality from both.
hunter9000a at 2007-7-12 20:16:16 > top of Java-index,Java Essentials,Java Programming...
# 2
Implement you say.. Do you mean like this:public class test extends javax.swing.JFrame {implements Thread;
sniper83a at 2007-7-12 20:16:16 > top of Java-index,Java Essentials,Java Programming...
# 3

> Implement you say.. Do you mean like this:

>

> > public class test extends javax.swing.JFrame {

>implements Thread;

No, that's not the right syntax, read this:

http://java.sun.com/docs/books/tutorial/java/concepts/interface.html

hunter9000a at 2007-7-12 20:16:16 > top of Java-index,Java Essentials,Java Programming...
# 4

public class Foo implements Runnable extends Framework {

public void run(){

//just like implementing thread's run method

}

public static void main(String[] arrrrrrrrrrrrrrrrrgs){

new Thread(new Foo()).start();

}

}

mkoryaka at 2007-7-12 20:16:16 > top of Java-index,Java Essentials,Java Programming...
# 5
Thanks, but now I'm even more confused I think.. Do you mean that I should make an interface for the functions in the GUI and then implement this into my GUI-function.. But what does that help me.. I don't follow... :/Sorry to be difficult..
sniper83a at 2007-7-12 20:16:16 > top of Java-index,Java Essentials,Java Programming...
# 6
Thank you both.. I have not quite understood it but I'll work it out.. :S
sniper83a at 2007-7-12 20:16:16 > top of Java-index,Java Essentials,Java Programming...