Results 1 to 6 of 6
  1. #1
    rexonlescano1 is offline Member
    Join Date
    Oct 2011
    Posts
    3
    Rep Power
    0

    Red face Need Help in Jtable to Jframe...

    i have a jTable here..
    Need Help in Jtable to Jframe...-jtable.jpg

    I need to put all the values from selected row to this form.. to the right jtextfield in this form..

    Need Help in Jtable to Jframe...-jframe.jpg

    can anyone please help me..

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default Re: Need Help in Jtable to Jframe...

    What have you tried? You give us absolutely no context to address your question (I say question with a bit of hesitation, as questions typically end in question marks), and there can be quite possibly hundreds if not thousands of ways to accomplish what you seek depending how the code is currently implemented.

    How to ask questions

  3. #3
    rexonlescano1 is offline Member
    Join Date
    Oct 2011
    Posts
    3
    Rep Power
    0

    Default Re: Need Help in Jtable to Jframe...

    oh... sorry for not putting question mark.. what im trying to imply is i dont know the codes for that problem...
    its like i want someone to post some codes thats why i attach on those images... if you know something please can you help me...

  4. #4
    RichersooN is offline Senior Member
    Join Date
    Jan 2011
    Location
    Rizal Province, Philippiines
    Posts
    167
    Rep Power
    0

    Default Re: Need Help in Jtable to Jframe...

    If you study enough, you should know this..

    create a defaultmodel, it has 2 parameter first is data you want to appear in the cell, second is the header
    Java Code:
    DefaultTableModel tbAllModel = new DefaultTableModel(dataArrayList,header);
    Then add the defaultmodel to your jtable.

  5. #5
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default Re: Need Help in Jtable to Jframe...

    Quote Originally Posted by rexonlescano1 View Post
    oh... sorry for not putting question mark.. what im trying to imply is i dont know the codes for that problem...
    its like i want someone to post some codes thats why i attach on those images... if you know something please can you help me...
    We are not a code service, and you should not expect us to invest our valuable time writing your code when we do this unpaid in our spare time. Your chances of receiving help increase when you have specific problems - especially if you provide context to the problem. As is, you give us nothing to go by - no pieces of code, just a general question that can be addressed in a number of ways. You have pictures...do you have code? Did you read the link I gave? Here's some more:
    How to Help Yourself Get Help
    How to Use Tables (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)

  6. #6
    rexonlescano1 is offline Member
    Join Date
    Oct 2011
    Posts
    3
    Rep Power
    0

    Default Re: Need Help in Jtable to Jframe...

    Quote Originally Posted by doWhile View Post
    We are not a code service, and you should not expect us to invest our valuable time writing your code when we do this unpaid in our spare time. Your chances of receiving help increase when you have specific problems - especially if you provide context to the problem. As is, you give us nothing to go by - no pieces of code, just a general question that can be addressed in a number of ways. You have pictures...do you have code? Did you read the link I gave? Here's some more:
    How to Help Yourself Get Help
    How to Use Tables (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
    i didnt say you invest your
    "VALUABLE" time writing my codes. i clearly said HELP!!! which means invest your valuable time for HELP. and this is not a good place for complains.. because this is forum.

Similar Threads

  1. Replies: 5
    Last Post: 06-14-2010, 06:10 PM
  2. [SOLVED] JTable and JFrame problem
    By nehaa in forum AWT / Swing
    Replies: 5
    Last Post: 05-06-2009, 04:25 PM
  3. Replies: 4
    Last Post: 04-22-2009, 11:02 PM
  4. Jframe In Jtable cell
    By Clarion in forum AWT / Swing
    Replies: 4
    Last Post: 06-23-2008, 04:42 AM
  5. Replies: 2
    Last Post: 05-15-2008, 10:15 AM

Posting Permissions

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