🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12608

JdbTable not editable

#12608
From: Tammy McKean
Date: Tue, 01 Dec 1998 00:00
77 lines
2808 bytes
Ok,

I am ready to scream!  Why can I not get any JdbTable components to be
editable?  Let me qualify that:  any JdbTable components that I specify a
QueryDataSet for do not seem to be able to be made editable, at all, ever:(
What am I missing?  Any help appreciated.

    -tm

BTW:  here is a very simple test case of a JdbTable that is still not editable:

import java.awt.*;
import borland.jbcl.control.*;
import java.awt.event.*;
import com.sun.java.swing.*;
import borland.dbswing.*;
import borland.sql.dataset.*;

public class TestFrame extends DecoratedFrame {
  DBToolDataModule dBToolDataModule1;
  JPanel jPanel1 = new JPanel();
  JdbTable jdbTable1 = new JdbTable();
  BorderLayout borderLayout1 = new BorderLayout();
  JdbNavToolBar jdbNavToolBar1 = new JdbNavToolBar();
  QueryDataSet queryDataSet1 = new QueryDataSet();
  Database database1 = new Database();


  public TestFrame() {
    try  {
      jbInit();
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  }

  public static void main(String[] args) {
    TestFrame testFrame1 = new TestFrame();
    testFrame1.show();
  }

  private void jbInit() throws Exception {
    dBToolDataModule1 = (DBToolDataModule)DBToolDataModule.getDataModule();
    this.setSize(new Dimension(574, 459));
    jdbTable1.setDataSet(queryDataSet1);
    jdbNavToolBar1.setDataSet(queryDataSet1);
    queryDataSet1.setSort(new borland.jbcl.dataset.SortDescriptor(new String[]
{"NAME"}, false, false));
    queryDataSet1.setTableName("");
    queryDataSet1.setQuery(new borland.sql.dataset.QueryDescriptor(database1,
"select * from actor", null, true, Load.ALL));
    queryDataSet1.setReadOnly(false);
    System.out.println("Editable: "+queryDataSet1.isEditable());
    database1.setConnection(new
borland.sql.dataset.ConnectionDescriptor("jdbc:solid://host:1111", "foo", "foo",
false, "solid.jdbc.SolidDriver"));
    jPanel1.setLayout(borderLayout1);
    this.add(jPanel1, BorderLayout.CENTER);
    jPanel1.add(jdbTable1, BorderLayout.CENTER);
    jPanel1.add(jdbNavToolBar1, BorderLayout.NORTH);
  }


--


tammy@synchronis.com


synchronis
2999 overland avenue suite 217
los angeles, ca 90064
www.synchronis.com
direct 310.837.8093
fax    310.837.8094
msg    310.649.1896
Technical Details
Message-ID: <366442D9.6EAF5203@synchronis.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,74c9f2aacacfc3ec,start
X-Google-Attributes: gid111d45,public
From: Tammy McKean <tammy@synchronis.com>
Subject: JdbTable not editable
Date: 1998/12/01
Message-ID: <366442D9.6EAF5203@synchronis.com>
X-Deja-AN: 417566811
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: synchronis
Mime-Version: 1.0
Reply-To: tammy@synchronis.com
Newsgroups: borland.public.jbuilder.java.swing