Adv Java - [JDBC: Example on Applet]

♠ Posted by Unknown in

JDBC Connection on Applet

This program is related to JDBC Connectivity on Applet. Program is written into directly Notepad Editor. So, Designing of program is basically shows how to use Layout Manager properly to fit the controls on desired place.

Adv Java - [JDBC: Resultset Types]

♠ Posted by Unknown in

JDBC Resultsets

Before JDBC 2.1, a ResultSet object created by executing a statement was, by default, forward-only scrollable. That is, we could traversse through the resultset using the next() method only. next() returns false when the last record is reached, and no more details can then be retrieved.

Adv Java - [JDBC: Prepared Statement]

♠ Posted by Unknown in

JDBC Prepared Statement

JDBC prepared statements address the following requirements:
  1. Creating parametrerized statements such that data for parameters can be substituted dynamically.
  1. Creating statements involving data values that cannot always be represented as character strings.
  1. Pre-compiling SQL statements to avoid repeated compiling of the same SQL statements.

Adv Java - [JDBC: Database Operations]

♠ Posted by Unknown in

JDBC Database Operations


Write an application program to perform all the database driven operations such as
  Insertion, Deletion, Update and Selection using the concept of Statement.

Adv Java - [JDBC: SQL Classes]

♠ Posted by Unknown in

JDBC SQL Classes


The JDBC classes and interfaces remain in two Java packages : java.sql and javax.sql:

  1. java.sql :- This package contains classes and interfaces designed with traditional client-server architecture in mind. Its functionality is focused primarily on basic database programming services such as creating connections, executing statements and prepared statements, and running batch queries. Advanced functions such as batch updates, scrollable resultsets, transaction isolation, and SQL data types are also available.

Adv Java - [JDBC: Introduction]

♠ Posted by Unknown in

JDBC [Java DataBase Connectivity]


Introduction:
It has been estimated that half of all software development involves client/server operations. A great promise of Java has been the ability to build platform-independent client/server database applications. This has come to fruition with Java DataBase Conectivity (JDBC).

Adv Java [JAR File Creation]

♠ Posted by Unknown in

What is JAR files?

A JAR file allows you to efficiently deploy a set of classes and their associated resource.  For example, a developer may build a multimedia application that uses various sound and image files. A set of Beans can control how and when this information is presented. All these pieces can be placed into one JAR files.

Adv Java - [Swing: Slider/Progressbar]

♠ Posted by Unknown in

Sliders & Progress bars


A slider allows the user to input data by moving a point back and forth, which is intuitive in some situations. A progress bar displays data in a relative fashion from “full” to “empty” so the user gets a perspective.

Adv Java - [Swing: File Dialogs]

♠ Posted by Unknown in

File Dialogs


Some operating systems have a number of special built-in dialog boxes to handle the selection of things such as fonts, colors, printer, and the like. Virtually all graphical operating systems support the opening and saving of files, however and so Java’s JFileChooser encapsulates these for easy use.

Adv Java - [Swing: JDialog Class]

♠ Posted by Unknown in

JDialog Class


A dialog box is a window that pops up out of another window. Dialog boxes are heavily used in windowed programming environments, but less frequently used in applets.


Adv Java - [Swing: Menu]

♠ Posted by Unknown in

Java Swing Menus


Each component capable of holding a menu, including JApplet, JFrame, JDialog, and their descendants, has a setJMenuBar() method that accepts a JMenuBar (you can have only one JMenuBar on a particular component). you add JMenu to the JMenuBar,  and JMenuItems to the JMenu. Each JMenuItem can have an ActionListener attached to it, to be fired when that menu item is selected.

Adv Java - [Swing: JOptionPane Class]

♠ Posted by Unknown in

JOptionPane Class


Windowing environments commonly contain a standard set of message boxes that allow you to quickly post information to the used or to capture information form the user. In Swing, these message boxes are contained in JOptionPane. You have many different possibilities, but the ones you’ll most commonly use are probably the message dialog and confirmation dialog, invoked using the static JOptionPane.showMessageDialog() and JOptionPane.showConfirmDialog().

Adv Java - [Swing: JList Class]

♠ Posted by Unknown in

JList Class


List boxes are significantly different from JComboBox boxes, and not just in appearance. While a JcomboBox box drops down when you activate it, a JList occupies some fixed number of lines on a screen all the time and doesn’t change. If you want to see the items in a list, you simply call getSelectedValues(), which produces an array of String of the items that have been selected.

Adv Java - [Swing: JTree Class]

♠ Posted by Unknown in

JTree Class


A tree is a component that presents a hierarchical view of data. A user has the ability to expand or collapse individual subtrees in this display. Trees are implemented in Swing by the JTree class, which extends JComponent.

Adv Java - [Swing: JScrollPane Class]

♠ Posted by Unknown in

JScrollPane Class


A scroll panes is a component that presents a rectangular area in which a component may be viewed. Horizontal and/or vertical scroll bars may be provided if necessary. Scroll panes are implemented in Swing by the JScrollPane class, which extends JComponent.

Adv Java - [Swing: JTabbedPane Class]

♠ Posted by Unknown in

JTabbedPane Class


A tabbed panes is a component that appears as a group of folders in a file cabinet. Each folder has a title. When a user selects a folder, its contents become visible. Only one of the folders may be selected at a time. Tabbed panes are commonly used for setting configuration options.

Adv Java - [Swing: JComboBox Class]

♠ Posted by Unknown in

JComboBox Class


Swing provides a combo box (a combination of a text field and a drop-down list) through the JComboBox class, which extends JComponent. A combo box normally displays one entry. However, it can also display a drop-down list that allows a user to select a different entry. You can also type your selection into the text field.

Adv Java - [Swing: JCheckbox Class]

♠ Posted by Unknown in

JCheckbox class


The JCheckBox class, which provides the functionality of a check box, is a concrete implementation of AbstractButton.