HI! I want to write a constructor that will make a window (a frame). I want to be able to insert the height, width, position and window color. This is what I've written:
public Window(String name, int height, int width,String c,String isActive,int PointX, int PointY){
setTitle(name);
setSize(height,width);
getContentPane().setBackground(Color.c);
setLocation(PointX,PointY);
setVisible(isActive.equals("active"));
setDefaultCloseOperation(EXIT_ON_CLOSE);
}
My problem is that when compiling, I get a message "could not find symbol-variable c". So I can't figure out how to declare the color that I want my window to be. Does anybody know how to do this?