equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
99 new ByClassChooser(JFormattedTextField.class)); |
99 new ByClassChooser(JFormattedTextField.class)); |
100 ContainerOperator<?> containerOperator = new ContainerOperator<>(jtfo.getParent()); |
100 ContainerOperator<?> containerOperator = new ContainerOperator<>(jtfo.getParent()); |
101 JButtonOperator jbo = new JButtonOperator(containerOperator, GO); |
101 JButtonOperator jbo = new JButtonOperator(containerOperator, GO); |
102 JLabelOperator dowLabel = new JLabelOperator(containerOperator); |
102 JLabelOperator dowLabel = new JLabelOperator(containerOperator); |
103 Calendar calendar = Calendar.getInstance(Locale.ENGLISH); |
103 Calendar calendar = Calendar.getInstance(Locale.ENGLISH); |
|
104 calendar.setTime((Date) getUIValue(jtfo, jtf -> ((JFormattedTextField)jtf).getValue())); |
104 |
105 |
105 // Check default date Day of the Week |
106 // Check default date Day of the Week |
106 jbo.push(); |
107 jbo.push(); |
107 dowLabel.waitText(calendar.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.ENGLISH)); |
108 dowLabel.waitText(calendar.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.ENGLISH)); |
108 |
109 |