Java Image removeImage(JLabel image)

Here you can find the source of removeImage(JLabel image)

Description

remove Image

License

Open Source License

Declaration

public static void removeImage(JLabel image) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.JFrame;
import javax.swing.JLabel;

public class Main {
    static JFrame window;

    public static void removeImage(JLabel image) {
        image.setVisible(false);/*from w ww.j  a v a  2 s .c  o m*/
        window.remove(image);
    }
}

Related

  1. mask(Image img, Color color)
  2. openImage()
  3. openImageFileChooser(Component com)
  4. paintToImage(Component comp)
  5. prepareImagePath(String html, URL url)
  6. removeRedeye(Image im, final int x1, final int y1, final int x2, final int y2)
  7. renderComponentToImage(JComponent component)
  8. save(Image image, File file, String formatName)
  9. saveComponentAsImage(final String path, final Component target, final String format)