当把一个程序做好之后 界面真的很丑 
应该如何去美化界面呢?
要重哪些方面入手呢?请求个位能讨论讨论吗?
在下 谢谢 !

解决方案 »

  1.   

    下载一个外观包。。然后
     UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
    诸如此类
    以这个外观为例。如果你想连标题栏也更改掉    public static void setLookAndFeel(JFrame frame, String LookAndFeel){
        try{
                    //改变全局设置
         Class lafClass=Class.forName(LookAndFeel);
         LookAndFeel laf=(LookAndFeel)(lafClass.newInstance());
         setDefaultLookAndFeelDecorated(laf.getSupportsWindowDecorations());
            //JDialog.setDefaultLookAndFeelDecorated(laf.getSupportsWindowDecorations());
         UIManager.setLookAndFeel(laf);
         LiquidLookAndFeel.setLiquidDecorations(true, "mac");
            //改变当前frame的窗口,边框,标题
          //frame.dispose();
          //frame.setUndecorated(laf.getSupportsWindowDecorations());
          //frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
          //SwingUtilities.updateComponentTreeUI(frame);
        }catch(Exception e){
            System.out.println("ERROR: " + e);
        }
    }    
      

  2.   

    swing 啊。
    搞几个图片。
    合理布一下局应该会好看点把
      

  3.   

    说实话表用java做界面,友情提示。
      

  4.   

    java在界面方面还真是没有优势,而且是比较差的
    觉得Delphi或PB等图形化工具来做界面更合适。
      

  5.   

    前两天才在哪个帖子里看到swing高手做出的界面
    从此偶再也不说swing做出的东东不好看了~
      

  6.   

    网上有很多SWING的皮肤,把jar包下下来就可以直接用了,界面很漂亮的
      

  7.   

    java   做界面?我想杀人了 我宁愿用vb
      

  8.   

    下载一个外观包。。然后 
     UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel"); 
    诸如此类 
    以这个外观为例。如果你想连标题栏也更改掉     public static void setLookAndFeel(JFrame frame, String LookAndFeel){ 
        try{ 
                    //改变全局设置 
         Class lafClass=Class.forName(LookAndFeel); 
         LookAndFeel laf=(LookAndFeel)(lafClass.newInstance()); 
         setDefaultLookAndFeelDecorated(laf.getSupportsWindowDecorations()); 
            //JDialog.setDefaultLookAndFeelDecorated(laf.getSupportsWindowDecorations()); 
         UIManager.setLookAndFeel(laf); 
         LiquidLookAndFeel.setLiquidDecorations(true, "mac"); 
            //改变当前frame的窗口,边框,标题 
          //frame.dispose(); 
          //frame.setUndecorated(laf.getSupportsWindowDecorations()); 
          //frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME); 
          //SwingUtilities.updateComponentTreeUI(frame); 
        }catch(Exception e){ 
            System.out.println("ERROR: " + e); 
        } 

    不错的!
      

  9.   

    看看这里就知道什么是真正的Swing了http://weblogs.java.net/blog/kirillcool/archive/community_javadesktop/index.html
    http://blog.sina.com.cn/swingjava