你说的是不是java的look and feel
如果是,java的look and feel指的是awt或swing的显示风格,有三种:跨平台的统一的风格,特定操作系统的风格,用户自定义的风格thinking in java中的一个例子
LookAndFeel.javaimport javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import com.bruceeckel.swing.*;
public class LookAndFeel extends JFrame {
    String[] choices = { "eeny", "meeny", "minie", "moe", "toe", "you" };    Component[] samples = {
new JButton("JButton"), new JTextField("JTextField"),
new JLabel("JLabel"), new JCheckBox("JCheckBox"),
new JRadioButton("Radio"), new JComboBox(choices),
new JList(choices),
    };    public LookAndFeel() {
super("Look And Feel");
Container cp = getContentPane();
cp.setLayout(new FlowLayout());
for (int i = 0; i < samples.length; i++) {
    cp.add(samples[i]);
}
    }    private static void usageError() {
System.out.println("Usage : LookAndFeel [ cross | system | motif ]");
System.exit(1);
    }    public static void main(String[] args) {
if (args.length == 0) {
    usageError();
}
if (args[0].equals("cross")) {
    try {
UIManager.setLookAndFeel(
    UIManager.getCrossPlatformLookAndFeelClassName());
    } catch (Exception e) {
e.printStackTrace(System.err);
    }
} else if (args[0].equals("system")) {
    try {
UIManager.setLookAndFeel(
    UIManager.getSystemLookAndFeelClassName());
    } catch (Exception e) {
e.printStackTrace(System.err);
    }
} else if (args[0].equals("motif")) {
    try {
UIManager.setLookAndFeel("com.sun.java." +
    "swing.plaf.motif.MotifLookAndFeel");
    } catch (Exception e) {
e.printStackTrace(System.err);
    }
} else {
    usageError();
} Console.run(new LookAndFeel(), 300, 200);
    }
}
相关类的用法请参考j2sdk api documentation(从java.sun.com下载)

解决方案 »

  1.   

    com.bruceeckel.swing.*;
    楼上的朋友请把上面需要的类帖出来把,运行不了.look and feel,应该留意不过搂主说的应该是delphi里那种,可以随意定制窗体,包括形状,色泽,质感,透明度等.这个问题我也想过,可没再往下想,肯定不会有的,一个托盘实现起来都那么难.万一楼主真能找到,我愿意替你出这些分.java skin,如果有,真太好了
      

  2.   

    是look and feel设计?去看看Sun的Java series的书,其中有一本好像是专门讲这个的。
      

  3.   

    这个问题,你应该去看一个专门介绍这累东西的资料,最好去SUN的网站去看一看,
    其实也没什么难的,不过想做的话有点麻烦,比如说你要实现一 XP的界面的话,
    你要实现所有的接口,这可不是一个小的工作量啊,最好去找一下网络上的资料
    有完整的介绍这方面的程序
    我的QQ176138541
    我可以帮你~~~~~~~~~~~~
      

  4.   

    到www.incros.com去看看吧,那有一个JAVA设计外观的小软件包
      

  5.   

    呵呵,忘了class Console了,在这里
    com/bruceeckel/swing/Console.java
    // Tool for running Swing demos from the
    // console, both applets and JFrames.
    package com.bruceeckel.swing;
    import javax.swing.*;
    import java.awt.event.*;
    public class Console {
        // Create a title string from the class name :
        public static String title(Object o) {
    String t = o.getClass().toString(); // Remove the word "class" :
    if (t.indexOf("class") != -1) {
        t = t.substring(6);
    }
    return t;
        }    public static void setupClosing(JFrame frame) {
    // The JDK 1.2 Solution as an 
    // anonymous inner class :        frame.addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
    System.exit(0);
        }
    }); // The improved solution in JDK 1.3 :
    // frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
        }
        
        public static void run(JFrame frame, int width, int height) {
    setupClosing(frame);
    frame.setSize(width, height);
    frame.setVisible(true);
        }    public static void run(JApplet applet, int width, int height) {
    JFrame frame = new JFrame(title(applet));
    setupClosing(frame);
    frame.getContentPane().add(applet);
    frame.setSize(width, height);
    applet.init();
    applet.start();
    frame.setVisible(true);
        }    public static void run(JPanel panel, int width, int height) {
    JFrame frame = new JFrame(title(panel));
    setupClosing(frame);
    frame.getContentPane().add(panel);
    frame.setSize(width, height);
    frame.setVisible(true);
        }
    }