-1

Hello i have a program that should create a popup when the button is pressed and popup should contain text fields and buttons.I searched but i only found JOptionPane but it does not contain more than one text field so i need something else. I tought that if i make a internal frame and make it invisible and when pressed make it visible private void ButtonActionPerformed(java.awt.event.ActionEvent evt) { InternalFrame.show(); InternalFrame.toFront(); }

but it doesn't work so i need a code to make this possible(it doesn't matter if its frame or not)

1 Answers1

2

You can add multiple Textfields and Buttons.

Refere below SO Questions and answers

Multiple input in JOptionPane.showInputDialog

JOptionPane with multiple inputs on different lines

JOptionPane with multiple buttons on each line?

JOptionPane showInputDialog with custom buttons

Community
  • 1
  • 1
Alpesh Gediya
  • 3,706
  • 1
  • 25
  • 38