[英]Create a JDialog from a JDialog
How can you create a JDialog when you're in a JDialog?当您在 JDialog 中时,如何创建 JDialog?
DialogTest dialog = new DialogTest(this,true);
The above code doesn't work because the first parameter has to be a JFrame, but in this case it's a JDialog.上面的代码不起作用,因为第一个参数必须是 JFrame,但在本例中它是 JDialog。
Thanks in advance!提前致谢!
There are many constructors for a JDialog, one of which, will allow you to pass a Dialog. JDialog 有许多构造函数,其中之一将允许您传递 Dialog。 JDialog is derived from Dialog.
JDialog 派生自 Dialog。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.