Application developed with Visual J++, Part 4.

 

The Book.java Form, after modification - Part 1
 

  1. The Book.java design
     Book



     

     



  2. Add the files .. 

    From the ...\VJ App\res folder copy the followihg files:

    1. The ingraphic1.gif  file  to the folder C:\TestVJ\Pic .
    2. The  LearnJava.ico file to the folder C:\TestVJ\Pic .

       
  3. Remove the control created by the Wizard ...
     
    One Label - labelTextData and one dataNavigator control - dataNavigator

     
  4. Existing controls created by the Wizard ...
    Five Edit controls, Four Labels, one Panel and one Button
    1. Existing, the Edit control - editBook,  Properties:
      .Edit control is a rectangular control in which the user can enter text
      backColor:
      name:
      Font:
      readOnly
      Size:
      text:
      Control
      editBook
      Ms Sans Sereif, Regular, size = 8
      true
      72, 20


    2. Existing, the Edit control - editBookTitle,  Properties:
      .Edit control is a rectangular control in which the user can enter text
      backColor:
      name:
      Font:
      readOnly:
      Size:
      text:
      Control
      editBookTitle
      Ms Sans Sereif, Regular, size = 8
      true
      136, 20


    3. Existing, the Edit control - editChapter,  Properties:
      .Edit control is a rectangular control in which the user can enter text
      backColor:
      name:
      Font:
      readOnly:
      Size:
      text:
      Control
      editChapter
      Ms Sans Sereif, Regular, size = 8
      true
      72, 20


    4. Existing, the Edit control - editVerse,  Properties:
      .Edit control is a rectangular control in which the user can enter text
      backColor:
      name:
      Font:
      readOnly:
      Size:
      text:
      Control
      editVerse
      Ms Sans Sereif, Regular, size = 8
      true
      136, 20


    5. Existing, the Edit control - editTextData,  Properties:
      .Edit control is a rectangular control in which the user can enter text
      backColor:
      name:
      Font:
      readOnly:
      ScrollBars:
      Size:
      text:
      Control
      editTextData
      Ms Sans Sereif, Regular, size = 8
      true
      Vertical
      312, 96


    6. Existing, the Label control - labelBook,  Properties:
       
      A Label object is a component for placing text in a container. A label displays a single line of read-only text. The text can be changed by the application, but a user cannot edit it directly.
      name:
      text:
      Size:
      labelbook
      Book
      48,15


    7. Existing, the Label control - labelBookTitle  Properties:
       
      A Label object is a component for placing text in a container. A label displays a single line of read-only text. The text can be changed by the application, but a user cannot edit it directly.
      name:
      text:
      Size:
      labelBookTitle
      BookTitle
      48,15


    8. Existing, the Label control - labelChapter,  Properties:
       
      A Label object is a component for placing text in a container. A label displays a single line of read-only text. The text can be changed by the application, but a user cannot edit it directly.
      name:
      text:
      Size:
      labelChapter
      Chapter
      48,15


    9. Existing, the Label control - labelVerse,  Properties:
       
      A Label object is a component for placing text in a container. A label displays a single line of read-only text. The text can be changed by the application, but a user cannot edit it directly.
      name:
      text:
      Size:
      labelVerse
      Verse
      48,15


    10. Existing, the Panel control - panel1,  Properties:
       
      A panel provides space in which an application can attach any other component, including other panels.
      name:
      size:
      panel1
      72, 30


    11. Existing, the Button control - btnClose,  Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      name:
      Location:
      Size:
      text:
      btnClose
      0, 0
      48, 30
      Close


  5. Add the following controls , from the Toolbox
    Two PictureBoxes, three groupBoxes, three labels, two panels, four Buttons and one tabControl
    1. Add the PictureBox control - PictureBox1,  Properties:
      A PictureBox control can display a graphic from a bitmap, icon, or metafile, as well as enhanced metafile, JPEG, or GIF files. It clips the graphic if the control isn't large enough to display the entire image.
      image:
      name:
      Location:
      Size:
      none
      PictureBox1
      72, 24
      184, 200

      Note
      :The PictureBox1
      displays the file forum.gif - (stored in the folder C:\TestVJ\ Pic).

    2. Add the PictureBox control - PictureBox2,  Properties:
      A PictureBox control can display a graphic from a bitmap, icon, or metafile, as well as enhanced metafile, JPEG, or GIF files. It clips the graphic if the control isn't large enough to display the entire image.
      image:
      name:
      Location:
      Size:
      none
      PictureBox2
      416, 24
      224, 200

      Note
      :The PictureBox2
      displays the file Christus-th.gif - (stored in the folder C:\TestVJ\ Pic.

    3. Add the Label control - label2,  Properties:
      A Label object is a component for placing text in a container. A label displays a single line of read-only text. The text can be changed by the application, but a user cannot edit it directly.
      Font:
      name:
      Location:
      Size:
      text:
      textAlign:
      Times New roman, Bold, Underline, size = 10
      label2
      8, 240
      136, 16
      "Record data boxes ..."
      left


    4. Add the Label control - label3,  Properties:
      A Label object is a component for placing text in a container. A label displays a single line of read-only text. The text can be changed by the application, but a user cannot edit it directly.
      Font:
      name:
      Location:
      Size:
      text:

      textAlign:
      Times New roman, Bold, Underline, size = 10
      label3
      360, 248
      100, 16
      "Search ..."
      left


    5. Add,the Panel control - panel2,  Properties:
       
      A panel provides space in which an application can attach any other component, including other panels.
      name:
      size:
      panel2


    6. Add the Label control - lbposition,  Properties:
      A Label object is a component for placing text in a container. A label displays a single line of read-only text. The text can be changed by the application, but a user cannot edit it directly.
      Font:
      name:
      Location:
      Size:
      text:
      Ms Sans Serif
      lbposition
      8, 8
      56, 16
      Record

       

    7. Add the Button control - btnFirst,  Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      name:
      Location:
      Size:
      text:
      btnfirst
      72, 0
      40, 30
      First


    8. Add the Button control - btnPrevious,  Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      name:
      Location:
      Size:
      text:
      btnPrevious
      120, 0
      40, 30
      Previous

       

    9. Add the Button control - btnNext,  Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      name:
      Location:
      Size:
      text:
      btnNext
      160, 0
      40, 30
      Next

       

    10. Add the Button control - btmLast,  Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      name:
      Location:
      Size:
      text:
      btnLast
      200, 0
      40, 30
      Last

       

    11. Add the groupBox control - groupBox1,  Properties:
      GroupBox control is a rectangle that contains other controls.
      name:
      Location:
      Size:
      groupBox1
      328, -8
      16, 496


    12. Add the tabControl control - tabControl1,  Properties:
      The tabControl manages a list of tabs for pages to be stored.
      name:
      Location:
      Size:
      **** Page 1 ****
      name:
      Location:
      Size:
      Text:
      **** Page 2 ****
      name:
      Location:
      Size:
      Text:
      tabControl1
      352 272
      320, 208
      *****************/******
      Page1
      4, 25
      312, 179
      "By Word"
      *****************/******
      Page2
      4, 25
      312, 179
      "By Address"


    13. Add the groupBox  control - groupBox3,  Properties:
      GroupBox control is a rectangle that contains other controls.
      name:
      Size:
      groupBox3
      312, 180


    14. Add the groupBox control - groupBox4,  Properties:
      GroupBox control is a rectangle that contains other controls.
      name:
      Size:
      groupBox4
      312, 180


  6. The Book.java  after modification - continued,  (Next Page)

Previous
  Home
4
 
Next