import javax.swing.*;
import java.awt.*;
seeseeauthor
public class SolarSystemView extends JInternalFrame {
private SolarSystem solarSystem;
private Planet centerPlanet;
public SolarSystemView(int x, int y, int viewWidth,
int viewHeight, String title) {
super(title, true, true, true, true);
setBounds(x, y, viewWidth, viewHeight);
}
public void setCenterPlanet(Planet planetAtCenter) {
centerPlanet = planetAtCenter;
}
public void setSolarSystem(SolarSystem ss) {
solarSystem = ss;
}
public SolarSystem getSolarSystem() {
return solarSystem;
}
public Planet getCenterPlanet() {
return centerPlanet;
}
}