Created
April 4, 2013 03:56
-
-
Save nugraha16/5307702 to your computer and use it in GitHub Desktop.
Membuat Efek Glass di Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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