JFrame for the window, it's in the uh...javax.swing namespace
I wrote an overloaded function for you:
[highlight=java]
import javax.swing.*;
public static JFrame createWindow(int width, int height, String title, int x, int y)
{
JFrame mainFrame = new JFrame();
mainFrame.setTitle(title);
mainFrame.setSize(width, height);
mainFrame.setVisible(true);
mainFrame.setLocation(x,y);
return mainFrame;
}
public static JFrame createWindow(int width, int height, String title)
{
JFrame mainFrame = new JFrame();
mainFrame.setTitle(title);
mainFrame.setSize(width, height);
mainFrame.setVisible(true);
return mainFrame;
}
[/highlight]