package main;
import java.awt.*;
import javax.swing.*;
public class Window {
static JFrame window;
static Panels panel;
Type: Posts; User: Damian3395
package main;
import java.awt.*;
import javax.swing.*;
public class Window {
static JFrame window;
static Panels panel;
I'm sorry, but I tried to create it in the way you described in your post, but I couldn't make it work. I tried to google methods to use Graphics g in separate class files, but no dice. I have tried...
Sorry, should have known to do that. Thanks for the tip, I'm changing the method names right now. I don't want to add the graphics into a container, I thought I could just paint onto the panel...
I fixed the problem:
package main;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
package main;
import java.awt.*;
import java.awt.Graphics;
import java.awt.event.*;
import javax.swing.*;
import java.text.*;
import java.util.*;
public class Window {