我想使用Html和CSS代码自定义JMenuBar(可在Swing包中使用)。我有一个小疑问是否可能。如果可能我怎么做上述。谢谢提前。
示例HTML代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html" />
<!-- Begin Vista-Buttons.com HEAD SECTION id=vbUL_cpjbq-->
<style type="text/css">A#vbUL_cpjbqa{display:none}</style>
<!-- End Vista-Buttons.com HEAD SECTION -->
</head>
<body>
<!-- Begin Vista-Buttons.com BODY SECTION id=vbUL_cpjbq-->
<table id="vista-buttons_com_idcpjbq" width="0" cellpadding="0" cellspacing="0" border="0"><tr></tr></table><script type="text/javascript"> var vbImgPath="menu-files/"</script>
<script type="text/javascript" src="menu-files/sccpjbq.js"></script>
<a id="vbUL_cpjbqa" href="http://vista-buttons.com">Right Button Menu by Vista- Buttons.com v5.7</a>
<!-- End Vista-Buttons.com BODY SECTION -->
</body>
</html>