I am trying to call the private Client()
inside of the main
method but it is saying
non static method Client can not be referenced from a static context.
public class Client extends JFrame
{
private Client()
{
ImageIcon icon = new ImageIcon(getClass().getResource("/appIcon.png"));
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(900, 450);
setExtendedState(Frame.MAXIMIZED_BOTH);
setLocationRelativeTo(null);
setIconImage(icon.getImage());
setVisible(true);
}
public static void main(String[] args)
{
}
}