JAnalogTime - JOrologio.java
Cerca
 











JOrologio.java

Caricato da: Paoloricciuti
Scarica il programma completo

  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5.  
  6. /*
  7.  * JOrologio.java
  8.  *
  9.  * Created on 16-lug-2010, 15.54.50
  10.  */
  11.  
  12. /**
  13.  *
  14.  * @author Paolo
  15.  */
  16. public class JOrologio extends javax.swing.JFrame {
  17.  
  18.     /** Creates new form JOrologio */
  19.     public JOrologio() {
  20.         initComponents();
  21.         Orologio o= new Orologio();
  22.         o.setSize(400,400);
  23.         this.add(o);
  24.     }
  25.  
  26.     /** This method is called from within the constructor to
  27.      * initialize the form.
  28.      * WARNING: Do NOT modify this code. The content of this method is
  29.      * always regenerated by the Form Editor.
  30.      */
  31.     @SuppressWarnings("unchecked")
  32.     // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  33.     private void initComponents() {
  34.  
  35.         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  36.         setTitle("JAnalogicTime - by Paolo Ricciuti (C)");
  37.         setResizable(false);
  38.  
  39.         javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  40.         getContentPane().setLayout(layout);
  41.         layout.setHorizontalGroup(
  42.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  43.             .addGap(0, 400, Short.MAX_VALUE)
  44.         );
  45.         layout.setVerticalGroup(
  46.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  47.             .addGap(0, 400, Short.MAX_VALUE)
  48.         );
  49.  
  50.         java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
  51.         setBounds((screenSize.width-416)/2, (screenSize.height-438)/2, 416, 438);
  52.     }// </editor-fold>//GEN-END:initComponents
  53.  
  54.     /**
  55.     * @param args the command line arguments
  56.     */
  57.     public static void main(String args[]) {
  58.         java.awt.EventQueue.invokeLater(new Runnable() {
  59.             public void run() {
  60.                 new JOrologio().setVisible(true);
  61.             }
  62.         });
  63.     }
  64.  
  65.     // Variables declaration - do not modify//GEN-BEGIN:variables
  66.     // End of variables declaration//GEN-END:variables
  67.  
  68. }
 

Creative Commons License
Il layout di questo sito è concesso sotto licenza Creative Commons.
Per maggiori informazioni sulle licenze dei contenuti del sito, clicca.