想在点击确定按钮时,对未填正确的项目出现提示信息,'..未填',先谢谢大家!

解决方案 »

  1.   

    Popup mypopup = PopupFactory.getSharedInstance().getPopup(frame,
              new JLabel("popupwindow"), x,y);
    mypopup.show();其中函数API:getPopup(Component owner, Component contents, int x, int y) 
              Creates a Popup for the Component owner containing the Component contents.
      

  2.   

    JOptionPane.showMessageDialog(null,"...未填');你可以试试这个,JOptionPane后还显示其他消息的弹出对话框的方法,你查查帮助文档有祥细的说明,看看就知道了!
      

  3.   

    要加入import java.util.*; 吧?