7 package org.libcsdbg.jtracer.installer;
9 import java.awt.event.ActionListener;
11 import java.awt.Color;
13 import javax.swing.JButton;
31 Button(String text, ActionListener handler)
34 Registry conf = Registry.getCurrent();
35 String nm = text.replace(
" ",
"_").toLowerCase() +
"16.png";
38 setFont((Font) conf.
get(
"component",
"font"));
39 setForeground((Color) conf.
get(
"component",
"fgcolor"));
41 Integer delay = (Integer) conf.
get(
"component",
"click-delay");
43 setMultiClickThreshhold(delay);
45 setContentAreaFilled(
false);
46 setRolloverEnabled(
false);
47 setActionCommand(text);
48 addActionListener(handler);
Object get(String section, String key)
Get an entry.
ImageIcon loadIcon(String nm)
Load an icon from the current theme.