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:
- Set up your development shell as described in Package examples.jdbc.informix4.
- 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.
- Compile this example by executing the following command in your development shell:
$ javac -d c:/weblogic/informix4/classes SelectApplet.java
- 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.
-
SelectApplet()
-
-
init()
-
-
paint(Graphics)
- A method to display the message in the applet.
SelectApplet
public SelectApplet()
init
public void init()
paint
public void paint(Graphics graphics)
- A method to display the message in the applet.
All Examples This Package