/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* JOrologio.java
*
* Created on 16-lug-2010, 15.54.50
*/
/**
*
* @author Paolo
*/
public class JOrologio
extends javax.
swing.
JFrame {
/** Creates new form JOrologio */
public JOrologio() {
initComponents();
Orologio o= new Orologio();
o.setSize(400,400);
this.add(o);
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
setTitle("JAnalogicTime - by Paolo Ricciuti (C)");
setResizable(false);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.
addGap(0, 400,
Short.
MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.
addGap(0, 400,
Short.
MAX_VALUE)
);
java.
awt.
Dimension screenSize
= java.
awt.
Toolkit.
getDefaultToolkit().
getScreenSize();
setBounds((screenSize.width-416)/2, (screenSize.height-438)/2, 416, 438);
}// </editor-fold>//GEN-END:initComponents
/**
* @param args the command line arguments
*/
public static void main
(String args
[]) {
public void run() {
new JOrologio().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
// End of variables declaration//GEN-END:variables
}