All Examples  This Package

Class examples.jdbc.informix4.SelectApplet

examples.jdbc.informix4.SelectApplet

public class SelectApplet
This applet opens a connection to a database and executes the simple SQL statement 'select count(*) from systables'.

If this test fails, make sure that SocketApplet and ConnectionApplet work before you proceed.

Using the Java utility Appletviewer allows the applet to run without security restrictions.

To set up this example:

  1. Set up your development shell as described in Package examples.jdbc.informix4.

  2. Change connection parameters to correspond to your Informix Dynamic Server configuration. If you need more help, check the section on connecting to a database in the Developers Guide, Using WebLogic jDriver for Informix.

  3. Compile this example by executing the following command in your development shell:

    $ javac -d c:/weblogic/informix4/classes SelectApplet.java

  4. Run this example by executing the following command in your development shell:

    $ appletviewer SelectApplet.html

Author:
Copyright (c) 1997-2000 by BEA Systems, Inc. All Rights Reserved.

Constructor Index

 o SelectApplet()

Method Index

 o init()
 o paint(Graphics)
A method to display the message in the applet.

Constructors

 o SelectApplet
 public SelectApplet()

Methods

 o init
 public void init()
 o paint
 public void paint(Graphics graphics)
A method to display the message in the applet.


All Examples  This Package