صفحة 1 من 2 12 الأخيرةالأخيرة
النتائج 1 إلى 10 من 12

الموضوع: JOptionPane Features - to make Simple Dialogs

  1. #1
    elfr3on el3ashk الصورة الرمزية A7med Baraka
    تاريخ التسجيل
    Jun 2008
    الدولة
    Egypt - Cairo
    المشاركات
    4,695
    معدل تقييم المستوى
    10

    Thumbs up JOptionPane Features - to make Simple Dialogs


    End Google Ads 201810 - BS.net 01 --> JOptionPane Features

    Using JOptionPane, you can quickly create and customize several different kinds of dialogs. JOptionPane provides support for laying out standard dialogs, providing icons, specifying the dialog title and text, and customizing the button text. Other features allow you to customize the components the dialog displays and specify where the dialog should appear onscreen. You can even specify that an option pane put itself into an internal frame (JInternalFrame) instead of a JDialog
    .
    When you create a JOptionPane, look-and-feel-specific code adds components to the JOptionPane and determines the layout of those components.
    JOptionPane's icon support lets you easily specify which icon the dialog displays. You can use a custom icon, no icon at all, or any one of four standard JOptionPane icons (question, information, warning, and error). Each look and feel has its own versions of the four standard icons. The following figure shows the icons used in the Java (and Windows) look and feel

    .
    Icons used by JOptionPane
    (Java look and feel)
    question

    information

    warning

    error

    (Windows look and feel)

    question

    information

    warning

    error


  • #2
    تقنى جديد
    تاريخ التسجيل
    Nov 2008
    المشاركات
    4
    معدل تقييم المستوى
    0

    افتراضي رد: JOptionPane Features - to make Simple Dialogs

    جزاك الله خيرا

  • #3
    elfr3on el3ashk الصورة الرمزية A7med Baraka
    تاريخ التسجيل
    Jun 2008
    الدولة
    Egypt - Cairo
    المشاركات
    4,695
    معدل تقييم المستوى
    10

    افتراضي رد: JOptionPane Features - to make Simple Dialogs

    جزانا و أياك

  • #4
    تقنى مشارك
    تاريخ التسجيل
    Dec 2008
    الدولة
    alexandria
    المشاركات
    55
    معدل تقييم المستوى
    203

    افتراضي رد: JOptionPane Features - to make Simple Dialogs

    thanks mulion
    but i try to use joptionpane in netbeans
    and my code was correct.and it cannot be run
    i think my mistake in the kind of java project or application
    to anyone can help me
    tell me the right way to do that
    plz

  • #5
    elfr3on el3ashk الصورة الرمزية A7med Baraka
    تاريخ التسجيل
    Jun 2008
    الدولة
    Egypt - Cairo
    المشاركات
    4,695
    معدل تقييم المستوى
    10

    افتراضي رد: JOptionPane Features - to make Simple Dialogs

    اقتباس المشاركة الأصلية كتبت بواسطة fatma mansour مشاهدة المشاركة
    thanks mulion
    but i try to use joptionpane in netbeans
    and my code was correct.and it cannot be run
    i think my mistake in the kind of java project or application
    to anyone can help me
    tell me the right way to do that
    plz
    thnx for u reply
    i dont understand your problem exactly but take care that its case sensitive
    JOptionPane not joptionpane

    try to explain the problem clearly so we can help u isA
    also try to put the code to check it
    waiting ...

  • #6
    تقنى مشارك
    تاريخ التسجيل
    Dec 2008
    الدولة
    alexandria
    المشاركات
    55
    معدل تقييم المستوى
    203

    افتراضي رد: JOptionPane Features - to make Simple Dialogs

    thanks
    i know that joptionpane =JOptionpane
    and my question is
    from the begining when i create new project and before i write the code
    what's the kind of the project ,class??
    and thank you again for your help

  • #7
    تقنى مشارك
    تاريخ التسجيل
    Dec 2008
    الدولة
    alexandria
    المشاركات
    55
    معدل تقييم المستوى
    203

    افتراضي رد: JOptionPane Features - to make Simple Dialogs

    sorry i mean !=

  • #8
    تقنى مشارك
    تاريخ التسجيل
    Dec 2008
    الدولة
    alexandria
    المشاركات
    55
    معدل تقييم المستوى
    203

    افتراضي رد: JOptionPane Features - to make Simple Dialogs

    when i try to run a simple program
    the netbeans show me that message:
    java.lang.NoClassDefFoundError: javaapplication5/Main
    Caused by: java.lang.ClassNotFoundException: javaapplication5.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: javaapplication5.Main. Program will exit.
    Exception in thread "main"
    Exception in thread "main" Java Result: 1
    BUILD SUCCESSFUL (total time: 6 seconds)

  • #9
    تقنى مشارك
    تاريخ التسجيل
    Dec 2008
    الدولة
    alexandria
    المشاركات
    55
    معدل تقييم المستوى
    203

    افتراضي رد: JOptionPane Features - to make Simple Dialogs

    thanks much
    انا خلاص شغلتة
    وهو كان برنامج بسيط للمقارنة بين رقمين وهو دة الكود لو حد عايز يجربة

  • #10
    تقنى مشارك
    تاريخ التسجيل
    Dec 2008
    الدولة
    alexandria
    المشاركات
    55
    معدل تقييم المستوى
    203

    افتراضي رد: JOptionPane Features - to make Simple Dialogs

    import javax.swing.JOptionPane;

    public class Main {


    public static void main(String[] args) {
    String Fristnumber;
    String Secondnumber;
    String Result;
    int number1;
    int number2;
    Fristnumber =JOptionPane.showInputDialog("enter frist value");
    Secondnumber =JOptionPane.showInputDialog("enter second value");
    number1 =Integer.parseInt(Fristnumber);
    number2 =Integer.parseInt(Secondnumber);
    Result="";
    if(number1==number2)
    Result=number1+"=="+number2;
    if(number1!=number2)
    Result=number1+"!=" +number2;
    if(number1<number2)
    Result= Result + "\n"+number1+"<"+number2;
    if(number1>number2)
    Result= Result+"\n"+number1+">"+number2;
    if(number1<=number2)
    Result= Result+"\n"+number1+"<="+number2;
    if(number1>=number2)
    Result= Result+"\n"+number1+">="+number2;
    JOptionPane.showMessageDialog(null,Result,"comparion result",JOptionPane.INFORMATION_MESSAGE);
    System.exit(0);
    }
    }

  • صفحة 1 من 2 12 الأخيرةالأخيرة

    معلومات الموضوع

    الأعضاء الذين يشاهدون هذا الموضوع

    الذين يشاهدون الموضوع الآن: 1 (0 من الأعضاء و 1 زائر)

    المواضيع المتشابهه

    1. Learn How to make Panorama with Images Using PhotoShop
      بواسطة wa7edmenelnass في المنتدى الفوتوشوب Photoshop
      مشاركات: 1
      آخر مشاركة: 10-16-2008, 09:11 PM
    2. أمتلك موقعك الشخصى على الأنترنت مجانا Make You Owen Site For Free On GeoCities
      بواسطة A7med Baraka في المنتدى تطوير المواقع - Web Development
      مشاركات: 2
      آخر مشاركة: 10-02-2008, 03:53 PM
    3. Simple Equation
      بواسطة yoyoabdo في المنتدى المنتدى الترفيهى
      مشاركات: 4
      آخر مشاركة: 09-17-2008, 02:31 AM

    الكلمات الدلالية لهذا الموضوع

    مواقع النشر (المفضلة)

    ضوابط المشاركة

    • لا تستطيع إضافة مواضيع جديدة
    • لا تستطيع الرد على المواضيع
    • لا تستطيع إرفاق ملفات
    • لا تستطيع تعديل مشاركاتك
    •  
    "وَقُل رَّبِّ زِدْنِي عِلْمًا"
    أعلانات نصية أستضافة , ريسيلر - Best Hosting | BarakaSoft Web Solutions

    BarakaSoft PageRank RSS RSS 2.0 XML MAP HTML 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 C/C++ | Java | C# | Network | Database | OS | Linux | Windows | Hacker & Security | Photoshop | Flash | Web Development | Free Programs | Mobile App | Free Java Course | Latest Technical News | Internet Programs | Antiviurse Programs | Graphics Programs | Network Programs | Portable Programs | vb Forums Development | Forums Development | CMS(Joomla-nuke-wordpress-mkportal...) | Photo | Anime |