Kajol,
Bevels are pretty easy... all that they really are are rectangles that are drawn using two colors so they have that 3D edge look. All you have to do to draw a beveled edge in
Java ( other than use a beveled border in Swing ) is to draw the rectangle using lines ( i.e. g.drawLine( x1, y1, x2, y2 ) ). For this you need two points ( the upper left and lower right corners of the rectangle ) and the two colors you want the bevel to be ( the light edge and the dark edge ).
Here's a short function to draw a bevel...
HTH,
-Nate
P.S. - Madhav... just look around the edges of the buttons on this page. Those are bevels... the little 3D look that the edges of the buttons have.
[This message has been edited by Nathan Pruett (edited March 28, 2001).]