List of usage examples for javax.swing JComponent updateUI
public void updateUI()
From source file:plugin.notes.gui.JIcon.java
/** Delete the file from disk that this icon represents */ private void deleteFile() { int choice = JOptionPane.showConfirmDialog(GMGenSystem.inst, "Delete file " + launch.getPath(), "Delete File?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (choice == JOptionPane.YES_OPTION) { try {//from w w w . j ava2 s . co m launch.delete(); Container cnt = getParent(); cnt.remove(this); if (cnt instanceof JComponent) { JComponent comp = (JComponent) cnt; comp.updateUI(); } } catch (Exception e) { e.printStackTrace(); } } }