It would be difficult to replicate all the functionality of the Borders provided by Swing, however, if you only want to implement a few types of Borders it is (relatively) easy, though a bit complicated, since you have to build the specialized components yourself ( basically, you would have to extend Panel to draw the border and hold your object in the center )... could you specify what kind of border you want?
-Nate
P.S. - I notice that there are
alot of posts on here about how to implement Swing-like functionality in AWT components. This is understandable, since Swing is not useable in unmodified browsers... However, what I do not understand is the people who always have the quick answer, "You cannot do that in AWT... use SWING!" Guess what... anything that can be done in Swing can be done in AWT, because Swing is based on the AWT... Sure, it would be easier to just use Swing... but if you only need a small part of the functionality of Swing, why include all the Swing libraries in a huge jar file for your
applet or force your users to download the Java plug-in? I personally can't wait until Swing is usable "out of the box" in browsers, but until then the best solution is probably custom AWT components... and you can develop any component or functionality that exists in Swing ( or even ones that do not! *Gasp!* Creative potential! What an underdeveloped commodity! ) in the AWT.