rep

Discussion in 'Java' started by bob, May 12, 2004.

  1. bob

    bob Guest

    How can you make an applet repaint itself when the window
    it is in is resized?

    Thanks in advance.
    bob, May 12, 2004
    #1
    1. Advertising

  2. bob

    Chris Smith Guest

    bob wrote:
    > How can you make an applet repaint itself when the window
    > it is in is resized?


    There's not necessarily a way to do that, because the containing window
    isn't necessarily modeled in the Java AWT. However, your applet should
    receive a repaint event whenever it is needed, for whatever reason.
    That's the container's job, and you can't do it in the container's
    place.

    If you clarify the problem you're trying to solve, then perhaps there's
    a nice solution; but it won't be intercepting window resize events from
    an applet's parent window.

    --
    www.designacourse.com
    The Easiest Way to Train Anyone... Anywhere.

    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation
    Chris Smith, May 13, 2004
    #2
    1. Advertising

  3. On 12 May 2004 13:11:27 -0700, bob wrote:

    > How can you make an applet repaint itself when the window
    > it is in is resized?


    What? Like this?
    <http://www.physci.org/test/scrap/147Resize/>

    Or this?
    <http://www.physci.org/test/ResizeableApplet/ResizeableApplet.html>

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, May 13, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest
    Replies:
    2
    Views:
    10,881
    John Harrison
    Jul 26, 2004
  2. protoss

    .rep format

    protoss, Dec 11, 2008, in forum: Java
    Replies:
    0
    Views:
    367
    protoss
    Dec 11, 2008
  3. Volkan Karaboða

    a crystall Rep. Problem

    Volkan Karaboða, Dec 8, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    88
    Volkan Karaboða
    Dec 8, 2003
  4. John Bokma

    AS Perl: rep gives 500 server closed?

    John Bokma, Jul 12, 2005, in forum: Perl Misc
    Replies:
    3
    Views:
    251
    John Bokma
    Jul 14, 2005
  5. Fabrice POMBET
    Replies:
    0
    Views:
    101
    Fabrice POMBET
    Aug 28, 2013
Loading...

Share This Page