简体   繁体   English

如何为多个数据输入创建选项卡式Joptionpane

[英]How to create a tabbed Joptionpane for multiple data input

I'm having trouble figuring out how to make a Tabbed Joptionpane for user input. 我在弄清楚如何为用户输入制作选项卡式Joptionpane时遇到麻烦。 Basically I need to take multiple values from user input, but instead of multiplied dialog boxes, I would like them to be able to enter all the separate data into one box. 基本上,我需要从用户输入中获取多个值,但是我希望它们能够将所有单独的数据输入到一个框中,而不是乘法对话框。 Is this possible? 这可能吗? I can't seem to figure it out. 我似乎无法弄清楚。 In Java btw. 在Java中

You can create custom JOptionPane. 您可以创建自定义JOptionPane。 Basically you define a JPanel that will contain the input fields, and organize this panel as you want. 基本上,您定义了一个将包含输入字段的JPanel,并根据需要组织此面板。 See : Multiple input in JOptionPane.showInputDialog 请参阅: JOptionPane.showInputDialog中的多个输入

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM