1
vote
Resize JPanel with animation
Try to use only one timer and add a boolean to track the direction and make sure that the animation is happening in one direction
public class Main {
private static final int INITIAL_HEIGHT = 150;
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
swing × 81381java × 79849
jframe × 7597
jtable × 7162
user-interface × 6477
jpanel × 6286
jbutton × 3953
awt × 3624
layout-manager × 2833
jlabel × 2642
jtextfield × 2279
netbeans × 2222
actionlistener × 2191
jcombobox × 1953
jscrollpane × 1915
multithreading × 1773
image × 1716
graphics × 1707
jtextarea × 1620
jlist × 1448
paintcomponent × 1364
layout × 1325
eclipse × 1110
joptionpane × 1092
gridbaglayout × 1059