Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2006-12-08 10:13:20 -0500
committerCarolyn MacLeod2006-12-08 10:13:20 -0500
commit3e0f98cbd7a8e9137a98e20e5a9e7fa9bea9fe01 (patch)
tree5c5999cbe0e5aa1542d314fbfbd0faa21c4b9910
parent0e9b91dc4533b5771e463b00bbf6c626d4639c45 (diff)
downloadeclipse.platform.swt-3e0f98cbd7a8e9137a98e20e5a9e7fa9bea9fe01.tar.gz
eclipse.platform.swt-3e0f98cbd7a8e9137a98e20e5a9e7fa9bea9fe01.tar.xz
eclipse.platform.swt-3e0f98cbd7a8e9137a98e20e5a9e7fa9bea9fe01.zip
*** empty log message ***
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet251.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet251.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet251.java
index ca63e67fd3..ac9bfdd8bd 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet251.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet251.java
@@ -31,7 +31,7 @@ public static void main (String [] args) {
dialog.setLayout (new GridLayout (2, false));
final DateTime calendar = new DateTime (dialog, SWT.CALENDAR | SWT.BORDER);
- final DateTime time = new DateTime (dialog, SWT.TIME);
+ final DateTime time = new DateTime (dialog, SWT.TIME | SWT.SHORT);
new Label (dialog, SWT.NONE);
Button ok = new Button (dialog, SWT.PUSH);
@@ -40,7 +40,7 @@ public static void main (String [] args) {
ok.addSelectionListener (new SelectionAdapter () {
public void widgetSelected (SelectionEvent e) {
System.out.println ("Date selected (MM/DD/YYYY) = " + (calendar.getMonth () + 1) + "/" + calendar.getDay () + "/" + calendar.getYear ());
- System.out.println ("Time selected (HH:MM:SS) = " + time.getHours () + ":" + time.getMinutes () + ":" + time.getSeconds ());
+ System.out.println ("Time selected (HH:MM) = " + time.getHours () + ":" + time.getMinutes ());
dialog.close ();
}
});

Back to the top