Java Clockframe
Questions/Tutorials for any programming language not covered in other sections.
1 post
Page 1 of 1
Hello,
A few months ago I bought a book for learning Java. That book was realy usefull for me and I learned very much things about java. And now I'v wrote a simple script for a Java Clockframe:
Sorry for the misspelled words in this post because I wrote this post on my droid
A few months ago I bought a book for learning Java. That book was realy usefull for me and I learned very much things about java. And now I'v wrote a simple script for a Java Clockframe:
Code: Select all
Note: This is not a working clock but only the frame.import java.awt.*;
import javax.swing.*;
public class ClockFrame extends JFrame {
public ClockFrame() {
super("Clock");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container pane = getContentPane();
FlowLayout(flo);
ClockPanel time = new ClockPanel();
pane.add(time);
setContentPane(time);
setVisible(true);
}
public static void main(String[] arguments) {
ClockFrame sal = new ClockFrame();
}
}
Sorry for the misspelled words in this post because I wrote this post on my droid

1 post
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023