冰封你的字体选择器
this.add(up,BorderLayout.NORTH);
this.add(center,BorderLayout.CENTER);
this.add(bottom,BorderLayout.SOUTH);
jd=new JDialog(owner,title,true);
/*
jd.getContentPane().add(this,BorderLayout.CENTER);
*/
这里总是通不过,冰封能给看看么?
提示:Exception in thread "main" java.lang.IllegalArgumentException: adding a window to a container
at java.awt.Container.addImpl(Container.java:616)
at javax.swing.JRootPane.addImpl(JRootPane.java:778)
at java.awt.Container.add(Container.java:518)
at JFontChooser.initWindow(JFontChooser.java:145)
at JFontChooser.showDialog(JFontChooser.java:203)
at JFontChooser.main(JFontChooser.java:208)
也请大家帮忙