Results 1 to 5 of 5

Thread: Text Animation

  1. #1
    Join Date
    Feb 2008
    Posts
    1
    Rep Power
    0

    Question Text Animation

    Guys:

    I have a scroll list that I need to animate with new text. The new text arrives from a seperate thread about every 5 seconds. My problem is the the JList is but one part (i.e., JPanel) of my overall JPanel containing several other panels. However, whe I refresh the JList, my entire Window refreshes or appears to. The result is with each update, my entire display flashes. This is very annoyng. Can anything be doe to restrict the update to the one JPanel? By the way, this code is running on a Linux box.:o

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

    Default

    Updating the model of the JList should update the list and should not affect its parent container. One thing that might cause/contribute to this behavior could be adding the list to its parent without a size hint or in such a way that its size could change with updates of data. This can be a problem for parent layout managers such as Flowlayout or GridBagLayout. In this case revalidating the list or validating its parent could cause changes in the containment hierarchy.

  3. #3
    besnnik is offline Member
    Join Date
    May 2008
    Posts
    2
    Rep Power
    0

    Default

    HI Guys. I need to do this exercise :

    Write a Java 3D program showing two panels and a button. The first panel displays a scene of a rotating 3D text string. When the button is clicked, the image of the 3D scene is captured and the still image is displayed in the second panel

    Can anybody help me please

  4. #4
    besnnik is offline Member
    Join Date
    May 2008
    Posts
    2
    Rep Power
    0

    Default

    Please could anybody write me the code ???:S

  5. #5
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    What have you done so far?
    freedom exists in the world of ideas

Similar Threads

  1. Animation with Animated GIF
    By JavaBean in forum Java 2D
    Replies: 3
    Last Post: 06-04-2011, 04:26 PM
  2. Animation Delay - Thread problem
    By wererabit in forum Advanced Java
    Replies: 3
    Last Post: 04-10-2009, 10:35 PM
  3. Using SWT Text
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-10-2008, 10:41 AM
  4. GridLayout with animation?
    By tojas in forum AWT / Swing
    Replies: 3
    Last Post: 11-12-2007, 10:16 PM
  5. map javax.swing.text.Element to javax.swing.text.View
    By elizabeth in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 07:02 PM

Posting Permissions

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