Is it possible to have both {ImageObserver} and {extends thread} in one class?

So I’m a very beginner programmer and I’m trying to implement both images and audio into my program. I have multiple methods so to generalize my code here is a very basic outline:

import java.awt.*;
import hsa.Console;
import java.awt.image.*;
import java.util.Random;
import sun.audio.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
class general implements ImageObserver
{
//lots of codes, multiple methods, etc.

static class audio extends Thread
{
    {
        general.audio audio = new general.audio ();
        public void run ()
        {
            while (true)
            {
                AudioPlayer MGP = AudioPlayer.player;
                AudioStream BGM;
                AudioData MD;

                ContinuousAudioDataStream loop = null;

                try
                {
                    InputStream test = new FileInputStream ("Music long.au"); //accessing the audio file
                    BGM = new AudioStream (test);
                    AudioPlayer.player.start (BGM);
                    MD = BGM.getData ();
                    loop = new ContinuousAudioDataStream (MD);

                }
                catch (FileNotFoundException e)
                {
                    System.out.print (e.toString ());
                }
                catch (IOException error)
                {
                    System.out.print (error.toString ());
                }
                MGP.start (loop);
                try
                {
                    Thread.sleep (200000);
                }
                catch (InterruptedException ie)
                {
                }
                try
                {
                    Thread.sleep (1500);
                }
                catch (InterruptedException ie)
                {
                }
            }
        }
        public static void main (String[] args)
        {
            //general.audio main = new general.audio ();
            c = new Console ();
            audio t1 = new audio ();
            t1.start ();
            for (;;)
            {
                c.println ("");
                break;
            }

        } // main method
     } // audio class
} //general class

So separately, my program works. However, when I put it together like this, it doesn’t. What I think I need to do is put both implements ImageObserver and extends Thread in the same class but I don’t know if this is possible. If not, how do I get both to run at the same time? I’m a very novice coder so if you could answer things as simply as possible it would be greatly appreciated. Thanks!