1

I need to know how to use a Dialog class in J2me.

Any example.

I created a Dialog d=new Dialog() as per seen in one of the questions answered in Stack Overflow:

But it gives an error Dialog() not visible.

I got import gov.nist.siplite.stack.Dialog; package for Dialog box

Community
  • 1
  • 1
Yatin
  • 2,969
  • 9
  • 34
  • 68
  • "one of the questions answered in Stack Overflow" - is this about [comment you made in an answer to your other question](http://stackoverflow.com/questions/9803880/can-i-create-a-dialog-box-as-seen-in-blackberry-using-pure-j2me-package#comment12486114_9804212)? – gnat Mar 21 '12 at 13:12
  • No ... i did found somewhere but i lost the link – Yatin Mar 21 '12 at 13:22
  • Anyways do you got an example of Dialog() in j2me – Yatin Mar 21 '12 at 13:24
  • what Dialog are you talking about? J2ME is too broad sorry, eg in MIDP LCDUI API, there's no such class `Dialog`. What API are you using? Blackberry, LWUIT, J2ME Polish, something else? – gnat Mar 21 '12 at 13:36
  • i am using Pure j2me class where i got import gov.nist.siplite.stack.Dialog; package for Dialog box – Yatin Mar 21 '12 at 13:39
  • are you sure about this import? did you by chance somehow mistaken it with LWUIT Dialog, like one discussed in this question: http://stackoverflow.com/questions/8664243/how-can-i-show-dialog-box-on-canvas-in-j2me-mobile-application ? – gnat Mar 21 '12 at 15:27

1 Answers1

2

You are using wrong import that takes Dialog object from wrong project (details below) instead of LWUIT.

For more details on how to use LWUIT, refer to 'lwuit' tag wiki page.


I got import gov.nist.siplite.stack.Dialog; package for Dialog box

Given above it looks like you are trying to work with Sip-for-me project.

Here is the reference to source code of gov.nist.siplite.stack.Dialog class at the project homepage:
- http://java.net/projects/sip-for-me/sources/svn/content/trunk/src/sip4me/gov/nist/siplite/stack/Dialog.java


an example of Dialog()

You can look for usage examples at Sip-for-me project homepage or ask at their "Users mailing list" which is also referred to from project page.

As far as I can tell, project isn't particularly active and their documentation looks rather poor, so you may also consider following reference given at their svn / trunk page:

    Contributions were made by many people to NIST-SIP. Please see 

    http://jain-sip.dev.java.net/
Community
  • 1
  • 1
gnat
  • 6,213
  • 108
  • 53
  • 73