import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.lang.*;
public class Main extends Frame
{
Label SourceLabelL = new Label("source");
Label SourceLabel = new Label("");
Label TargetLabel = new Label("");
Label FileNameLabel = new Label("File Name: ");
Button TargeButton = new Button("Target");
Button OKButton = new Button("OK ");
GridBagLayout gbl;
GridBagConstraints c;
public static void main(String[] args)
{
Main m = new Main();
}
Main()
{
gbl = new GridBagLayout();
c = new GridBagConstraints();
int colwidth[]={1,1,1,1,1,1,1,1};
int colheight[]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; // theres 18
double colweightb[]={1,1,1,1,1,1,1,1};
gbl.SetLayout(Display);
gbl.SetBounds(0,0,300,900);
找不到符号 gbl.SetLayout(显示器); 符号:变量显示 地点:班级主要 我不知道该怎么做。 任何帮助肯定会很好
答案 0 :(得分:2)
如果您尝试创建Main类的实例,则语法应为:
Main m = new Main();
Main()是Main类的构造函数