Results 1 to 6 of 6
  1. #1
    Levian is offline Senior Member
    Join Date
    Jun 2011
    Posts
    109
    Rep Power
    0

    Default QueryTableModel question

    I created a QueryTableModel in a separate class called QueryTableModel.java

    Then my first UI call it in and yes, it can populate the table.
    Then I make another UI, as it also has table...I just call the same model to populate it, however I find error as the type can't be resolved.
    So I tried to see with import stuff...
    in the first one I can put import package.class;
    as the class is in the list
    however on the second one I can't see the class name when I press on the . after package name.

    First question is...one tablemodel can be called more than once (from 2 different view class or more) as long as the way handling the data from database (behavior) is the same, right ?

    Just trying to see where I should look for the problem is


    Thanks in advance

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

    Default

    however on the second one I can't see the class name when I press on the . after package name.
    And don't you think you need to tell us about your development environment? We're not mind readers here.

    db

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

    Default

    I created a QueryTableModel in a separate class called QueryTableModel.java
    You shouldn't have taken the trouble. 6,100 results on Google for "QueryTableModel java"

    db

  4. #4
    Levian is offline Senior Member
    Join Date
    Jun 2011
    Posts
    109
    Rep Power
    0

    Default

    I'm using Eclipse in XP with JRE System Library 1.6.0_02 also Windows Builder Pro plugin

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,772
    Blog Entries
    7
    Rep Power
    21

    Default

    How can you run your code (as you wrote in your OP) while you're having compilation problems?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    Levian is offline Senior Member
    Join Date
    Jun 2011
    Posts
    109
    Rep Power
    0

    Default

    OK, found the problem...

    Somehow in a rush I made the 2nd directly on default instead of my package

    Sorry

Similar Threads

  1. Question concerning question marks and colons
    By jim01 in forum New To Java
    Replies: 17
    Last Post: 01-14-2011, 01:05 AM
  2. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM
  3. MVC question
    By Tom_ in forum Advanced Java
    Replies: 1
    Last Post: 08-12-2010, 01:01 PM
  4. help question
    By 99w210 in forum NetBeans
    Replies: 0
    Last Post: 03-08-2010, 06:23 AM
  5. JSP Question
    By maheshkumarjava in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-29-2008, 11:51 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
  •