没看懂你自己定义的
GridBagLayout gbObject=new GridBagLayout();
这个布局管理器有什么用?
好像没有起作用吧!
是不是应该content.setLayout(gbObject);
GridBagLayout gbObject=new GridBagLayout();
这个布局管理器有什么用?
好像没有起作用吧!
是不是应该content.setLayout(gbObject);
for example:
loginname: grid.x=0; grid.y=0
pasword: grid.x=0; grid.y=12.content.setLayout(new GridBagLayout()); is wrong, the argument should be the gbObject you created.