Results 1 to 7 of 7
  1. #1
    chyeeqi is offline Member
    Join Date
    Aug 2009
    Posts
    23
    Rep Power
    0

    Default Need Help in Passing data to new Frame

    how cani pass the data to another frame???
    can i have a example???

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

    Default

    Your question is somewhat general. To pass information to another class you can use a constructor paramter or a method parameter, and in this regard Swing is no different than any Java program. I think that your best bet for examples is the Sun Swing tutorials: Sun Java Tutorials

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

    Default

    Perhaps to better help us help you, you may wish to tell us more: What is your goal? What have you tried so far? What's not working? What specifically is tripping your up?

    Oh, and if you do post code, please don't forget to use code tags (please see my signature below).

    Best of luck.

  4. #4
    chyeeqi is offline Member
    Join Date
    Aug 2009
    Posts
    23
    Rep Power
    0

    Default

    i totally dunno how to pass the data between the frame~
    i get some example internet..but i dun understand the code

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

    Default

    Quote Originally Posted by chyeeqi View Post
    i totally dunno how to pass the data between the frame~
    i get some example internet..but i dun understand the code
    Hm, I'm not sure that based on this information we can understand what's causing your difficulty. Thus I have little to offer you other than to again refer you to the tutorials. Please feel free to come on back with your code and any specific questions you may have. Again, much luck.

  6. #6
    chyeeqi is offline Member
    Join Date
    Aug 2009
    Posts
    23
    Rep Power
    0

    Default

    i find the solutiion to solve the problem ^^

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

Similar Threads

  1. Passing data between dialogs
    By Wintery in forum New To Java
    Replies: 7
    Last Post: 01-02-2009, 06:35 AM
  2. passing variables to another frame
    By Grom in forum New To Java
    Replies: 10
    Last Post: 11-09-2008, 06:55 PM
  3. Need help passing data between classes
    By bri1547 in forum New To Java
    Replies: 3
    Last Post: 07-21-2008, 05:19 AM
  4. Passing data from one JFrame to another
    By abhiN in forum New To Java
    Replies: 2
    Last Post: 03-28-2008, 06:39 AM
  5. passing dynamic data
    By abhiN in forum Web Frameworks
    Replies: 0
    Last Post: 01-17-2008, 02: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
  •