使用javax.swing.JButton组件new出来的button不用设置就已经是不突起的了。如果要设置它突起的话,用button1.setBorder(edge)

解决方案 »

  1.   

    <INPUT TYPE="button" VALUE="关闭窗口" onClick="javascript:window.close()" style="background-color:#E4EAFC; BORDER-BOTTOM: #0A174E 1px solid; BORDER-LEFT: #FBFCFF 1px solid; BORDER-RIGHT: #0A174E 1px solid; BORDER-TOP: #FBFCFF 1px solid; height:18px; ">        
    修改上面的属性就可以了。
      

  2.   

    我编译的时候总是出错:variable edge not found in class ......
    我用的是jdk1.4
      

  3.   

    wjmmml(笑着悲伤) 的方法真是有新意啊!
      

  4.   

    you can extends the JButton and then write the following codes,
    (just for reference, I can guarantee accuracy : )this.setBorderPainted(false);if you have any further problem, please refer this post to me by message