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
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.
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
Please could anybody write me the code ???:S
What have you done so far?