Search:

Type: Posts; User: Damian3395

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    1,203

    Re: Updating Garphics of the JPanel

    package main;

    import java.awt.*;

    import javax.swing.*;

    public class Window {

    static JFrame window;
    static Panels panel;
  2. Replies
    8
    Views
    1,203

    Re: Updating Garphics of the JPanel

    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...
  3. Replies
    8
    Views
    1,203

    Re: Updating Garphics of the JPanel

    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...
  4. Replies
    8
    Views
    1,203

    Re: Updating Garphics of the JPanel

    I fixed the problem:



    package main;

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
  5. Replies
    8
    Views
    1,203

    Updating Garphics of the JPanel

    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 {
Results 1 to 5 of 5