<!-- how inline JDisplay HTML looks --> <pre class="java"><span class="op">...</span> <span class="jclass">Border </span><span class="jvardef">b1 </span><span class="op">= </span> <span class="jclass">BorderFactory</span><span class="op">.</span><span class="jmethod">createLineBorder</span><span class="fence1">(</span> <span class="jclass">Color</span><span class="op">.</span><span class="jvar">black </span><span class="fence1">)</span><span class="semicolon">;</span> <span class="jclass">Border </span><span class="jvardef">b2 </span><span class="op">= </span> <span class="jclass">BorderFactory</span><span class="op">.</span><span class="jmethod">createEtchedBorder</span><span class="fence1">(</span> <span class="jclass">EtchedBorder</span><span class="op">.</span><span class="jconstant">LOWERED </span><span class="fence1"> )</span><span class="semicolon">;</span> <span class="jclass">Border </span><span class="jvardef">b3 </span><span class="op">= </span> <span class="k">new </span><span class="jclassdef">BevelBorder </span><span class="fence1">(</span> <span class="jclass">BevelBorder</span><span class="op">.</span> <span class="jconstant">LOWERED</span><span class="op">, </span><span class="jclass">Color</span><span class="op">.</span> <span class="jvar">red </span><span class="fence1">)</span><span class="semicolon">;</span> <span class="jclass">JPanel </span><span class="jvardef">panel </span><span class="op">= </span> <span class="k">new </span><span class="jclassdef">JPanel</span><span class="fence1">(</span><span class="fence1">)</span><span class="semicolon">;</span> <span class="jvar">panel</span><span class="op">.</span><span class="jmethod">setBorder</span><span class="fence1"> (</span> <span class="jvar">b2 </span><span class="fence1">)</span><span class="semicolon">;</span></pre> <!-- vvvvv T R O U B L E B E L O W vvvvv --> <!-- /generated --> <!-- ^^^^^ T R O U B L E A B O V E ^^^^^ -->