hey guys, i need help
this is the part of code that i am getting an error for
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class maxandmin implements ActionListener {
private static final int winwidth = 350;
private static final int winheight = 350;
private static final int field = 20;
private static final int area = 20;
private static FlowLayout layoutstyle = new FlowLayout();
private static JFrame window = new JFrame("Maximum and Minimum");
private static final
String legend = "This program find the MAX and MIN of 4 numbers.";
private JTextArea legendarea = new JTextArea (legend, 2, area);
the error says
maxandmin.java [24:1] cannot resolve symbol
symbol : constructor JFrame (java.lang.String)
location: class JFrame
private static JFrame window = new JFrame("Maximum and Minimum");
^
1 error
Errors compiling maxandmin.
could someone help me with this please