如弄个播放器,要在按钮上添加播放.停止按钮图片,请问怎么添~~~~~~~

解决方案 »

  1.   

    JButton(Icon icon)创建带图标的按钮;
    JButton(String text,Icon icon)创建带文本和图片的按钮
      

  2.   


    kingdom_seu() =================
    他的方法很好了。
      

  3.   

    .imgButton{
      border-style:none;
      width:55px;
      height:19px;
      background-color:transparent;
      text-align: center;
      vertical-align: bottom;
      background-image: url('../images/button.gif'); //url 改成一个背景图片
      background-repeat: no-repeat; background-position: center;
      cursor:pointer;
      }将他保存成.css的文件
    然后加到按钮上,如:<input class="imgButton" type="button" name="button1" />
      

  4.   

    to: 楼上的“小鸟想飞”楼主做的是播放器,应该不是 Web 应用。