الأحد، 6 أبريل 2014
1:57 م

الدرس الخامس في الجافا: انواع الرسائل التحذير

package dailog;
import javax.swing.JOptionPane;
/**
 *
 */
public class Dailog {
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
  
JOptionPane.showMessageDialog(null,"hello world");
JOptionPane.showMessageDialog(null,"Error message","ERROR",JOptionPane.ERROR_MESSAGE);
JOptionPane.showMessageDialog(null,"information message","information",JOptionPane.INFORMATION_MESSAGE);
JOptionPane.showMessageDialog(null,"warn message","warn",JOptionPane.WARNING_MESSAGE);
JOptionPane.showMessageDialog(null,"question message","question",JOptionPane.QUESTION_MESSAGE);
JOptionPane.showMessageDialog(null,"plain message","message",JOptionPane.PLAIN_MESSAGE);
    }
    
}




0 التعليقات:

إرسال تعليق

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
اضغط على الابتسامة لظهور الكود الخاص بها
لإدراج تعبيرات الوجه يجب إضافة ما لا يقل عن مسافة واحدة قبل رمز.