Skip to content

Instantly share code, notes, and snippets.

@nugraha16
Created April 4, 2013 03:56
Show Gist options
  • Save nugraha16/5307702 to your computer and use it in GitHub Desktop.
Save nugraha16/5307702 to your computer and use it in GitHub Desktop.
Membuat Efek Glass di Java
package newbieilmuDemo;
import java.awt.*;
import java.awt.image.BufferedImage;
import javax.swing.*;
import IconMakeOver.*;
//@Anugrah B Soe
public class Icontest extends JFrame{
private IconLabel icons;
public Icontest() {
icons = new IconLabel();
icons.setBounds(70, 20, 50, 50);
icons.setIconReflect(new ImageIcon("src/icon/LaST (Cobalt) Trash Full.png"));//gambarnya bisa anda ubah sesuai selera
getContentPane().add(icons);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Icontest frame = new Icontest();
frame.setTitle("Efek Glass Demo");
frame.setVisible(true);
frame.setSize(300, 300);
frame.setLocationRelativeTo(null);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment