java Programming Glossary: hide_action
Show image by click JButton http://stackoverflow.com/questions/9721421/show-image-by-click-jbutton static String SHOW_ACTION show private static String HIDE_ACTION hide private Image image null private boolean showImage false.. this hideButton.setActionCommand HIDE_ACTION JPanel panel new JPanel panel.setLayout new FlowLayout FlowLayout.CENTER.. SHOW_ACTION.equals actionCommand showImage true else if HIDE_ACTION.equals actionCommand showImage false repaint @param args..
|