源代码:
public void jMenuItem1_actionPerformed(ActionEvent e) {
this.plafName="com.sun.java.swing.plaf.windows.windowsLookAndFeel" ;
try{
UIManager.setLookAndFeel(this.plafName ) ;
SwingUtilities.updateComponentTreeUI(this);
this.pack() ;
}catch(Exception err){
err.printStackTrace() ;
}
this.jTextField1 .setText(this.plafName );
}
public void jMenuItem1_actionPerformed(ActionEvent e) {
this.plafName="com.sun.java.swing.plaf.windows.windowsLookAndFeel" ;
try{
UIManager.setLookAndFeel(this.plafName ) ;
SwingUtilities.updateComponentTreeUI(this);
this.pack() ;
}catch(Exception err){
err.printStackTrace() ;
}
this.jTextField1 .setText(this.plafName );
}
解决方案 »
- TreeCellRenderer的问题
- 请教关于文件读取的问题
- ==难!难!难啊!!JAVA中如何用时间类处理这个问题?======
- 能把str做为表达式,将其值赋给i吗?
- 用zxing生成二维码的问题,求帮助
- Java新手的QQ群,欢迎大家加入
- 多类的dos运行!
- JBuilder6中编程中的奇怪问题,着急的问
- 请问布局管理器高手
- 请看我的代码,是一个用tdsDriver连接SQL Server的程序,为何出现:Error reading request connection reset
- 利用java实现队列
- 在使用nio的时候,为什么客户端关闭连接之后server在调用Selector的select方法的时候仍然会返回并且SelectionKey的isReadable方法返回true?
大小写问题