public class test extends JFrame {
public test() {
JTextField field = new JTextField();
getContentPane().add( field, BorderLayout.CENTER );
LookAndFeel.installBorder( field, "JComboBox.border" );
LookAndFeel.installColorsAndFont( field, "JComboBox.foreground", "JComboBox.background", "JComboBox.font" );
JComboBox jcombo = new JComboBox();
getContentPane().add( jcombo, BorderLayout.SOUTH );
}
public static void main(String args[]) {
GraphicJavaApplication.launch(new test(),
"Vetoing Node Expansion/Collapse",300,300,300,200);
}
}
class GraphicJavaApplication extends WindowAdapter {
public static void launch(final JFrame f, String title,
final int x, final int y,
final int w, int h) {
f.setTitle(title);
f.setBounds(x,y,w,h);
f.setVisible(true);