could i pls get sum hlp w/this???



/**
* @(#)MyClock.java
*
* MyClock application
*
* @author kevin
* @version 1.00 2007/4/4
*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.Date.*;
import java.util.*;
import javax.swing.JPanel.*;

public class MyClock{

public static void showClock()
{

Date now = new Date();
int h = now.getHours();
int m = now.getMinutes();
int s = now.getSeconds();

JPanel present= new JPanel(new FlowLayout());
present.add(present, h);
present.add(present, m);
present.add(present, s);
present.setFont(new Font("sansserif", Font.PLAIN, 48));
present.setBorder(BorderFactory.createEmptyBorder());
present.setVisible(true); // see it





// JPanel thePanel = new JPanel();
// thePanel.add("hi", thePanel);
// thePanel.setVisible(true);
// System.out.println(present);


}// showClock

public static void run(){
int i=0;
while (i++ <3){
System.out.println("here 2...");
showClock();
}
}



public static void main(String[] args) {

run();
showClock();

System.out.println("here 3...");
}

}
--
Sometimes I'm in a good mood.
Sometimes I'm in a bad mood.
When all my moods have cum to pass
i hope they bury me upside down
so the world can kiss me porcelain,
white, Irish bottom.
.



Relevant Pages

  • Re: take a look ... its basic but its mine, all mine!!!
    ... int second = calendar.get; ... public static void addToBox ... Sometimes I'm in a good mood. ...
    (comp.lang.java.help)
  • last version
    ... i'm trying to make it draggable with a slider to set the fonts. ... public static void main ... int fontSize = source.getValue; ... Sometimes I'm in a good mood. ...
    (comp.lang.java.help)
  • Re: last version
    ... public static void main ... JSlider slider = a.getSource; ... int fontSize = source.getValue; ... Sometimes I'm in a good mood. ...
    (comp.lang.java.help)
  • this is wha im working on: any help???
    ... public class MyClock ... int m = now.get; ... public void showClock{ ... Sometimes I'm in a good mood. ...
    (comp.lang.java)
  • im just starting -- any hlp???
    ... public class MyClock ... int m = now.get; ... public void showClock{ ... Sometimes I'm in a good mood. ...
    (comp.lang.java.help)