📄 cronui.java
字号:
optionsPanel.add(Box.createVerticalStrut(3), gbc); JLabel descriptionLabel = new JLabel("Description:"); descriptionLabel.setOpaque(true); descriptionLabel.setForeground(Color.black); gbc.gridwidth = 1; optionsPanel.add(descriptionLabel, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fDescriptionTF = new JTextField(20) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fDescriptionTF.setToolTipText("Enter a description for the " + "registration. This field is optional."); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.weightx = 1.0; optionsPanel.add(fDescriptionTF, gbc); gbc.weightx = 0; optionsPanel.add(Box.createVerticalStrut(3), gbc); JLabel machineLabel = new JLabel("Target Machine:"); machineLabel.setOpaque(true); machineLabel.setForeground(Color.black); gbc.gridwidth = 1; optionsPanel.add(machineLabel, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fPythonMachine = new JCheckBox("Python", false) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fPythonMachine.setToolTipText("Checking \"Python\" indicates that "+ "the text entered\nfor \"Target Machine\" contains Python code."); gbc.gridwidth = 1; optionsPanel.add(fPythonMachine, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fMachineTF = new JTextField(20) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fMachineTF.setToolTipText("The machine where you wish to have the " + "STAF command\nexecuted. This field is required. If the text " + "contains Python\ncode, then select \"Python\" next to the " + "\"Target Machine\" label."); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.weightx = 1.0; optionsPanel.add(fMachineTF, gbc); gbc.weightx = 0; optionsPanel.add(Box.createVerticalStrut(3), gbc); JLabel serviceLabel = new JLabel("Target Service:"); serviceLabel.setOpaque(true); serviceLabel.setForeground(Color.black); gbc.gridwidth = 1; optionsPanel.add(serviceLabel, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fPythonService = new JCheckBox("Python", false) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fPythonService.setToolTipText("Checking \"Python\" indicates that "+ "the text entered\nfor \"Target Service\" contains Python code."); gbc.gridwidth = 1; optionsPanel.add(fPythonService, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fServiceTF = new JTextField(20) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fServiceTF.setToolTipText("The service for the STAF command you wish " + "to have executed.\nThis field is required. If the text contains " + "Python code, then\nselect \"Python\" next to the \"Target " + "Service\" label."); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.weightx = 1.0; optionsPanel.add(fServiceTF, gbc); gbc.weightx = 0; optionsPanel.add(Box.createVerticalStrut(3), gbc); JLabel requestLabel = new JLabel("Target Request:"); requestLabel.setOpaque(true); requestLabel.setForeground(Color.black); gbc.gridwidth = 1; optionsPanel.add(requestLabel, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fPythonRequest = new JCheckBox("Python", false) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fPythonRequest.setToolTipText("Checking \"Python\" indicates that "+ "the text entered\nfor \"Target Request\" contains Python code."); gbc.gridwidth = 1; optionsPanel.add(fPythonRequest, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fRequestTF = new JTextField(40) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fRequestTF.setToolTipText("The STAF request you wish to have " + "executed. This\nfield is required. If the text contains Python " + "code, then\nselect \"Python\" next to the \"Target " + "Request\" label."); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.weightx = 1.0; optionsPanel.add(fRequestTF, gbc); gbc.weightx = 0; optionsPanel.add(Box.createVerticalStrut(3), gbc); JLabel prepareLabel = new JLabel("Prepare Script:"); prepareLabel.setOpaque(true); prepareLabel.setForeground(Color.black); gbc.gridwidth = 1; optionsPanel.add(prepareLabel, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fPrepareTA = new JTextArea(5, 40) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fPrepareTA.setToolTipText("Any Python code that you wish to have " + "evaluated prior to\nthe evaluation of any PYTHONMACHINE, " + "PYTHONSERVICE,\nor PYTHONREQUEST options. This field is " + "optional."); fPrepareTA.setBorder(new BevelBorder(BevelBorder.LOWERED)); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.weightx = 1.0; optionsPanel.add(fPrepareTA, gbc); gbc.weightx = 0; optionsPanel.add(Box.createVerticalStrut(3), gbc); gbc.weightx = 0; optionsPanel.add(Box.createVerticalStrut(3), gbc); JLabel minuteLabel = new JLabel("Minute:"); minuteLabel.setOpaque(true); minuteLabel.setForeground(Color.black); gbc.gridwidth = 1; optionsPanel.add(minuteLabel, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fMinuteTF = new JTextField(20) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fMinuteTF.setToolTipText("Specifies the exact minute(s) that the STAF" + " command executes.\nThe valid values are 0 - 59. You can " + "specify either * (an asterisk)\nor ANY, meaning all valid " + "values, or a list of elements separated\nby commas. An " + "element is either a number or an inclusive range,\nindicated " + "by two numbers separated by a minus sign (such as 1-15)."); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.weightx = 1.0; optionsPanel.add(fMinuteTF, gbc); gbc.weightx = 0; optionsPanel.add(Box.createVerticalStrut(3), gbc); JLabel hourLabel = new JLabel("Hour:"); hourLabel.setOpaque(true); hourLabel.setForeground(Color.black); gbc.gridwidth = 1; optionsPanel.add(hourLabel, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fHourTF = new JTextField(20) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fHourTF.setToolTipText("Specifies the exact hour(s) that the STAF " + "command executes.\nThe valid values are 0 - 23. You can specify " + "either * (an asterisk)\nor ANY, meaning all valid values, or a " + "list of elements separated by\ncommas. An element is either a " + "number or an inclusive range,\nindicated by two numbers " + "separated by a minus sign (such as 8-17)."); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.weightx = 1.0; optionsPanel.add(fHourTF, gbc); gbc.weightx = 0; optionsPanel.add(Box.createVerticalStrut(3), gbc); JLabel dayLabel = new JLabel("Day:"); dayLabel.setOpaque(true); dayLabel.setForeground(Color.black); gbc.gridwidth = 1; optionsPanel.add(dayLabel, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fDayTF = new JTextField(20) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fDayTF.setToolTipText("Specifies the exact day(s) that the STAF " + "command executes.\nThe valid values are 1 - 31. You can specify " + "either * (an asterisk)\nor ANY, meaning all valid values, or a " + "list of elements separated by\ncommas. An element is either a " + "number or an inclusive range,\nindicated by two numbers " + "separated by a minus sign (such as 1-2)."); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.weightx = 1.0; optionsPanel.add(fDayTF, gbc); gbc.weightx = 0; optionsPanel.add(Box.createVerticalStrut(3), gbc); JLabel monthLabel = new JLabel("Month:"); monthLabel.setOpaque(true); monthLabel.setForeground(Color.black); gbc.gridwidth = 1; optionsPanel.add(monthLabel, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fMonthTF = new JTextField(20) { public JToolTip createToolTip() { MultiLineToolTip tip = new MultiLineToolTip(); tip.setComponent(this); return tip; } }; fMonthTF.setToolTipText("Specifies the exact month(s) that the STAF " + "command executes.\nThe valid values are 1 - 12. You can specify " + "either * (an asterisk)\nor ANY, meaning all valid values, or a " + "list of elements separated by\ncommas. An element is either a " + "number or an inclusive range,\nindicated by two numbers " + "separated by a minus sign (such as 5-6)."); gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.weightx = 1.0; optionsPanel.add(fMonthTF, gbc); gbc.weightx = 0; optionsPanel.add(Box.createVerticalStrut(3), gbc); JLabel weekdayLabel = new JLabel("Weekday:"); weekdayLabel.setOpaque(true); weekdayLabel.setForeground(Color.black); gbc.gridwidth = 1; optionsPanel.add(weekdayLabel, gbc); optionsPanel.add(Box.createHorizontalStrut(10), gbc); fWeekDayTF = new JTextField(20) { public JToolTip createToolTip()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -