/*
* NewJFrame1.java
*
* Created on 2011-4-15, 15:36:14
*/
package dingqiaowu;
import com.sun.java.swing.plaf.motif.MotifLookAndFeel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.plaf.metal.MetalLookAndFeel;
import javax.swing.plaf.nimbus.NimbusLookAndFeel;
/**
*
* @author 丁乔武
*/
public class NewJFrame1 extends javax.swing.JFrame {
public NewJFrame1() {
initComponents();
}
@SuppressWarnings("unchecked")
private void initComponents() {
javax.swing.JToolBar jToolBar1 = new javax.swing.JToolBar();
javax.swing.JButton jButton1 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jToolBar1.setRollover(true);
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/dingqiaowu/logo.gif"))); // NOI18N
jButton1.setToolTipText("点击我");
jButton1.setFocusable(false);
jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jToolBar1.add(jButton1);
getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START);
pack();
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
try {
UIManager.setLookAndFeel(new NimbusLookAndFeel());
} catch (UnsupportedLookAndFeelException ex) {
ex.printStackTrace();
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame1().setVisible(true);
}
});
}
}