• Post Reply Bookmark Topic Watch Topic
  • New Topic

Returning a value from anonymous classes.

 
Atrus Greyor
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, I want to create a dialog that does more the just the general JOptionPane does. Essentially, they type in a Unicode value, and it displays on the JLabel to the left. I want the method to return the char value when the user click the accept JButton. How would I do this?



CharacterField is simply a JTextField that only lets a valid Unicode format be entered in. It's as follows (not needed but here for completeness)



Thanks for all the help ^^
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!