Results 1 to 2 of 2

Thread: jTable

  1. #1
    nicozip is offline Member
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    Default jTable

    hi,
    in my program i click a row in a jtable (a) and i open a jDialog. in this jDialog i can select some rows from another jtable (b) and i want return these to jtable (a). my code returns only the first but if i scroll the table i see the other ones.
    thks

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

    Default

    I think that at this point you'll have to post some code. I recommend that you create and post the smallest program possible that is compilable, runnable, demonstrates your problem, and has no extraneous code not related to the problem, an SSCCE. Please see the link for details on how to create one of these because trust me, if your SSCCE is compliant with the specs, you'll likely get a very helpful answer from someone here quickly.

    Also, when posting code here, you'll want to use code tags so that your code will retain its formatting and thus will be readable -- after all, your goal is to get as many people to read your post and understand your code as possible, right?

    To do this, highlight your pasted code (please be sure that it is already formatted when you paste it into the forum; the code tags don't magically format unformatted code) and then press the code button, and your code will have tags.

    Another way to do this is to manually place the tags into your code by placing the tag [code] above your pasted code and the tag [/code] below your pasted code like so:

    Java Code:
    [code]
      // your code goes here
      // notice how the top and bottom tags are different
    [/code]
    Best of luck!

Similar Threads

  1. Jtable
    By dhaivat in forum AWT / Swing
    Replies: 2
    Last Post: 03-01-2010, 12:20 AM
  2. Adding New JTable in JTable
    By anilkumar_vist in forum New To Java
    Replies: 0
    Last Post: 01-27-2010, 08:27 AM
  3. JTable
    By hedonist in forum New To Java
    Replies: 3
    Last Post: 10-27-2009, 11:30 PM
  4. Replies: 2
    Last Post: 05-15-2008, 10:15 AM
  5. Help with JTable
    By fernando in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2007, 06:57 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
  •