  We study numerically the features of the resonant peak of one-dimensional
(1-D) dielectric cavities in a two-dimensional (2-D) hexagonal lattice. We use
both the transfer matrix method and the finite difference time-domain (FDTD)
method to calculate the transmission coefficient. We compare the two methods
and discuss their results for the transmission and quality factor Q of the
resonant peak. We also examine the dependence of Q on absorption and losses,
the thickness of the sample and the lateral width of the cavity. The Q- factor
dependence on the width of the source in the FDTD calculations is also given.
