Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    4,000

    Re: Overlapping windows? in a Jframe?

    Like this


    public class Ch5SampleGraphics_UF {

    public static void main(String[] args) {

    JFrame win;
    Container contentPane;
    Graphics gra;
  2. Replies
    6
    Views
    4,000

    Re: Overlapping windows? in a Jframe?

    Your code now draws to the graphics object of the content pane, but this doesn't ensure that it will be drawn. The standard way to paint to a JComponent (in your case the conentPane) is to override...
Results 1 to 2 of 2