Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDialog : Custom Input

 
Darren Wilkinson
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello :-)

I need to make a modal dialog window that requires the user to input text into 3 textfields

It also needs two buttons

A cancel button (which gets rid of the dialog)

Another button which passes the users text on to the class that created the dialog

Can anyone point me in the right direction on this please

Darren
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This might get you started (it's rough)

 
Darren Wilkinson
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you

This has pointed me in the right direction
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Darren Wilkinson:
Thank you

This has pointed me in the right direction


It did a little more than point. I hope this wasn't a homework assignment..Michael, are you listening?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic