好像没有,不过有设置颜色和文件选择的,JDK1.4不知有没有,不过可以自己写一个,JBuilder上就有一个,可以参照一下。

解决方案 »

  1.   

    com.borland.dbswing.FontChooser fontChooser1 = new com.borland.dbswing.FontChooser();
    fontChooser1.showDialog()
      

  2.   

    com.borland.dbswing.FontChooser fontChooser1 = new FontChooser();
    void jMenuItem5_actionPerformed(ActionEvent e) {
      this.fontChooser1.setSelectedFont(this.content.getFont());
      if(this.fontChooser1.showDialog())
        this.content.setFont(this.fontChooser1.getSelectedFont());
      this.repaint();
      this.content.repaint();
    }
      

  3.   

    我在前边加了
    import com.borland.dbswing.*;
    可是jbuilder还是显示
    cannot acess class com.borland.dbswing.fontchooser
      

  4.   

    选择菜单 project -> project properties -> required libraries ->add
    增加 borland 下的dbswing
      

  5.   

    你找一下jbuilder7,lib目录下有没有dbswing.jar这个文件,没有,还是自己写一个吧,很简单的。