📄 psogui$guiparameterdialog.java
字号:
// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3)
// Source File Name: PSOGUI.java
package ci.ec.pso.gui;
import java.awt.*;
import java.awt.event.*;
// Referenced classes of package ci.ec.pso.gui:
// PSOGUI
class GUIParameterDialog extends Dialog
{
public boolean getActionFlag()
{
return actionFlag;
}
private boolean actionFlag;
public GUIParameterDialog(Frame frame)
{
super(frame, "GUI Parameters", true);
Panel panel = new Panel();
panel.setLayout(new GridLayout(15, 1));
panel.add(new Label("Population Size : " + populationSize));
panel.add(new Label("Maximum Velocity : " + velocityMaximum));
panel.add(new Label("Maximum Iteration : " + iterationMaximum));
panel.add(new Label("Initial Inertia Weight : " + initialWeight));
panel.add(new Label("Function Name : " + functionName));
panel.add(new Label("Function Dimension : " + functionDimension));
panel.add(new Label("Left Intial Range : " + leftInitialRange));
panel.add(new Label("Right Initial Range : " + rightInitialRange));
panel.add(new Label(" "));
panel.add(new Label("X-axle Index : " + xIndex));
panel.add(new Label("Y-axle Index : " + yIndex));
panel.add(new Label("Diaply Step Size : " + displayStepSize));
panel.add(new Label("Maximum Display Range : " + positionMaximum));
panel.add(new Label(" "));
Label label = new Label("Are these parameters OK?");
label.setForeground(Color.red);
panel.add(label);
add(panel, "Center");
Panel panel1 = new Panel();
Button button = new Button("YES");
Button button1 = new Button("NO");
panel1.add(button);
panel1.add(button1);
add(panel1, "South");
button.addActionListener(new _cls1());
button1.addActionListener(new _cls2());
addWindowListener(new _cls3());
setSize(280, 450);
}
// Unreferenced inner classes:
/* anonymous class */
final class PSOGUI._cls1
implements ActionListener
{
public void actionPerformed(ActionEvent actionevent)
{
actionFlag = true;
dispose();
}
}
// Unreferenced inner classes:
/* anonymous class */
final class PSOGUI._cls2
implements ActionListener
{
public void actionPerformed(ActionEvent actionevent)
{
actionFlag = false;
dispose();
}
}
// Unreferenced inner classes:
/* anonymous class */
final class PSOGUI._cls3 extends WindowAdapter
{
public void windowClosing(WindowEvent windowevent)
{
dispose();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -