• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to control textfield width in dialog box ?

 
Rasika Chitnis
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am displaying a dialog box to get the user input for number of seats to be booked and I want to know how can I control the display width and total width of the text field that gets displayed in the dialog box. Following is the code I have written.
Object obj = JOptionPane.showInputDialog(null, "Enter Number of Seats", "Seat Booking", JOptionPane.INFORMATION_MESSAGE, null, null, null);
Thanks in advance for help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic