开发者

Is this possible to make as a option dialog in Java?

开发者 https://www.devze.com 2022-12-30 03:07 出处:网络
alt text http://img202.imageshack.us/img202/2637/dialogo.png I\'m wondering how I could make this into a popup dialog.I designed this with Netbeans gu开发者_开发百科i editor.I looked at option dialog

alt text http://img202.imageshack.us/img202/2637/dialogo.png

I'm wondering how I could make this into a popup dialog. I designed this with Netbeans gu开发者_开发百科i editor. I looked at option dialog, but all the examples only had a textfield or a combobox, not more than one thing like I have. So what would be the best way to make this in Java.


You should extend JDialog

See the dialogs tutorial


You can make a JDialog form


You could extend JDialog, then use GridBagLayout to implement GUI like that (actually JFrame also works, you just need to specify some setting like default close operations and stuff), if you use JDialog, set setModel() to true to block other GUI just like a pop up window.

0

精彩评论

暂无评论...
验证码 换一张
取 消