请教下大家,swing开发桌面应用程序都用什么工具啊? 是手写swing还是借助插件开发?指点下小弟啊 谢谢

解决方案 »

  1.   

    eclipse加插件 我用着一个叫visual editor 
      

  2.   

    开发桌面应用时都是用GUI插件来完成么?没有手写的?我现在打算写一个小系统,使用jframe+jinternalframe  但是jinternalframe出来的窗口都不是在前端显示,我设置了toFront()也没有用,还有就是swing中的布局,里面的组件你们都是用绝对定位么? 
      

  3.   

    喜欢手写。找到一个强力的布局管理器如MiGLayout/JGoodies FormLayout后,手写很方便。好多人都喜欢用Netbeans,netbeans集成了Swing Appliction Frame和 Beans Binding。Swing开发简化了不少。
      

  4.   

    JInternalFrame 要和 JDesktopPane配合使用。
      

  5.   

    使用MYECLIPSE7。0以上的版本自带这个插件不需要自己装的,就可以用啦
      

  6.   

    // Create an internal frame boolean resizable = true;
    boolean closeable = true;
    boolean maximizable = true;
    boolean iconifiable = true;
    String title = "Frame Title";
    JInternalFrame iframe = new JInternalFrame(title, resizable, closeable, maximizable, iconifiable);
    // Set an initial size int width = 200;
    int height = 50;
    iframe.setSize(width, height);
    // By default, internal frames are not visible;make it visible 
    iframe.setVisible(true);
    // Add components to internal frame... 
    iframe.getContentPane().add(new JTextArea());
    // Add internal frame to desktop
    JDesktopPane desktop = new JDesktopPane();
    desktop.add(iframe);
    // Display the desktop in a top-level frame 
    JFrame frame = new JFrame();
    frame.getContentPane().add(desktop, BorderLayout.CENTER);
    frame.setSize(300, 300);
    frame.setVisible(true);
      

  7.   

    windowbuilder插件 或者netbeans
      

  8.   

    如果是练习的话还是手写好netbeans  各组件可以直接往里拖  很方便
      

  9.   

    如果涉及swing还是netbeans好一点
      

  10.   

    恩恩  谢谢各位   其实也尝试过用myeclipse或者netbean  主要是这些工具生成的代码不是很好,手写的代码比较干净,但就是布局麻烦些 , 各有利弊  ,大家能推荐推荐手写代码用哪种布局比较快捷一些啊? 再有就是swing方面的书籍太少了,纸板的极少,只能在网上搜资料,E文的看时间长了就有些烦 , 无奈ing 
    谢谢各位的指点啊