Search:

Type: Posts; User: tgjava

Search: Search took 0.25 seconds.

  1. Replies
    10
    Views
    1,773

    [SOLVED] Re: Flicker with JPanel in JApplet

    > As I mentioned above, draw to a JPanel. Remove the paint method, override the paintComponent method of said JPanel

    THANKS again - that was the ticket - it's all working perfectly now!

    Here's...
  2. Replies
    10
    Views
    1,773

    [SOLVED] Re: Flicker with JPanel in JApplet

    > As I mentioned above, draw to a JPanel. Remove the paint method, override the paintComponent method of said JPanel (for instance, your p object), and remove the null layout. At the risk of ruining...
  3. Replies
    10
    Views
    1,773

    [SOLVED] Re: Flicker with JPanel in JApplet

    Thanks for sticking with this.

    For the version of the program below, the behavior is as follows:
    -the moving rectangle flickers as it moves
    -the background remains the default
    - the panel /...
  4. Replies
    10
    Views
    1,773

    [SOLVED] Re: Flicker with JPanel in JApplet

    > I have not tried making the lower area of the window into another JPanel because
    in the full applet it would be very complicated to do so.

    It looks like that will be the solution: it works...
  5. Replies
    10
    Views
    1,773

    [SOLVED] Re: Flicker with JPanel in JApplet

    Sorry to have to keep going, but the variations on your last suggestion didn't improve anything.

    If I remove the manual double buffering I get horrible flicker over the whole applet,
    not just the...
  6. Replies
    10
    Views
    1,773

    [SOLVED] Re: Flicker with JPanel in JApplet

    Thank you for your speedy reply.
    Perhaps you could elaborate a little?

    > Some recommendations
    > a) I wouldn't recommend using a null layout.

    That may be good advice in general,
    but I...
  7. Replies
    10
    Views
    1,773

    [SOLVED] Flicker with JPanel in JApplet

    I have an applet which I wanted to convert from AWT to Swing,
    which went pretty well except for one thing.

    The applet window is divided into two parts:
    1) Top part is a Panel/JPanel with some...
Results 1 to 7 of 7