📄 help.java
字号:
import com.ms.wfc.app.*;
import com.ms.wfc.core.*;
import com.ms.wfc.ui.*;
import com.ms.wfc.html.*;
/**
* This class can take a variable number of parameters on the command
* line. Program execution begins with the main() method. The class
* constructor is not invoked unless an object of type 'help'
* created in the main() method.
*/
public class help extends Form
{
public help()
{
super();
// Required for Visual J++ Form Designer support
initForm();
// TODO: Add any constructor code after initForm call
}
/**
* help overrides dispose so it can clean up the
* component list.
*/
public void dispose()
{
super.dispose();
components.dispose();
}
/**
* NOTE: The following code is required by the Visual J++ form
* designer. It can be modified using the form editor. Do not
* modify it using the code editor.
*/
Container components = new Container();
GroupBox groupBox1 = new GroupBox();
Edit edit1 = new Edit();
Button button1 = new Button();
Button button2 = new Button();
private void initForm()
{
// NOTE: This form is storing resource information in an
// external file. Do not modify the string parameter to any
// resources.getObject() function call. For example, do not
// modify "foo1_location" in the following line of code
// even if the name of the Foo object changes:
// foo1.setLocation((Point)resources.getObject("foo1_location"));
IResourceManager resources = new ResourceManager(this, "help");
groupBox1.setLocation(new Point(8, 8));
groupBox1.setSize(new Point(344, 184));
groupBox1.setTabIndex(0);
groupBox1.setTabStop(false);
groupBox1.setText("");
edit1.setLocation(new Point(8, 16));
edit1.setSize(new Point(328, 160));
edit1.setTabIndex(0);
edit1.setTabStop(false);
edit1.setText(" 本程序对脑电实验获得的EEG文件进行网络功能的相关/相干分析。读入EEG文件之前,你必须设定EEG文件的规格,几个重要的参数是:实验中电极导数electrade(是16导的还是30导的)、实验重复次数trial(同一实验需要重复多次)、采样点数datapoint(一次行为实验中采了多少个数据点)。默认的数值是electrade=16,trial=10,datapoint=1200,即:16导电极,重复10次,采样点为1200点。具体的实验可以设定具体的参数。导入EEG文件进行分析时,这几个参数必须设置正确。在读入数据之前有一个格式检测,如果你输入的参数与实际不符,则出现出错信息,数据不予分析。\r\n 本实验中,是从刺激开始呈现前200ms到刺激开始呈现后1000ms截取的1200ms的信号段。");
edit1.setMultiline(true);
edit1.setReadOnly(true);
edit1.setScrollBars(ScrollBars.VERTICAL);
button1.setLocation(new Point(24, 200));
button1.setSize(new Point(88, 24));
button1.setTabIndex(1);
button1.setText("确定");
button1.setDialogResult(DialogResult.OK);
button2.setLocation(new Point(248, 200));
button2.setSize(new Point(88, 24));
button2.setTabIndex(2);
button2.setText("取消");
button2.setDialogResult(DialogResult.CANCEL);
this.setText("程序说明");
this.setAcceptButton(button1);
this.setAutoScaleBaseSize(new Point(6, 12));
this.setBorderStyle(FormBorderStyle.FIXED_DIALOG);
this.setCancelButton(button2);
this.setClientSize(new Point(359, 232));
this.setIcon((Icon)resources.getObject("this_icon"));
this.setMaximizeBox(false);
this.setMinimizeBox(false);
this.setStartPosition(FormStartPosition.CENTER_SCREEN);
this.setNewControls(new Control[] {
button2,
button1,
groupBox1});
groupBox1.setNewControls(new Control[] {
edit1});
}
/**
* The main entry point for the application.
*
* @param args Array of parameters passed to the application
* via the command line.
*/
public static void main(String args[])
{
Application.run(new help());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -