franta-hg@0: /* franta-hg@0: * HlavniOkno.java franta-hg@0: * franta-hg@0: * Created on 30.12.2009, 2:22:41 franta-hg@0: */ franta-hg@0: package cz.frantovo.abcDrupal.gui; franta-hg@0: franta-hg@0: import com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel; franta-hg@0: import java.util.logging.Level; franta-hg@0: import java.util.logging.Logger; franta-hg@0: import javax.swing.UIManager; franta-hg@0: import javax.swing.UnsupportedLookAndFeelException; franta-hg@0: franta-hg@0: /** franta-hg@0: * franta-hg@0: * @author fiki franta-hg@0: */ franta-hg@0: public class HlavniOkno extends javax.swing.JFrame { franta-hg@0: franta-hg@0: private static final Logger log = Logger.getLogger(HlavniOkno.class.getName()); franta-hg@0: franta-hg@0: /** Creates new form HlavniOkno */ franta-hg@0: public HlavniOkno() { franta-hg@0: initComponents(); franta-hg@0: } franta-hg@0: franta-hg@0: /** This method is called from within the constructor to franta-hg@0: * initialize the form. franta-hg@0: * WARNING: Do NOT modify this code. The content of this method is franta-hg@0: * always regenerated by the Form Editor. franta-hg@0: */ franta-hg@0: @SuppressWarnings("unchecked") franta-hg@0: // //GEN-BEGIN:initComponents franta-hg@0: private void initComponents() { franta-hg@0: franta-hg@0: jButton1 = new javax.swing.JButton(); franta-hg@0: jTextField1 = new javax.swing.JTextField(); franta-hg@0: franta-hg@0: setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); franta-hg@0: franta-hg@0: jButton1.setText(":-)"); franta-hg@0: franta-hg@0: jTextField1.setText("jTextField1"); franta-hg@0: franta-hg@0: javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); franta-hg@0: getContentPane().setLayout(layout); franta-hg@0: layout.setHorizontalGroup( franta-hg@0: layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) franta-hg@0: .addGroup(layout.createSequentialGroup() franta-hg@0: .addContainerGap() franta-hg@0: .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) franta-hg@0: .addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING) franta-hg@0: .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 388, Short.MAX_VALUE)) franta-hg@0: .addContainerGap()) franta-hg@0: ); franta-hg@0: layout.setVerticalGroup( franta-hg@0: layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) franta-hg@0: .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() franta-hg@0: .addContainerGap() franta-hg@0: .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) franta-hg@0: .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 234, Short.MAX_VALUE) franta-hg@0: .addComponent(jButton1) franta-hg@0: .addContainerGap()) franta-hg@0: ); franta-hg@0: franta-hg@0: pack(); franta-hg@0: }// //GEN-END:initComponents franta-hg@0: franta-hg@0: /** franta-hg@0: * @param args the command line arguments franta-hg@0: */ franta-hg@0: public static void main(String args[]) { franta-hg@0: nastavLaF(); franta-hg@0: franta-hg@0: java.awt.EventQueue.invokeLater(new Runnable() { franta-hg@0: franta-hg@0: public void run() { franta-hg@0: new HlavniOkno().setVisible(true); franta-hg@0: } franta-hg@0: }); franta-hg@0: } franta-hg@0: franta-hg@0: private static void nastavLaF() { franta-hg@0: try { franta-hg@0: UIManager.setLookAndFeel(new NimbusLookAndFeel()); franta-hg@0: } catch (UnsupportedLookAndFeelException e) { franta-hg@0: log.log(Level.FINE, "Nepodařilo se načíst LaF. Nevadí."); franta-hg@0: } franta-hg@0: } franta-hg@0: // Variables declaration - do not modify//GEN-BEGIN:variables franta-hg@0: private javax.swing.JButton jButton1; franta-hg@0: private javax.swing.JTextField jTextField1; franta-hg@0: // End of variables declaration//GEN-END:variables franta-hg@0: }