In my program, I am already extending the class Applet , but I also would like to get to methods I have defined in another class. I am aware that I cannot extend 2 classes at the same time, is there a way I could get around this? I need to be able to do this in order to continue, thanks.
Here's my code:
import java.applet.Applet;
import java.awt.*;
import java.awt.Graphics;
public class Grape extends Applet /* I want to extend another class here */{
    public void paint (Graphics page) 
    {
        final int MID = 150;
        final int TOP = 50;
        setBackground (Color.WHITE);
        page.drawLine (60, 60, 750, 60); //Line
        page.drawString("X discplacement = " + xDisplacement , 30, 30);
    }
}
 
     
     
     
    