Salam.. Previously I had been searching java tutorials , and I find this jGlassPane , this library was created by Brother Eko Khannedi ...
Salam.. Previously I had been searching java tutorials , and I find this jGlassPane , this library was created by Brother Eko Khannedi with an elegant display for that message , the message appears for a moment and disappeared little by little ,it's really good and really nice , if you wants to know let's follow me
#8th Run the project than press YES, Look.. how the messsage run.
explore and download the project to learn
#1st Create a project (I'm using Netbeans IDE)
#2nd Get JGlassPane Libraries --> Download
#3rd Extract JGlassPane Libraries that you have downloaded
#4th Add JGlassPane Libraries you have to extract the Project that you created by right-click the project -->Propertis --> choose Libraries on Categories --> then Press Add JAR/Folder --> choose JGlassPane-1.0-FINAL.jar and TimingFramework-1.0.jar that ecxtracted, then press OPEN then OK
#5th Create your design for example (look at the picture below)
change variable Button up to you eg.:
#6th Enter the SourceCode
create variables
private final JGlassPane glassPane;
private MessageComponent component;
and add the code below on constructor
glassPane=new JGlassPane();
component = new MessageComponent();
setGlassPane(glassPane);
getGlassPane().setVisible(true);
glassPane.addGlassPaneComponent(component);
until look like that
#7th Right click on btn_yes -->Action -->ActionEvents
than type this code:
component.show("You Clicked YES Button", Color.BLACK, Color.WHITE);
you can choose the color you liked: