十万火急求救,jdbtable中的乱码问题? 这个首先你的操作系统要支持相应的中文字符集,然后你程序编译时采用gbk编码。(最重要的是系统支持) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 能不能设置?如何在程序里写?由于我写JAVA的程序用JDK写,对JBUILDER 里的控件不熟,在JDK中这种乱码现象可以由一个STRING的方法解决,但JDBTABLE中就不会设置了. 试试这个static void chinese() { Font font = new Font("宋体",Font.PLAIN,12); UIManager.put("Button.font",font); UIManager.put("ToggleButton.font",font); UIManager.put("RadioButton.font",font); UIManager.put("CheckBox.font",font); UIManager.put("ColorChooser.font",font); UIManager.put("ToggleButton.font",font); UIManager.put("ComboBox.font",font); UIManager.put("ComboBoxItem.font",font); UIManager.put("InternalFrame.titleFont",font); UIManager.put("Label.font",font); UIManager.put("List.font",font); UIManager.put("MenuBar.font",font); UIManager.put("Menu.font",font); UIManager.put("MenuItem.font",font); UIManager.put("RadioButtonMenuItem.font",font); UIManager.put("CheckBoxMenuItem.font",font); UIManager.put("PopupMenu.font",font); UIManager.put("OptionPane.font",font); UIManager.put("Panel.font",font); UIManager.put("ProgressBar.font",font); UIManager.put("ScrollPane.font",font); UIManager.put("Viewport",font); UIManager.put("TabbedPane.font",font); UIManager.put("TableHeader.font",font); UIManager.put("TextField.font",font); UIManager.put("PasswordFiled.font",font); UIManager.put("TextArea.font",font); UIManager.put("TextPane.font",font); UIManager.put("EditorPane.font",font); UIManager.put("TitledBorder.font",font); UIManager.put("ToolBar.font",font); UIManager.put("ToolTip.font",font); UIManager.put("Tree.font",font); UIManager.put("dbTable.font",font) }将上面的函数加到你的application1的UIManager后面 jdbTable1.setFont(new java.awt.Font("Serif", 0, 12));就可以了 一个密码验证问题 猜数游戏 关于一些扩展类的配置问题 请教如何在wsad5(jdk1.3)中使用LinkedHashMap 高手帮个忙,谢谢 数据库问题 取绝对值的问题:double abs(x-y)>0.5 系统提示我method abs(double) not found 请教java处理大数据问题 求救!!关于帮助文件的制作? 赋值给lable中的字串,如何换行? 使用JB数据库组件,列乱码问题. applet取参数问题?明明有值,为什么还有NullPointerException?请大虾们帮忙看看!
static void chinese()
{
Font font = new Font("宋体",Font.PLAIN,12);
UIManager.put("Button.font",font);
UIManager.put("ToggleButton.font",font);
UIManager.put("RadioButton.font",font);
UIManager.put("CheckBox.font",font);
UIManager.put("ColorChooser.font",font);
UIManager.put("ToggleButton.font",font);
UIManager.put("ComboBox.font",font);
UIManager.put("ComboBoxItem.font",font);
UIManager.put("InternalFrame.titleFont",font);
UIManager.put("Label.font",font);
UIManager.put("List.font",font);
UIManager.put("MenuBar.font",font);
UIManager.put("Menu.font",font);
UIManager.put("MenuItem.font",font);
UIManager.put("RadioButtonMenuItem.font",font);
UIManager.put("CheckBoxMenuItem.font",font);
UIManager.put("PopupMenu.font",font);
UIManager.put("OptionPane.font",font);
UIManager.put("Panel.font",font);
UIManager.put("ProgressBar.font",font);
UIManager.put("ScrollPane.font",font);
UIManager.put("Viewport",font);
UIManager.put("TabbedPane.font",font);
UIManager.put("TableHeader.font",font);
UIManager.put("TextField.font",font);
UIManager.put("PasswordFiled.font",font);
UIManager.put("TextArea.font",font);
UIManager.put("TextPane.font",font);
UIManager.put("EditorPane.font",font);
UIManager.put("TitledBorder.font",font);
UIManager.put("ToolBar.font",font);
UIManager.put("ToolTip.font",font);
UIManager.put("Tree.font",font);
UIManager.put("dbTable.font",font)
}将上面的函数加到你的application1的UIManager后面
就可以了