[英]Swing components automatically changes to AWT
I need to call the LOGIN page from the default class and work on it but when I call it, the Swing components in the next page changes to AWT.我需要从默认类调用 LOGIN 页面并对其进行处理,但是当我调用它时,下一页中的 Swing 组件更改为 AWT。
public class Demo {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
new LOGIN().setVisible(true);
}
}
您还可以在实现之前检查哪些类和方法执行建议和自动完成调用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.