哪位可以介绍一下UIManager类是做什么的 我一般是用它来做java界面风格转化,比如用windows风格来显示java的GUI程序。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 同楼上的。 private void jMenuItemUI_actionPerformed(ActionEvent e) { String strUI = null; if(e.getSource() == jMenuItemUIMetal) { strUI = "javax.swing.plaf.metal.MetalLookAndFeel"; } else if(e.getSource() == jMenuItemUIMotif) { strUI = "com.sun.java.swing.plaf.motif.MotifLookAndFeel"; } else if(e.getSource() == jMenuItemUIWindows) { strUI = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; } else return; try { UIManager.setLookAndFeel(strUI); SwingUtilities.updateComponentTreeUI(this); } catch(Exception e1) { e1.printStackTrace(); } } 用swing或awt实现查询智能提示的组件 外部jar 打包jar 怎么自动添加文件名 内部类实现接口疑问!帮忙分析一小段代码 问个关于接口的问题 在线等,学习问题 紧急求助在网页中如何显示用java编写的applet 请问现在企业一般性用什么java编译器???? 请教个问题。在线等待 。。。。。 一个.class文件内容如何组织安排? (JMF) how to adjust the capturing volume(microphone)? java plug-in 1.3.1是什么东东?如何用?
{
String strUI = null;
if(e.getSource() == jMenuItemUIMetal)
{
strUI = "javax.swing.plaf.metal.MetalLookAndFeel";
}
else if(e.getSource() == jMenuItemUIMotif)
{
strUI = "com.sun.java.swing.plaf.motif.MotifLookAndFeel";
}
else if(e.getSource() == jMenuItemUIWindows)
{
strUI = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
}
else return;
try
{
UIManager.setLookAndFeel(strUI);
SwingUtilities.updateComponentTreeUI(this);
}
catch(Exception e1)
{
e1.printStackTrace();
} }