请问一下:
JFrame.setDefaultLookAndFeelDeacorated(true)   是什么意思啊.另外JOptionPane.showConfirmDialog(....).括号里面接一些什么参数啊.

解决方案 »

  1.   

    JOptionPane.showConfirmDialog(Compament,Object title,information,CompamentOption).
    难到你自己没看见过吗?
      

  2.   


    JOptionPane.showConfirmDialog(Compament,Object   title,information,CompamentOption).:前面加import javax.swing.*;
    显示一个信息面板,其 options 为 "yes/no",message 为 'choose one':
    JOptionPane.showConfirmDialog(null,"choose one","choose one", JOptionPane.YES_NO_OPTION);
      

  3.   

    JFrame.setDefaultLookAndFeelDeacorated(true)
    设置applet界面感观
    package gui;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class PlatTest {
    public static void main(String[] args){
    PlafFrame pf = new PlafFrame();
    pf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    pf.show();
    }
    }
    class PlafFrame extends JFrame{
    public PlafFrame(){
    setTitle("PlafTest");
    setSize(300,200);
    PlafPanel p = new PlafPanel();
    Container c = this.getContentPane();
    c.add(p);
    }
    }class PlafPanel extends JPanel{
    public PlafPanel(){
    makeButton("Metal","javax.swing.plaf.metal.MetalLookAndFeel");
    makeButton("Motif","com.sun.java.swing.plaf.motif.MotifLookAndFeel");
    makeButton("Windows","com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    }
    void makeButton(String name,final String plafName){
    JButton button = new JButton(name);
    add(button);
    button.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent event){
    try{
    UIManager.setLookAndFeel(plafName);
    SwingUtilities.updateComponentTreeUI(PlafPanel.this);
    }
    catch(Exception ex){
    ex.printStackTrace();
    }
    }
    });
    }

    }自己看下这段代码吧
      

  4.   

    LZ去下一个jdk的帮助文档好好研究一下~~
      

  5.   

    defaultLookAndFeelDecorated - A hint as to whether or not current look and feel should provide window decorations加不加窗口修饰
      

  6.   

    showConfirmDialog方法有若干重载版本 参数主要和选择对话框有关
      

  7.   

    建议下个 AIP文档 里面什么 都有说明