×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    2

    Anything similar swing's JOptionPane.showOptionDialog in J2ME

    Hi all
    I'm looking for some control like swing's JOptionPane.showOptionDialog in J2ME.

    Is there any control that you can call its constructor method or any other method to return the option that user has choosed?

    Its contstructor should return the choosed option by the user.For example in J2SE you can use such syntax:
    int p =JOptionPane.showOptionDialog(this,
    "Please select your pawn to be promoted to which one?",
    "Pawn Promotion",
    JOptionPane.YES_NO_OPTION,
    JOptionPane.QUESTION_MESSAGE,
    null,options,options[0]);


    Regards.

  2. #2
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Rawalpindi, Pakistan
    Posts
    486

    Re: Anything similar swing's JOptionPane.showOptionDialog in J2ME

    check alerts. you can add commands to alerts like yes no commands and on basis of those u can make a decision. search on alerts on this forum and u will find plenty of posts.
    Regards
    Nouman

Similar Threads

  1. How can the WAP browser communicate to J2ME application?
    By hbfornies in forum Mobile Java General
    Replies: 20
    Last Post: 2007-03-02, 16:32
  2. need urgent guidance on j2me
    By cogni_niru in forum Mobile Java General
    Replies: 1
    Last Post: 2005-11-13, 15:02
  3. J2ME Polish Version 1.0 RC6
    By enough in forum Mobile Java General
    Replies: 1
    Last Post: 2004-07-20, 11:25
  4. TinyLine SVG Minute Toolkit: Optimizing SVG for J2ME
    By girow in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-05-05, 18:44
  5. TinyLine SVG Minute Toolkit for J2ME: version 1.4 released
    By girow in forum Mobile Java General
    Replies: 0
    Last Post: 2003-05-05, 16:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×