JB_APP_KJV application, Modify Main_class_AboutBox.java
 
 
 
 
Return


Main_class_AboutBox.java, design and source (codes) ...

          




  Design  and Structure

 

Design   Structure
 


  
 
 Classes or Libraries used ...

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import com.borland.jbcl.layout.*;
import com.borland.dbswing.*;
import com.borland.dx.sql.dataset.*;


     

 Add, modify or delete   components ...
 

From Compenet  palette,  add the followig  components ...
   
 
 Delete ...
          label2, label3, label4   

 

  Add and modify ...
 
  1. Modify JPanel   component  - panel1, Proprietes
     
      Old New
    name:
    layout:
    panel1
    BorderLayout
    panel1
    XYLayout

                This  component includes the following  components :    insetsPanel1, panel2

 

 
  1. Modify JPanel   component  - insetsPanel1, Proprietes
     
      Old New
    name:
    layout:
    insetsPanel1
    FlowLayout
    insetsPanel1
    XYLayout


    This  component includes  the following  components :    Panel3,  label3, button1
     

    1. Add JPanel   component  - Panel3  Proprietes
       
      name:
      layout:
      panel3
      (default Layout)

       

    2. Add JLabel   component  - label3, Proprietes
       
      name:
      text:
       label3
      "
      no Copyright,  2006"

       

    3. Modify JButton  component  - button1, Proprietes
       
        Old New
      name:
      text:
      button1
      "Ok"
      button1
      "Ok"


      Event of 
      button1 :          actionPerformed
       


     

  2. Modify JPanel   component  - panel2, Proprietes
     
      Old New
    name:
    layout:
    panel2
    BorderLayout
    panel2
    XYLayout


    This  component includes the following  components :    insetsPanel2, insetsPanel3
     

    1. Modify JPanel   component  - insetsPanel2, Proprietes
       
        Old New
      name:
      layout:
      insetsPanel2
      FlowLayout
      insetsPanel2
      XYLayout

      This  component includes the following  components :     imageLabel
       

      1. Modify JLabel   component  - imageLabel, Proprietes
         
          Old New
        name:
        Icon:
        imageLabel
        Image1
        imageLabel
        Image1

        old Image1 = "about.png"
        new Image1=
        "diam1.gif"
         


       

    2. Modify JPanel   component  - insetsPanel3, Proprietes
       
        Old New
      name:
      layout:
      insetsPanel3
      GridLayout
      insetsPanel3
      XYLayout

      This  component includes the following  components :    label1,  jTextPane1,  jTextPane2
       

      1. Add JLabel   component  - label1, Proprietes
         
        name:
        text:
        label1
        "JB_KJV database Application, Info"

         

      2. Add JTextPane  component  -  jTextPane1, Proprietes
         
        name:  jTextPane1

         

      3. Add JTextPane  component  -  jTextPane2, Proprietes
         
        name: jTextPane2

         

       


     

Add database  component ...

From Compenet  palette,  select  Page DataExpress,  select and add
com.borland.dx.sql.dataset.database and com.borland.dx.sql.dataset.queryDataSet  components ...
 

  1. Add com.borland.dx.sql.dataset.database  component - database1, Proprietes
    The Database component is a required element of any application accessing data stored on a SQL server. It encapsulates a database connection through JDBC to the SQL server and also provides lightweight transaction support
     
    Name :
    Connection :
    database1
    jdbc.odbc.KJV2002A


    How create connection? ...

    From the Proprietes, click Connection, the Connection dialog  box appears ..
                Connection
    dialog  box

               In the Driver combobox, choose or type  sun jdbc.odbc.JdbcOdbcDriver
              
    In the URL box, click the Button, the ODBC Source dialog  box appears .. from this dialog box select
               jdbc.odbc.KJV2002A and click Ok. This selected appears in the URL box (jdbc.odbc.KJV2002A).
             
    And then click Ok

     

  2. Add com.borland.dx.sql.dataset.queryDataSet   component - QueryDataSet 1, Proprietes
    The QueryDataSet class is an extension of its superclass (StorageDataSet StorageDataSet) and provides functionality to run a query statement (with or without parameters) against a table in a SQL database
     
    Name:
    query:

    TableName
    QueryDataSet 1
    database1, "SELECT BibleTable.ID,BibleTable ...
    Bibletable

    How create query? ...

    From the Proprietes, click query, the Query dialog  box appears ..
                Query
    dialog  box

               In the database combobox, choose or type  database1
              
    Click Sql  Builder to create the Sql statement using the  Sql  Builder  dialog  box  ...  Sql statement includes

       
                 "SELECT BibleTable.ID,BibleTable.TextData FROM C:\\JB_APP_KJV\\pic\\KJV2002\".BibleTable    WHERE   BibleTable.Chapter= '000' ORDER BY BibleTable.ID"
             
    And then click Ok 

 

 

 

 The source (codes)  corresponding ...


 

 

 
  Home
2.2
 
Return