$20.00 Displaying date, time and day. Message me if any problem
- This tutorial hasn't been purchased yet.
- Posted on Nov 17, 2008 at 4:52:27PM
A:
Preview: ... t.Container; <br>import java.awt.*; <br>import java.util.*;<br>import java.text.*; <br>public class DateTime extends JFrame{<br> private JFrame mainFrame;<br> private JButton exitButton;<br> private JLabel inLabel;<br> private JTextField tinField;<br> private JRadioButton rdbutDate;<br> private JRadioButton rdbutTime;<br> private JRadioButton rdbutDayOfTheWeek;<br> public DateTime() {<br> mainFrame = new JFrame("Date time");<br><br> // create all components<br> exitButton = new JButton("Exit");<br> inLabel = new JLabel("Click The button of your choice:");<br> tinField = new JTextField(20);<br> tinField.setBackground(Color.black);<br> tinField.setForeground(Color.white);<br> rdbutDate = new JRadioButton("Date");<br> rdbutDate.setBackground(Color.red);<br> rdbutTime = new JRadi ...
The full tutorial is about 273 words long plus attachments.
Attachments:
DateTime.java (3K) (Preview)