Database Adapter Wizard does not show accessible table

HI guys,
in the wizard I am unable to see the tables which I need to use for database adapter.
But I do have access to those tables, and able to select from them in SQL worksheet from with in Jdev.
I dont own the tables, but my user id have readable access to those tables.
Any help is appreciated.
P.S. If I didnt explain it properly, plz let me know. It really creates lot of access issues if I can only create DB adapter on My owned tables.
:)

Hi there,
please see the answer to your duplicate post on the BPEL forum:
DB Adapter does not show selectable tables
In general BPEL forum gets a lot more traffic but I will try to address questions on both equally.
Thanks
Steve

Similar Messages

  • Installing SharePoint 2013 Workflow Manager offline - Wizard does not show up

    
    Hello guys,I recently tried to install the workflowmanager to the Application Server of my SharePoint 2013 Farm.I used the following commandline as suggested by spence harbar (in his article).SERVER -D:\SP\WorkflowManager\bin>WebpiCmd.exe /Install /Products:WorkflowManager /XML:D:\SP\WorkflowManager\feeds\latest\w
    ebproductlist.xml
    The wizard does not show up, instead of that, I got an message in my Commandbox:
    The software that you obtain using the Web Platform Installer Command Line Tool is licensed to you by its owner. Microsoft g
    rants you no rights for third party software.
    Successfully loaded primary feed: file:///D:/SP/WorkflowManager/feeds/latest/webproductlist.xml
    The following products are not available on this machine or already installed: WorkflowManager
    No products to be installed (either not available or already installed)
    Can anybody tell me what to do in this situation. I can´t uninstall the software because there is none.
    I need help with this! There is no information in the community about this problem :/
    Greetings Andre

    Hi,
    First of all that blog is old and now you should install Workflow Manager Refresh 1.0. To start fresh, uninstall all components of WF Manager from the server and then follow below mentioned steps.
    Download Microsoft Web Platform Installer 5.0 on a machine where Internet is there.
    Once Installed, go this path in command prompt C:\Program Files\Microsoft\Web Platform Installer and then use this command WebpiCmd.exe /offline /Products:WorkflowManagerRefresh /Path:C:\temp
    Copy the temp folder to the WF Manager machine where you wish to install the WF Manager
    In destination server, use command prompt with elevated privileges and navigate to the temp/bin directory (in copied folder).
    Use this command WebpiCmd.exe /Install /Products:ServiceBus_1_1 /XML:C:\temp\feeds\latest\webproductlist.xml
    Then run this command WebpiCmd.exe /Install /Products:WorkflowClient /XML:C:\temp\feeds\latest\webproductlist.xml
    Then run this command WebpiCmd.exe /Install /Products:WorkflowManagerRefresh /XML:C:\temp\feeds\latest\webproductlist.xml
    -Prashant

  • PI sheet does not show the table of materials to be consumed.

    Hello,
    Weu2019re trying to customize the pi-sheet on SAP 4.7 (SAP-APPL Release 470) and weu2019re having some problems.
    On transaction O12C (Define Process Instruction Categories), weu2019ve created an Instruction Category for Material Consumption using Type of the process data request equal to Repeated process data request. Doing this, when we create a Process Order, the PI sheet does not show the table of materials to be consumed.
    If we use Type of the process data request equal to Simple process data request instead of Repeated process data request, the PI Sheet works well (The table of materials to be consumed are showing).
    Thanks in advance.

    Hi,
    Is the issue resolved...? If yes then how...
    If not, then can you please elaborate more on the process instructions charateristics you have used. Just list first ten characteristic and there values.
    Regards
    Neeraj

  • Newly added field does not show in table genarator.

    Hi,
         I have added one more field to my custom table.
    When I make new entries in table maintanance, the new field does not show up.
    Thank U for Ur time.
    Cheers,
    Sam

    hai sam raj,
    first activate your database table .
    if any error occurs better you go to
    se14(database utility) -
    >give table name in object and select the table check box and click the edit push button.
    and then click activate and adjust pushbutton.
    surely you ll get some idea.
    reward points if those idea helps.
    thanks,
    velu.

  • DB Adapter does not show selectable tables

    HI guys,
    in the wizard I am unable to see the tables which I need to use for database adapter.
    But I do have access to those tables, and able to select from them in SQL worksheet from with in Jdev.
    I dont own the tables, but my user id have readable access to those tables.
    Any help is appreciated.
    P.S. If I didnt explain it properly, plz let me know. It really creates lot of access issues if I can only create DB adapter on My owned tables.
    :)

    Hi there,
    please make sure that the DB Connection you have created in JDev points to the expected database. It is generally safest to have the user name match the schema you are importing tables from, but the scenario you mention is perfectly fine too.
    One tricky thing in the import tables dialogue is that it initially shows you tables from the user/schema you logged in as. There is an easily overlooked drop down at the top that allows you to query the tables belonging to other visible schemas.
    Also once you enter your search criteria make sure you hit enter or click on the auto query check box to get the results.
    Thanks
    Steve

  • BOE 3.0 Designer does not show the table browser

    Hi,
    I am using BOE 3.0. I was able to view the table browser a few days back. After I changed the license key, the designer stopped showing me the table browser. I am logging into Designer with Administrator previleges. Although the Administrator has "Full control", but when I click on "Insert->Tables" in designer it does not do anything, not even display the table browser. I have created Oracle client connection and tested it. The server is responding, but the insert-> tables does not work.
    Any help would be appreciated.
    Thanks,
    SUS.

    1. When you invoke table browser using Insert->Tables do you see progress bar below the designer (task Bar)
    Sus: Yes I can see the progress bar. It exists for a few seconds and then disapperas,but does not do anything.
    2. Can you try invoking Table browser by double clicking on Universe designer pane.
    Sus: Yes I tried, but nothing happened. I mean I could not see the table browser
    3. Can you check if Designer can connect to your DB.
    Sus: Yes the designer is able to connect to the DB. I tested the connection and got the message "Server is responding". In fact when I am using the quick design wizard I can able to see the tables from my DB.
    4. How many tables do you have in DB, IF there are lot many table then it might table time to load those tables
    Sus: Currently my DB contains almost 40(20 tables and 20 views). I don't think it is concern. I worked with DB which contains more than this and that time I did not face this issue.
    5. Can you strategies tab in parameters (File->Parameters). What is the strategy for Tables. Try using built-in strategy.
    Sus: Yes it is built-in for tables. It is the default one and I did not change it.
    Is there a limit set to insert tables in designer?
    -Sus

  • SQL Developer 3.1.07 does not show a Tables entry under the Navigator

    Installed SQL Developer 3.1.07. Under my Connections window, I log into the SYSTEM account. There is NO tables entry. SYSTEM has access to all tables in the database. It's the same behavior for other database users as well.
    I re-installed SQL Developer 3.0.04 and a Tables entry DOES appear for the same SYSTEM user connected to the same database.

    Hi J,
    I was under the impression that regardless of the Java version that my environment variables are setup to use,
    the installation of SQL Developer (when you install with a JDK), that the JDK version installed with SQL Developer
    is the one that is used.Exactly correct, unless you decide to override it in the conf file. I needed to be certain you did not.
    Anyway, trying to resolve the problem, let's go back to a possibility that something went wrong with the migration of your preference settings. Here is an old thread discussing a missing Tables node in the Connection view (sometimes called the navigator tree):
    Table node missing from navigator tree in 3.0.04
    The poster had to rename the system directory containing these settings, then ignore the offer to migrate settings upon starting up SQL Developer again. If you never migrated settings in the first place, then I'm not sure what more to say -- probably would require additional research here in the forum. But if you did migrate settings, then try the following:
    1. Export your connections (Connections node | right-click | Export Connections...)
    2. Exit SQL Developer
    3. Rename the directory to something else
    4. Restart SQL Developer
    5. Import your connections
    That directory on my Windows 7 machine for the current production release is something like:
    C:\Users\<username>\AppData\Roaming\SQL Developer\system3.1.07.42
    Hope this helps,
    Gary

  • Creating new ODBC connection does not show the tables

    Post Author: reemjacob
    CA Forum: Data Connectivity and SQL
    Hello
    I am creating a new ODBC Connection to SQL Server in Database Expert. Once I created the ODBC when I expand the Database I should be seeing the tables, views and stored procedures. But instead I am only seeing stored procedures. When I right click on the DB and go to options I see that Tables, Views and Stored Procedures are checked. How can I correct this so that I see the Tables and Views?
    Regards
    Reem

    Not an Oracle proble. Not an instant driver problem.
    If the ODBC tool and driver you use, fail to construct the proper SQL to interrogate the very rich Oracle data dictionary.. what is Oracle suppose to do? Fix the software from those vendors for the user? Not going to happen. Get Oracle Raptor instead and use a proper Oracle client.
    Simple test. Run the following SQLs via your ODBC connection.
    To see all your objects in your schema (i.e. the one you logged into via ODBC):
    SELECT * FROM user_objects
    To see a list of schemas:
    SELECT username FROM all_users ORDER BY 1
    To view other schemas' contents:
    SELECT * FROM all_objects
    Also note that historically ODBC has delivered poor performance. I recall many performance tests I've done during the 90's that showed ODBC up to 3x slower and generating more than 4x the network traffic, than native connections. Not too mention using ODBC introduces an additional software layer, which means more moving parts, more complexity, and more failures.
    I have not touched ODBC with the proverbial 10ft pole since - and today, I have even less need to use a clunky software layer like ODBC. And should I be forced to, it will be passthru all the way.

  • Import wizard does not import the tables

    Data Modeler Version 3.1.4.710
    I want to create ERD from tables in fusion schema
    Opened Data modeler
    Selected file -> import -> Data Dictionary
    selected the fusion schema -> Next
    found no tables listed !!!

    Strange. I assume you're using a standard ("Basic") Oracle connection. What version is your Oracle database? Is there anything unusual about it (e.g. character set)?
    In step 3 of the Data Dictionary Import Wizard, the Tables should all be listed on the Tables tab, and the Views on the Views tab. Do the Users appear on the Users tab?
    Are there any error messages in the log file? (This is normally file datamodeler.log in folder datamodeler\datamodeler\log.)
    David

  • Add table list does not show database view in Configuration Manager

    Hi,
    I am trying to add a database view in the table tab of the configuration manager. The view does not show up in the list of available tables in WCM 11.1.1.6 version. This is possible in the 11.1.1.4 version. Anyone else facing this issue?
    Thanks
    Soumya

    I think what is being asked is "How do I expose a database view as a schema table in Configuration Manager?"
    This is accomplished by creating a database view within the WCC database schema (and with the WCC schema user as the view owner). The view then will appear as a table in the "table" tab in Configuration Manager.
    One caveat in 11g is that the user created by RCU does not have any privileges to read/create views in its own schema. You may need to grant privileges to views for the WCC schema user before this will work.

  • Plz. help,table does not show value for one field

    hi all,
    i have a really strange problem , i have a string field in access database that contains the date and time value,this field for some strange reason does not show in my table created through html,
    i tried all combination(arranging the fields) ,renaming it w/o help, it shows the value using out.println(but then why is it not showing me in the table???)
    plz. help ASAP.
    the code is as under
    <HTML>
    <HEAD><TITLE> LOGGED IN ok</TITLE> </HEAD>
    <BODY bgcolor = "yellow">
    <%@ page import = "java.sql.*" %>
         <%! // declaring variables
    String s = "";
    java.sql.ResultSet rs=null,rs1=null,rs2=null;
    java.sql.Connection con;
    java.sql.Statement stmt,stmt1;
    String empId = "",compid ="",calltype ="",probheader="",probdescription ="",probcomment ="",priority ="",a="";
    %>
    Following are the pending complaints ..
         <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 width="100%">
         <TR>
         <TD> ComplainD </TD>
    <TD> ComplainId </TD>     
    <TD> ProbHeader </TD>     
    <!--
    <TD> ProblemDescription </TD>     
    <TD> Problem Comments </TD>     
    -->
    </TR>
         <%
         try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};" +"DBQ=c:/vishal/HelpDesk.mdb;DriverID=22;READONLY=false","","");
         //java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Portal");
              java.sql.Statement stmt = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY);
              s = "select * from Complains";
         java.sql.ResultSet rs = stmt.executeQuery(s);               
                        while(rs.next())
                        //getting data from database
                                                           empId = rs.getString("EmpId");                    // out.print(" " + empId);
              compid = rs.getString("ComplainId");
              // out.print(" " + compid);
              calltype = rs.getString("CallType");
              // out.print(" " + calltype);
                        a = rs.getString("Complaindate"); //problem with this field
    out.print(a); // prints value
              %>               
                        <TR>      
                        <TD> <%=compid %> </TD>
                        <TD> <%=calltype %> </TD>     
                        <TD <%=a %> </TD>
                                       </TR>
    <%
                        }//while loop          
         %>
         </TABLE>     
         <%                
         }//try
              catch(Exception ep)
              out.println(ep);
              System.exit(1);
    %>
    </BODY>
    </HTML>
    value in database is as follows :-
    Complaindate
    5/18/2003 1:30:27 PM
    5/18/2003 7:32:43 PM
    5/18/2003 7:34:02 PM
    5/18/2003 7:49:19 PM
    5/18/2003 7:50:27 PM
    5/18/2003 10:49:42 PM
    5/18/2003 10:58:24 PM
    thanking u ,plz ask if any further clarifications

    Hi
    I am seeing nothing wrong with ur code..
    what about "view source" result.....plz check with that...
    whether u r getting all the trs and tds...
    revert back on this Issue..
    Mars Amutha

  • :: NWA does not show table view for monitoring reports ::

    Hi,
    We are facing an issue in one of our portal system.
    I click on Portal index page, then I go to Net weaver Administrator --> Monitoring --> Java system reports.
    Here I get the resource utilization graphs.
    The graphs show proper values however when I click on table view it does not show any value or table at all.
    Then I click on Settings button, and click on Persistent radio button.
    It asks to enter the number of days for which the the data should be stored.
    I gave it as 2 days and click on Apply button.
    It shows a message saying "changes would be effective after restarting monitoring service".
    However when I go there i.e. NWA --> Administration --> Applications
    I get below services
    cafruntimemonitoring~ear                 
    com.sap.ip.bi.sdk.monitoring                 
    tclmwebadminmonitoravail~wd            
    tclmwebadminmonitorcomplib~wd            
    tclmwebadminmonitorprovider_ear            
    tclmwebadminmonitorstate~wd            
    tclmwebadminoverviewmonitoring~wd           
    tcmonitoringsysteminfo
    Would you kindly suggest which service from above list should be restarted ?
    Thank you, Regards,
    Girish Garje.

    I think what is being asked is "How do I expose a database view as a schema table in Configuration Manager?"
    This is accomplished by creating a database view within the WCC database schema (and with the WCC schema user as the view owner). The view then will appear as a table in the "table" tab in Configuration Manager.
    One caveat in 11g is that the user created by RCU does not have any privileges to read/create views in its own schema. You may need to grant privileges to views for the WCC schema user before this will work.

  • Why MSAccess database shows data but does not show columns and DDL in edit mode in jdeveloper?

    Sir,
    My developer ver is 12.1.3.0.0.
    I create a connection to MS Access database, this database shows data as bellow in jdeveloper databases window
    But when I open any table in Edit mode like bellow it does not show any columns and DDL and give an error like bellow
    Similarly when I try to create view objects on these tables then on data controls the view object also doesn't show any columns like bellow
    What could be the reason any help on this issue
    Should I use MS Access or not but I want to use ms access for very small databases.
    Regards

    If you look into the certification matrix at Oracle JDeveloper and ADF 12c (12.1.3) Supported Systems
    You'll see that ms access is not supported.
    You can use oracle xe which is free for your project.
    Timo

  • The SYSVAL table entry for the database version (16) does not match the required version

    We upgraded from Tidal Enterprise Scheduler (TES) 5.31 to 6.1 on fresh Windows x64 2008 R2 servers.  I did a fresh install but our DBA restored a copy of our database from pre-prod which was at 5.31.  I get the error below.  Note, SQL went from 2005 to 2012 during this upgrade.  Do I need to change a value in this table to reflect the SQL change?
    [04/29 12:47:14:198]:TIDAL Enterprise Scheduler: version 6.1.0.133
    [04/29 12:47:14:198]:Java version: 1.8.0
    [04/29 12:47:14:198]:Java Virtual Machine version: 25.0-b70
    [04/29 12:47:14:198]:Start Time : 04/29/14 12:47:14:198
    [04/29 12:47:14:198]:----------------------------------------------------------------------------
    [04/29 12:47:14:198]:Database URL :jdbc:sqlserver://SQL2012-Host:1433;responseBuffering=adaptive
    [04/29 12:47:14:198]:Database Driver :com.microsoft.sqlserver.jdbc.SQLServerDriver
    [04/29 12:47:14:198]:Maximum number of log files = 100
    [04/29 12:47:14:198]:Added a LogFile called 'RegularFile'
    [04/29 12:47:14:198]:LogManager: setting default log
    [04/29 12:47:14:214]:Retrieved a LogFile called 'RegularFile'
    [04/29 12:47:14:495]:MessageBroker: Instantiated TcpTransportServer (URI = tcp://0.0.0.0:6215)
    [04/29 12:47:16:975]:Retrieved a LogFile called 'RegularFile'
    [04/29 12:47:17:272]:The SYSVAL table entry for the database version (16) does not match the required version (23). Shutting down.
    [04/29 12:47:20:282]:
    [04/29 12:47:20:282]:
    [04/29 12:47:20:282]:Shutting down the application

    I had this error last night while applying a patch to 6.0. However in my case the version was 21 versus a required version of 23.
    As far as i know 6.1 is not compatible with the 5 db schema, so you will need an update / migration plan for the db also.

  • JTable Problem (table does not show rows and columns)

    Hi All,
    What the table is suppose to do.
    - Load information from a database
    - put all the values in the first column
    - in the second column put combobox (cell editor with numbers 1-12)
    - the 3rd column put another combobox for something else
    - the 4th column uses checkbox as an edit
    The number of rows of the table should be equal to the number of
    record from
    the database. If not given it default to 20 (poor but ok for this)
    The number of columns is 4.
    But the table does not show any rows or
    column when I put it inside a
    JScrollPane (Otherwise it works).
    Please help,
    thanks in advance.
    public class SubjectTable extends JTable {
    * Comment for <code>serialVersionUID</code>
    private static final long serialVersionUID = 1L;
    /** combo for the list of classes */
    protected JComboBox classCombo;
    /** combo for the list of subjects */
    protected JComboBox subjectsCombo;
    /** combo for the list of grade */
    protected JComboBox gradeCombo;
    boolean canResize = false;
    boolean canReorder = false;
    boolean canSelectRow = false;
    boolean canSelectCell = true;
    boolean canSelectColumn = true;
    // the row height of the table
    int rowHeight = 22;
    // the height of the table
    int height = 200;
    // the width of the table
    int width = 300;
    // the size of the table
    Dimension size;
    * Parameterless constructor. Class the one of the other constructors
    to
    * create a table with the a new <code>SubjectTableModel</code>.
    public SubjectTable() {
    this(new SubjectTableModel());
    * Copy constructor to create the table with the given
    * <code>SubjectTableModel</code>
    * @param tableModel -
    * the <code>SubjectTableModel</code> with which to
    initialise
    * the table.
    SubjectTable(SubjectTableModel tableModel) {
    setModel(tableModel);
    setupTable();
    * Function to setup the table's functionality
    private void setupTable() {
    clear();
    // set the row hieght
    this.setRowHeight(this.rowHeight);
    // set the font size to 12
    //TODO this.setFont(Settings.getDefaultFont());
    // disble reordering of columns
    this.getTableHeader().setReorderingAllowed(this.canReorder);
    // disble resing of columns
    this.getTableHeader().setResizingAllowed(this.canResize);
    // enable the horizontal scrollbar
    this.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    // disable row selection
    setRowSelectionAllowed(this.canSelectRow);
    // disable column selection
    setColumnSelectionAllowed(this.canSelectColumn);
    // enable cell selection
    setCellSelectionEnabled(this.canSelectCell);
    setPreferredScrollableViewportSize(getSize());
    TableColumn columns = null;
    int cols = getColumnCount();
    for (int col = 0; col < cols; col++) {
    columns = getColumnModel().getColumn(col);
    switch (col) {
    case 0:// subject name column
    columns.setPreferredWidth(130);
    break;
    case 1:// grade column
    columns.setPreferredWidth(60);
    break;
    case 2:// class room column
    columns.setPreferredWidth(120);
    break;
    case 3:// select column
    columns.setPreferredWidth(65);
    break;
    } // end switch
    }// end for
    // set up the cell editors
    doGradeColumn();
    doClassColumn();
    //doSubjectColumn();
    * Function to clear the table selection. This selection is different
    to
    * <code>javax.swing.JTable#clearSelection()</code>. It clears the
    user
    * input
    public void clear() {
    for (int row = 0; row < getRowCount(); row++) {
    for (int col = 0; col < getColumnCount(); col++) {
    if (getColumnName(getColumnCount() - 1).equals("Select")) {
    setValueAt(new Boolean(false), row, getColumnCount() - 1);
    }// if
    }// for col
    }// for row
    * Function to set the cell renderer for the subjects column. It uses
    a
    * combobox as a cell editor in the teacher's subjects table.
    public void doSubjectColumn() {
    TableColumn nameColumn = getColumnModel().getColumn(0);
    nameColumn.setCellEditor(new DefaultCellEditor(getSubjectsCombo()));
    // set up the celll renderer
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for drop down list");
    nameColumn.setCellRenderer(renderer);
    // Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = nameColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer) headerRenderer)
    .setToolTipText("Click the Name to see a list of choices");
    }// end doSubjectsColumn----------------------------------------------
    /** Function to set up the grade combo box. */
    public void doGradeColumn() {
    TableColumn gradeColumn = getColumnModel().getColumn(1);
    gradeColumn.setCellEditor(new DefaultCellEditor(getGradeCombo()));
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for drop down list");
    gradeColumn.setCellRenderer(renderer);
    // Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = gradeColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer) headerRenderer)
    .setToolTipText("Click the Grade to see a list of choices");
    }// end doGradeColumn-------------------------------------------------
    * Function to setup the Class room Column of the subjects
    public void doClassColumn() {
    // set the column for the classroom
    TableColumn classColumn = getColumnModel().getColumn(2);
    classColumn.setCellEditor(new DefaultCellEditor(getClassCombo()));
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for drop down list");
    classColumn.setCellRenderer(renderer);
    // Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = classColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer) headerRenderer)
    .setToolTipText("Click the Class to see a list of choices");
    }// end doClassColumn--------------------------------------------------
    * Function to get the size of the table
    * @return Returns the size.
    public Dimension getSize() {
    if (this.size == null) {
    this.size = new Dimension(this.height, this.width);
    return this.size;
    * Function to set the size of the table
    * @param dim
    * The size to set.
    public void setSize(Dimension dim) {
    if (dim != null) {
    this.size = dim;
    return;
    * Function to create/setup the class room comboBox. If the comboBox
    is
    * <code>null</code> a nwew one is created else the functon returns
    the
    * function that was returned initially.
    * @return Returns the classCombo.
    private JComboBox getClassCombo() {
    if (this.classCombo == null) {
    this.classCombo = new JComboBox();
    // fill up the class name combo
    ArrayList classRooms = new ArrayList();
    try {
    //TODO classRooms = Settings.getDatabase().getClassRooms();
    for (int i = 0; i < 10; i++) {
    String string = new String("Class");
    string += i;
    if (!classRooms.isEmpty()) {
    classRooms.trimToSize();
    for (int i = 0; i < classRooms.size(); i++) {
    this.classCombo.addItem(classRooms.get(i));
    } catch (Exception e) {
    e.printStackTrace();
    return this.classCombo;
    * Function to create/setup the subjects comboBox. If the comboBox is
    * <code>null</code> a nwew one is created else the functon returns
    the
    * function that was returned initially.
    * @return Returns the subjectsCombo.
    private JComboBox getSubjectsCombo() {
    if (this.subjectsCombo == null) {
    this.subjectsCombo = new JComboBox();
    try {
    ArrayList subjects = loadSubjectsFromDatabase();
    if (!subjects.isEmpty()) {
    Iterator iterator = subjects.iterator();
    while (iterator.hasNext()) {
    // create a new subject instance
    //TODO Subject subct = new Subject();
    // typecast to subject
    //TODO subct = (Subject) iterator.next();
    String name = (String) iterator.next();
    // add this subject to the comboBox
    //TODO this.subjectsCombo.addItem(subct.getName());
    subjectsCombo.addItem(name);
    }// end while
    }// end if
    else {
    JOptionPane.showMessageDialog(SubjectTable.this,
    "Subjects List Could Not Be Filled");
    System.out.println("Subjects List Could Not Be Filled");
    } catch (Exception e) {
    e.printStackTrace();
    return this.subjectsCombo;
    * Function to load subjects from the <code>Database</code>
    * @return Returns the subjects.
    private ArrayList loadSubjectsFromDatabase() {
    // list of all the subject that the school does
    ArrayList subjects = new ArrayList();
    try {
    //TODO to be removed later on
    for (int i = 0; i < 10; i++) {
    String string = new String("Subject");
    string += i;
    subjects.add(i, string);
    // set the school subjects
    //TODO subjects = Settings.getDatabase().loadAllSubjects();
    } catch (Exception e1) {
    e1.printStackTrace();
    return subjects;
    * Function to create/setup the grade comboBox. If the comboBox is
    * <code>null</code> a nwew one is created else the functon returns
    the
    * function that was returned initially.
    * @return Returns the gradeCombo.
    private JComboBox getGradeCombo() {
    if (this.gradeCombo == null) {
    this.gradeCombo = new JComboBox();
    // fill with grade 1 to 12
    for (int i = 12; i > 0; i--) {
    this.gradeCombo.addItem(new Integer(i).toString());
    return this.gradeCombo;
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(new Plastic3DLookAndFeel());
    System.out.println("Look and Feel has been set");
    } catch (UnsupportedLookAndFeelException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    SubjectTableModel model = new SubjectTableModel();
    int cols = model.getColumnCount();
    int rows = model.getRowCount();
    Object[][] subjects = new Object[rows][cols];
    for (int row = 0; row < rows; row++) {
    subjects[row][0] = new String("Subjectv ") + row;
    }//for
    model.setSubjectsList(subjects);
    SubjectTable ttest = new SubjectTable(model);
    JFrame frame = new JFrame("::Table Example");
    JScrollPane scrollPane = new JScrollPane();
    scrollPane.setViewportView(ttest);
    frame.getContentPane().add(scrollPane);
    frame.pack();
    frame.setVisible(true);
    **************************************END
    TABLE******************************
    ----------------------------THE TABLE
    MODEL----------------------------------
    * Created on 2005/03/21
    * SubjectTableModel
    package com.school.academic.ui;
    import javax.swing.table.AbstractTableModel;
    * Class extending the <code>AbstractTableModel</code> for use in
    creating the
    * <code>Subject</code>s table. In addition to the implemented methods
    of
    * <code>AbstractTableModel</code> The class creates a model that has
    initial
    * values - the values have their own <code>getter</code> and
    * <code>setter</code> methods - but can still be used for values that
    a user
    * chooses.
    * <p>
    * @author Khusta
    public class SubjectTableModel extends AbstractTableModel {
    * Comment for <code>serialVersionUID</code>
    private static final long serialVersionUID = 3257850978324461113L;
    /** Column names for the subjects table */
    String[] columnNames = { "Subject", "Grade", "Class Room",
    "Select" };
    /** Array of objects for the subjects table */
    Object[][] subjectsList;
    private int totalRows = 20;
    protected int notEditable = 0;
    * Parameterless constructor.
    public SubjectTableModel() {
    // TODO initialise the list
    // add column to the default table model
    this.subjectsList = new
    Object[getTotalRows()][getColumnNames().length];
    * Copy constructor with the <code>subjectList</code> to set
    * @param subjects
    public SubjectTableModel(Object[][] subjects) {
    this(0, null, subjects, 0);
    * Copy constructor with the initial number of row for the model
    * @param rows -
    * the initial rows of the model
    * @param cols -
    * the initial columns of the model
    * @param subjects -
    * the initial subjects for the model
    * @param edit - the minimum number of columns that must be
    uneditable
    public SubjectTableModel(int rows, String[] cols, Object[][]
    subjects, int edit) {
    // set the initial rows
    setTotalRows(rows);
    // set the column names
    setColumnNames(cols);
    // set the subjectlist
    setSubjectsList(subjects);
    //set not editable index
    setNotEditable(edit);
    * Function to get the total number of columns in the table
    * @return int -- the columns in the table
    public int getColumnCount() {
    if (this.subjectsList == null) {
    return 0;
    return getColumnNames().length;
    * Function to get the total number of rows in the table
    * @return int -- the rows in the table
    public int getRowCount() {
    if (this.subjectsList == null) {
    return 0;
    return this.subjectsList.length;
    * Function to get the name of a column in the table.
    * @param col --
    * the column to be named
    * @return String -- the column in the table
    public String getColumnName(int col) {
    if (getColumnNames()[col] != null) {
    return getColumnNames()[col];
    return new String("...");
    * Function to get the value of the given row.
    * @param row --
    * the row of the object.
    * @param col --
    * the col of the object.
    * @return Object -- the value at row, col.
    public Object getValueAt(int row, int col) {
    return getSubjectsList()[row][col];
    * Function to return the data type of the given column.
    * @param c --
    * the column whose type must be determined.
    * @return Class -- the type of the object in this col.
    public Class getColumnClass(int c) {
    if (getValueAt(0, c) != null) {
    return getValueAt(0, c).getClass();
    return new String().getClass();
    * Function to put a value into a table cell.
    * @param value --
    * the object that will be put.
    * @param row --
    * the row that the object will be put.
    * @param col --
    * the col that the object will be put.
    public void setValueAt(Object value, int row, int col) {
    * TODO: Have a boolean value to determine whether to clear or
    to set.
    * if true clear else set.
    if (value != null) {
    if (getSubjectsList()[0][col] instanceof Integer
    && !(value instanceof Integer)) {
    try {
    getSubjectsList()[row][col] = new
    Integer(value.toString());
    fireTableCellUpdated(row, col);
    } catch (NumberFormatException e) {
    * JOptionPane .showMessageDialog( this., "The \""
    +
    * getColumnName(col) + "\" column accepts only
    values
    * between 1 - 12");
    return;
    System.out.println("Value = " + value.toString());
    System.out.println("Column = " + col + " Row = " + row);
    // column = Grade or column = Select
    switch (col) {
    case 2:
    try {
    // TODO
    if (Boolean.getBoolean(value.toString()) == false
    && getValueAt(row, 0) != null
    && getValueAt(row, 1) != null
    && getValueAt(row, 2) != null) {
    // subjectsList[row][col + 1] = new
    Boolean(true);
    System.out.println("2. false - Updated...");
    * this.subjectListModel.add(row,
    * this.subjectsList[row][0] + new String(" -
    ") +
    * this.subjectsList[row][2]);
    } catch (ArrayIndexOutOfBoundsException exception) {
    exception.printStackTrace();
    break;
    case 3:
    if (Boolean.getBoolean(value.toString()) == false
    && getValueAt(row, 0) != null
    && getValueAt(row, 1) != null
    && getValueAt(row, 2) != null) {
    System.out.println("3. If - Added...");
    getSubjectsList()[row][3] = new Boolean(true);
    this.subjectListModel.addElement(this.subjectsList[row][0] +
    * new String(" - ") + this.subjectsList[row][2]);
    // subjectListModel.remove(row);
    fireTableCellUpdated(row, col);
    fireTableDataChanged();
    // this.doDeleteSubject();
    } else if (Boolean.getBoolean(value.toString()) ==
    true
    && getValueAt(row, 0) != null
    && getValueAt(row, 1) != null
    && getValueAt(row, 2) != null) {
    setValueAt("", row, col - 1);
    setValueAt("", row, col - 2);
    setValueAt("", row, col - 3);
    System.out.println("3. Else - Cleared...");
    // this.subjectListModel.remove(row);
    break;
    default:
    break;
    }// end switch
    getSubjectsList()[row][col] = value;
    fireTableCellUpdated(row, col);
    fireTableDataChanged();
    }// end if
    }// end
    * Function to enable edition for all the columns in the table
    * @param row --
    * the row that must be enabled.
    * @param col --
    * the col that must be enabled.
    * @return boolean -- indicate whether this cell is editble or
    not.
    public boolean isCellEditable(int row, int col) {
    if (row >= 0
    && (col >= 0 && col <= getNotEditable())) {
    return false;
    return true;
    * Function to get the column names for the model
    * @return Returns the columnNames.
    public String[] getColumnNames() {
    return this.columnNames;
    * Function to set the column names for the model
    * @param cols
    * The columnNames to set.
    public void setColumnNames(String[] cols) {
    // if the column names are null the default columns are used
    if (cols != null) {
    this.columnNames = cols;
    * Function to get the rows of subjects for the model
    * @return Returns the subjectsList.
    public Object[][] getSubjectsList() {
    if (this.subjectsList == null) {
    this.subjectsList = new
    Object[getTotalRows()][getColumnNames().length];
    return this.subjectsList;
    * Function to set the subjects list for the model
    * @param subjects
    * The subjectsList to set.
    public void setSubjectsList(Object[][] subjects) {
    // if the subject list is null create a new one
    // using default values
    if (subjects == null) {
    this.subjectsList = new
    Object[getTotalRows()][getColumnNames().length];
    return;
    this.subjectsList = subjects;
    * Function to get the total number of rows for the model. <b>NB:
    </b> This
    * is different to <code>
    getRowCount()</code>.<code>totalRows</code>
    * is the initial amount of rows that the model must have before
    data can be
    * added.
    * @return Returns the totalRows.
    * @see #setTotalRows(int)
    public int getTotalRows() {
    return this.totalRows;
    * Function to set the total rows for the model.
    * @param rows
    * The totalRows to set.
    * @see #getTotalRows()
    public void setTotalRows(int rows) {
    // if the rows are less than 0 the defaultRows are used
    // set getTotalRows
    if (rows > 0) {
    this.totalRows = rows;
    * Function to get the number of columns that is not editble
    * @return Returns the notEditable.
    public int getNotEditable() {
    return this.notEditable;
    * Function to set the number of columns that is not editable
    * @param notEdit The notEditable to set.
    public void setNotEditable(int notEdit) {
    if (notEdit < 0) {
    notEdit = 0;
    this.notEditable = notEdit;
    ----------------------------END TABLE MODEL----------------------------------

    I hope you don't expect us to read hundreds of lines of unformatted code? Use the "formatting tags" when you post.
    Why are you creating your own TableModel? It looks to me like the DefaultTableModel will store you data. Learn how to use JTable with its DefaultTableModel first. Then if you determine that DefaultTableModel doesn't provide the required functionality you can write your own model.

Maybe you are looking for

  • Thunderbolt drive ejects when computer asleep

    This is an issue with a 3.5 GHz Core i7 iMac running 10.9.4 and a Lacie 5 disc Thunderbolt external with a RAID 0 (3x 2TB drives) and a RAID 1 (2x mirrored 2TB drives). At least once a week, and sometimes more, I wake my computer from sleep to discov

  • Regenerating Proxies - list view hangs client

    Just wondering if anyone else has come up against this one? If in the Asset window in the list view, and I attempt to regenerate proxies on a clip, the client freezes. I have to force-quit the client. Upon restarting the client and inspecting the Sea

  • Ghost icons present

    Front row -> movies -> I have about 8 references to Cascada -- some music vids. These files do not appear to be on my hard drive any more, but front row sees them: no video either. I am wondering if it is picking up on . files anywhere. I disconnecte

  • Any smartform for Output type FUSI for billing

    Hi, Can any one suggest me smartform for FUSI standard form. In se71, the form is SD_Export_FUSI. My requirement is to design layout according to client requirement. If any suggestion how to proceed will be welcome with suggesting smartform Thanks in

  • Help needed on Account Classification Search

    Hi All, I am facing a strange issue on Account classification search on WEBUI. When i select a Sales org in GUI, and do a search it is showing me the related BP's belonging to the salesorg but when i do the same search on web ui it is giving me no re