Results 1 to 4 of 4
  1. #1
    eLancaster is offline Member
    Join Date
    Jan 2011
    Posts
    93
    Rep Power
    0

    Default Window size increase animation

    I want to create a window which smoothly increases in height when a check button is checked and smoothly shrinks when it is unchecked. How do i go about the smooth animations? Some sample code would be helpful.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,939
    Rep Power
    8

    Default

    Use a Timer and increment the size a certain number of pixels per step.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    eLancaster is offline Member
    Join Date
    Jan 2011
    Posts
    93
    Rep Power
    0

    Default

    How do you resize pixel by pixel. Second, isn't that memory intensive?

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    How do you resize pixel by pixel.
    The way Kevin said.

    Second, isn't that memory intensive?
    Only if you're prone to bouts of amnesia.

    db

Similar Threads

  1. Replies: 5
    Last Post: 01-05-2014, 09:12 PM
  2. increase pixel size
    By rosh72851 in forum New To Java
    Replies: 9
    Last Post: 07-31-2012, 07:30 PM
  3. increase array size
    By giorgi in forum New To Java
    Replies: 45
    Last Post: 04-08-2011, 04:56 PM
  4. Replies: 3
    Last Post: 09-27-2008, 04:46 AM
  5. gridbaglayout: increase/decrease size of components.
    By newtojava7 in forum New To Java
    Replies: 2
    Last Post: 01-28-2008, 07:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •