thanassis.com
home
blog
Online Games
Sudoku
Ivory Tower
Web Hangman
Software
Java
Object Oriented
Mobiles / J2ME
Research
C.S. Resources
Galleries
Greece
Music
Photography
Art
Personal
About me
Useful Links
Contact
Site
Downloads
My other sites
Thanassis.gr
Djangopedia
Kilogames
Xoocle
TrainJava
GameAnatomy
Latest News
A Simple Example Using JFC
private void init() {
JPanel my_panel = new JPanel();
my_panel.setLayout(new GridLayout(3,3));
for (int i=1;ii++) {
ImageIcon icon = new ImageIcon(i+".gif");
JButton jb = new JButton(icon);
jb.setToolTipText(i+".gif");
my_panel.add(jb);
}
getContentPane().add(my_panel);
my_panel.setBorder(BorderFactory.createEtchedBorder());
}
}
with Etched border
Borders Available :
- Bevel, Compound, Empty, Etched,
- Line, Matte, Soft, Titled.
Previous slide
Next slide
Back to first slide
View graphic version
Web
this site
Thanassis Blog News
In the News
Deep impact smashes comet
3 Florida shark attacks in a week
Mad Cow
summit in Scotland
Search the Archives