AdsPanel video, add banners, logo’s and links to any Java Swing application!
557 viewsA Java component I made that you can use to add banners, logo's, animated gifs, links etc to any Java Swing application. I hope you like my Java component! It's free and the old version can be download here on the blog! (I'll upload the latest version later when I have the time)
Oh yeah, the quality of the video is below average (you can't see what i type) but I blame windows movie maker (and youtube for lowering the quality but atleast they are hosting my video)!
//edit
Higher quality video can be downloaded here: http://www.megaupload.com/nl/?d=FSAO2SF5
The code that I used in my demo video
-
public class Main {
-
Demo4 D4 = new Demo4();
-
D4.main(null);
-
-
Demo2 D2 = new Demo2();
-
D2.main(null);
-
}
-
}
-
/*--------------------------------------------------------------------------
-
Demo4 class
-
*****************
-
By: HappyFace http://www.engineeringserver.com
-
Contact: info [@] engineeringserver.com
-
Version: unknown
-
Last updated: 06/August/2008
-
"*****************
-
Note:
-
//----------------------------------------------------------------------*/
-
import java.awt.event.ActionEvent;
-
import java.awt.event.ActionListener;
-
import javax.swing.JButton;
-
import javax.swing.JFrame;
-
import javax.swing.JLabel;
-
import javax.swing.JOptionPane;
-
import javax.swing.JPasswordField;
-
import javax.swing.JTextField;
-
-
import engineeringservercomUtilityPackage.AdsPanel;
-
-
AdsPanel cb2 = new AdsPanel();
-
AdsPanel cb1 = new AdsPanel();
-
-
-
Demo4 m = new Demo4();
-
//AdsPanel cb1 = new AdsPanel();
-
//cb1.copyRight();
-
m.showGui();
-
}
-
-
public void showGui(){
-
setTitle("Demo: 4 - www.engineeringserver.com");
-
-
cb2.setBanner("http://www.engineeringserver.com/Software/banner.gif");
-
cb2.setBounds(5, 0, 470, 70);
-
-
add(cb2);
-
nameLbl.setBounds(7, 77, 105, 21);
-
add(nameLbl);
-
-
nameTf.setBounds(105, 77, 371, 21);
-
add(nameTf);
-
-
passwordLbl.setBounds(7, 105, 105, 21);
-
add(passwordLbl);
-
-
cb1.setBounds(290, 140, 100, 20);
-
cb1.setLink("Lost password?","http://www.engineeringserver.com/pass.txt", 0 ,0,255);
-
add(cb1);
-
-
passwordTf.setBounds(105, 105, 371, 21);
-
add(passwordTf);
-
-
submitBtn.setBounds(399, 133, 77, 28);
-
submitBtn.addActionListener(this);
-
add(submitBtn);
-
-
setLayout(null);
-
setDefaultCloseOperation(EXIT_ON_CLOSE);
-
setLocationRelativeTo(null);
-
setSize(500, 200);
-
setResizable(false);
-
setVisible(true);
-
}
-
-
if(nameTf.getText().equals("HappyFace") && passwordTf.getText().equals("12345")){
-
JOptionPane.showMessageDialog(this,"This demo will now close","Correct!", JOptionPane.INFORMATION_MESSAGE);
-
}
-
else{
-
}
-
}
-
}
-
/*--------------------------------------------------------------------------
-
Demo2 class
-
*****************
-
By: HappyFace http://www.engineeringserver.com
-
Contact: info [@] engineeringserver.com
-
Version: unknown
-
Last updated: 06/August/2008
-
"*****************
-
Note:
-
//----------------------------------------------------------------------*/
-
import javax.swing.JFrame;
-
import javax.swing.WindowConstants;
-
-
import engineeringservercomUtilityPackage.AdsPanel;
-
-
AdsPanel cb2 = new AdsPanel();
-
-
Demo2 d2 = new Demo2();
-
d2.showGui();
-
//AdsPanel cb1 = new AdsPanel();
-
//cb1.copyRight();
-
}
-
-
public void showGui(){
-
try {
-
getContentPane().setLayout(null);
-
{
-
cb2.setBanner("http://www.freemyspacegraphics.com/Graphics/Funny_Animations/images/funny_new_46.gif"
-
, "http://engineeringserver.com");
-
setTitle("Demo2 - www.engineeringserver.com");
-
getContentPane().add(cb2);
-
cb2.setBounds(7, 7,280,300);
-
}
-
-
setLocationRelativeTo(null);
-
setSize(300, 300);
-
setResizable(false);
-
setVisible(true);
-
e.printStackTrace();
-
}
-
}
-
}













August 6th, 2008 at 8:49 pm
[...] supports (colored) links as well and optimized the code. A video demo can be seen here + download Engineeringserver.com | AdsPanel video, add banners, logo’s and links to any Java Swing application! ps dont mind the popup, i needed to put that there as per requirement from one of the sponsers of [...]
August 6th, 2008 at 8:55 pm
[...] in any java application this is your lucky day because you can download my adspanel software here: Engineeringserver.com | AdsPanel video, add banners, logo’s and links to any Java Swing application! comes with a demo video that shows how it works. __________________ Java open source software [...]