Results 1 to 8 of 8
  1. #1
    Wintery is offline Member
    Join Date
    Jan 2009
    Posts
    3
    Rep Power
    0

    Question Passing data between dialogs

    :confused:

    I can't seem to find an example of this anywhere on the internet.

    1. I have a java application.
    2. This application creates a dialog with text fields on it.
    3. I want to return the data in the text fields on the dialog -back to the application.
    4. I can create the application. I can create the dialog. When the user presses an OK button, I want the data entered into the fields on the dialog to populate variables in the application...
    5. I can't find an example of this anywhere...

    Can anyone help?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    You should notify the volunteers on this forum that you've cross-posted this question elsewhere. You have notified the volunteers at the Sun forums that you've cross-posted here, right? If not, you may draw their ire as well, trust me.

  3. #3
    Wintery is offline Member
    Join Date
    Jan 2009
    Posts
    3
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    You should notify the volunteers on this forum that you've cross-posted this question elsewhere. You have notified the volunteers at the Sun forums that you've cross-posted here, right? If not, you may draw their ire as well, trust me.
    hmm.. so you don't know how to do it either? That's too bad. I was hoping to find someone that had done it before.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Sure insult me if you wish, but yes, I know how to do this, and I replied to you in your cross-post. You should search the Swing forum, and you can find my posts (or better Camickr's) that show how to do this.

    The reason we don't like cross-posts though is we're volunteers and our time is precious: we don't like to do futile work. How would you feel if you spent 20-30 min of your free time creating an answer for a poster only to find out that a similar solution was posted in a cross-post hours earlier, that you just wasted a bunch of time for nothing? You'd not help that poster again is what would likely happen.

    Your choice.

  5. #5
    Wintery is offline Member
    Join Date
    Jan 2009
    Posts
    3
    Rep Power
    0

    Default

    I knew it was you.

    I didn't insult you, I ignored your snarky comment to me. If you don't like the question, then don't answer it. You didn't have to run all over the internet with your panties in a wad posting crap to me on two different Java forums.

    I'm just looking for an answer to my question, not a flame war. All you had to say was "check the swing forums".

    I've been reading example code for two days, I figured it was time to ask "politely" if anyone had a suggestion. What I got back wasn't polite.

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    To anyone else who wants to see some solutions, please look here:


    to the op, please keep complaining.

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    edit: explorer malfunction. the link is here:New To Java - Transfering data from a dialog to the parent

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default

    Funny that these crazy coots aver that there's nothing wrong with cross posting, then get all het up when someone points it out.

    Inconsistent, wot?

    db

Similar Threads

  1. Replies: 0
    Last Post: 10-31-2008, 02:13 PM
  2. Need help passing data between classes
    By bri1547 in forum New To Java
    Replies: 3
    Last Post: 07-21-2008, 04:19 AM
  3. Passing data from one JFrame to another
    By abhiN in forum New To Java
    Replies: 2
    Last Post: 03-28-2008, 05:39 AM
  4. passing data dynamically
    By abhiN in forum Advanced Java
    Replies: 1
    Last Post: 01-22-2008, 09:43 AM
  5. passing dynamic data
    By abhiN in forum Web Frameworks
    Replies: 0
    Last Post: 01-17-2008, 01:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •