是For windows.
thks.

解决方案 »

  1.   

       你安装一个最新版本的eclipse不就可以了吗?那样就不需要安装什么swing控件啊!说实在话,eclipse那么老的版本我还真没有用过,或者你如果只是做swing的GUI的话,安装好了JDK,并设置好了环境变量,就用记事本都可以做的
      

  2.   

    Java里没有所谓的Swing控件。都是类和接口。
    在Eclipse里新建一个Java Project,在里面新建一个FrameDemo类,输入以下内容:import java.awt.*;
    import javax.swing.*;/* FrameDemo.java requires no other files. */
    public class FrameDemo {
        /**
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
         */
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("FrameDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        JLabel emptyLabel = new JLabel("你好!Swing!");
            emptyLabel.setPreferredSize(new Dimension(175, 100));
            frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);        //Display the window.
            frame.pack();
            frame.setVisible(true);
        }    public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
                }
            });
        }
    }然后运行之,第一次运行时让你选择运行类型,选Java Application。然后你就可以看到GUI了,和Windows一样。