Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

passing text from JDialog to JFrame  RSS feed

 
Arnold Charming
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi!

I'm new to this forum and also quite new to Java.
I'm just playing around with it and came to a problem. I have a Jrame window width JDialog popping out of it when user click on a Jbutton. But now I want to send some text from JDialog to Jframe. How to do this? I've tried several things but no luck Help is needed!
 
Joe Ess
Bartender
Posts: 9428
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Welcome to the JavaRanch. Please avoid crossposting. It makes the community duplicate effort when answering your question and can lead to confusion if the separate topics move in different directions.
 
Norm Miller
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Report post to moderator
Here's a reference which will help you do this: How To Make Dialogs tutorial
This has an example doing exactly what you want.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!