Swing in J2ME

Witch JSR must be added to make swing applications in j2me?
I know not alle the facilities will be avalible, but any way it must be posible.....or am I wrong?

Hi,
It is currently impossible to use Swing in J2ME applications. And I believe that Swing would be too comprehensive for the current latest generation of mobile phones.
Use the default MIDP 1.0 or 2.0 (depending on your target device) components for your application or try Polish J2ME, which can be used for giving your application a unique look and feel.
Cheers

Similar Messages

  • J2ME PP and Swing

    I'm currently porting some of the Swing classes to J2ME (or atleast trying to).
    Have come across a problem with a method in java.awt.Component. The getPeer() method has been depreciated in J2SE and removed in J2ME, but it is used by some of the swing classes. While i realise that the J2ME awt implementation was not designed to run swing, i wondered if anone had any ideas on how to get around this.
    From looking at the J2SE source for java.awt.component, the getPeer method (whcih returns a java.awt.peer.ComponentPeer) reveals some info about the state of the peer variable (of type ava.awt.peer.ComponentPeer).
    Please Help, im totally lost.
    regars, danny.

    it is easy to port swing to J2ME PP. Just get the Foundation classes from sun (http://java.sun.com/products/jfc/download.html). Correct a bug in the files (you have to search in the internet to find the solution), and it woks!!!
    The only problem is that it is very very slow. That is the only reason to try and rewrite the swing classes.
    I did it for IBM WEME PP, but if you have a faster solution I would like to see it.

  • J2me and swing

    HI
    Am a J2EE developer. I want to develop a J2ME application.
    Is Swing is supported with J2ME? What are all the softwares needed for that?
    Please suggest some sites to start.
    Thanks
    bee

    it is easy to port swing to J2ME PP. Just get the Foundation classes from sun (http://java.sun.com/products/jfc/download.html). Correct a bug in the files (you have to search in the internet to find the solution), and it woks!!!
    The only problem is that it is very very slow. That is the only reason to try and rewrite the swing classes.
    I did it for IBM WEME PP, but if you have a faster solution I would like to see it.

  • Modifying a Swing-based app

    Is there a methodology defined somewhere for taking an existing app that uses Swing, and modifying it for J2ME? Or better yet, a model for creating a single code base that can support either a desktop or MIDP form factor (with minor modifications when building it in J2ME)? Any suggestions appreciated.

    I'll try again... I didn't mean that I want to run Swing on top of J2ME. I mean taking an app that was originally built using Swing, and changing it to run w/o Swing, using J2ME classes. Then the next step would be putting in an abstraction layer so that it can be switched to Swing for running on a desktop or to the J2ME classes when running on a cellphone.
    Imagine if Swing performs so slowly on a 2GHz P4, how
    slow it would be on a 15Mhz Palm PDA.
    Not to mention that you would never be able to fit all
    the functionality of Swing onto a PDA let alone a
    Cellphone.

  • J2ME CLDC/MIDP emulator for Compaq iPAQ

    I would like to run J2ME CLDC with MIDP on my Compaq iPAQ 3650. I am NOT interested in PersonalJava at this time. I have two questions:
    1. Has anyone tried to put the J2ME Wireless Toolkit emulator on iPAQ, with or without Swing? J2ME WTK currently requires Swing, but it seems like that AWT may be used exclusively instead with some slight modifications.
    2. Does anyone know if there is an applet/AWT version of a J2ME CLDC/MIDP emulator that I can use for demos?
    Thanks.

    You can use the PalmOS emulator for winCE and install MIDP4PALM...

  • Health Management application.How can the integration be possible?

    Hello everyone,
    My name is Ayorinde Adunse and I am an upcoming Java Developer based in Lagos,Nigeria.I developed interest in Java about a couple of years ago and made it a natural choice for developing applications.
    Of recent Ive been trying to develop an application that manages health insurance and premiums calculations here in Nigeria.At present it is an idea though,because existing technologies are already in place for certain orgainisations although there could be improvement.
    What I am trying to do is to develop a client application that can connect to a database on a host system and manage patients health records(and also their health history in the event of subsequent hospital visits),and I know that would not be a problem,since the JDBC API can handle that.But I know that eventually there would be problem as different hospitals that would eventually be using the application around the country would have their data on their systems and this information would need to be put up on an online database server managed by admin from Health management organisations in the country(who would be able to view statistical data on hospitals in each local government and state around the federation and have a right to notify erring hospitals of improper conduct or financial irregularities), as well as funding organisations and ultimately the insurance companies who would be responsible for paying the insurance premiums on claims made by a specific hospital(s)( an admin representative would also be able to view the online database containing information on each hospital to facilitate payments).This would enable a financial and statistical report be sent to each hospital on a monthly,quarterly and yearly basis.
    I am specifically interested in how the integration of this data is to be done especially since the internet is not fully established in Nigeria and there are some remote villages that would not have internet connection and so the desktop application would have to be used(otherwise this would have been a web application with hospital management having login details and a management system for each hospital). The analysis of the data would involve population of women and children registered for the proposed insurance scheme in each local government,and ultimately,in each state of the federation,as well as the financial reports and calculation of claims for each registered hospital under a health management organisation(s).
    Please,I need your help,on suggesstions on the relevant architecture,I know you guys out there are really good and I would need suggesstions.I would really be grateful as I am so stuck.This is my first major enterprise application.I would really be grateful.
    Thanks,
    Ayo Adunse.

    Hi Ayo,
    Interesting concept, you are proposing to build a distributed application so you'll need a VPN(Virtual Private Network) .In Nigeria the only way you can establish a VPN is via the internet.So internet connectivity is compulsory for any client(browser,swing or J2ME).Then again, you could make it a web application with the appropriate security measures in place this will do just fine.Good luck pal.
    You could reach me at [email protected]
    Benni
    SCJP 1.4 | SCWCD 1.4 | SCBCD 5.0

  • Should we use ArrayList or Vector?

    Should we use ArrayList or Vector in web programming environment?
    thanks,

    I used to use ArrayList everywhere since it was a newer class and recommended in books, but use Vector now because it is used in several key environments: Java 1 (Web browsers), Swing and J2ME. In Java2, Vector was retrofitted to use the Collections framework, so Vector implements List.
    Anyway, you should probably deal with only the List interface anyway so whichever you decide will be localized. That way, if Sun suddenly stops supporting Vector, you will only need to make a change in one place.
    List mylist = new Vector();

  • Should we use JRocket?

    On http://edocs.bea.com/jrockit/geninfo/diagnos/migrate.html I'm reading "Although there are other JDKs available on the market today that you can use to develop Java applications, Oracle recommends that you use JRockit JDK with your Oracle products".
    So should we migrate to JRocket? Is it supported on ECM 10g?

    I used to use ArrayList everywhere since it was a newer class and recommended in books, but use Vector now because it is used in several key environments: Java 1 (Web browsers), Swing and J2ME. In Java2, Vector was retrofitted to use the Collections framework, so Vector implements List.
    Anyway, you should probably deal with only the List interface anyway so whichever you decide will be localized. That way, if Sun suddenly stops supporting Vector, you will only need to make a change in one place.
    List mylist = new Vector();

  • Java Technology Forums Survey

    Hello. I am doing some research for my school course on who uses these forums. I would like to know:
    Where are you from? (country / city)
    How old are you?
    What sort of work do you usually do? (swing / j2ee / j2me etc.)
    I hope you can help me in my questions.
    Stig Johanson

    Reality check.
    People who don't already publish their personal information are not going to give it to you. Even if they did and by some miracle you got, say, a thousand replies, you have a big job on your hands to extract the data from the responses.
    What you should do is put up a web page somewhere (what an astounding idea - actually write some code? whatever next?) and get folks to anonymously answer your questions there.
    For extra credit, do such a good job that you can persuade the folks at Sun to include it as a link from the developer home page - yeah, you're right, that'll never happen.
    Either way, it's a question of getting out what you put in.

  • Health Management application

    Hello everyone,
    My name is Ayorinde Adunse and I am an upcoming Java Developer based in Lagos,Nigeria.I developed interest in Java about a couple of years ago and made it a natural choice for developing applications.
    Of recent Ive been trying to develop an application that manages health insurance and premiums calculations here in Nigeria.At present it is an idea though,because existing technologies are already in place for certain orgainisations although there could be improvement.
    What I am trying to do is to develop a client application that can connect to a database on a host system and manage patients health records(and also their health history in the event of subsequent hospital visits),and I know that would not be a problem,since the JDBC API can handle that.But I know that eventually there would be problem as different hospitals that would eventually be using the application around the country would have their data on their systems and this information would need to be put up on an online database server managed by admin from Health management organisations in the country(who would be able to view statistical data on hospitals in each local government and state around the federation and have a right to notify erring hospitals of improper conduct or financial irregularities), as well as funding organisations and ultimately the insurance companies who would be responsible for paying the insurance premiums on claims made by a specific hospital(s)( an admin representative would also be able to view the online database containing information on each hospital to facilitate payments).This would enable a financial and statistical report be sent to each hospital on a monthly,quarterly and yearly basis.
    I am specifically interested in how the integration of this data is to be done especially since the internet is not fully established in Nigeria and there are some remote villages that would not have internet connection and so the desktop application would have to be used(otherwise this would have been a web application with hospital management having login details and a management system for each hospital). The analysis of the data would involve population of women and children registered for the proposed insurance scheme in each local government,and ultimately,in each state of the federation,as well as the financial reports and calculation of claims for each registered hospital under a health management organisation(s).
    Please,I need your help,on suggesstions on the relevant architecture,I know you guys out there are really good and I would need suggesstions.I would really be grateful as I am so stuck.This is my first major enterprise application.I would really be grateful.
    Thanks,
    Ayo Adunse.

    Hi Ayo,
    Interesting concept, you are proposing to build a distributed application so you'll need a VPN(Virtual Private Network) .In Nigeria the only way you can establish a VPN is via the internet.So internet connectivity is compulsory for any client(browser,swing or J2ME).Then again, you could make it a web application with the appropriate security measures in place this will do just fine.Good luck pal.
    You could reach me at [email protected]
    Benni
    SCJP 1.4 | SCWCD 1.4 | SCBCD 5.0

  • How can my health management application work in an integrated fashion?

    Hello everyone,
    My name is Ayorinde Adunse and I am an upcoming Java Developer based in Lagos,Nigeria.I developed interest in Java about a couple of years ago and made it a natural choice for developing applications.
    Of recent Ive been trying to develop an application that manages health insurance and premiums calculations here in Nigeria.At present it is an idea though,because existing technologies are already in place for certain orgainisations although there could be improvement.
    What I am trying to do is to develop a client application that can connect to a database on a host system and manage patients health records(and also their health history in the event of subsequent hospital visits),and I know that would not be a problem,since the JDBC API can handle that.But I know that eventually there would be problem as different hospitals that would eventually be using the application around the country would have their data on their systems and this information would need to be put up on an online database server managed by admin from Health management organisations in the country(who would be able to view statistical data on hospitals in each local government and state around the federation and have a right to notify erring hospitals of improper conduct or financial irregularities), as well as funding organisations and ultimately the insurance companies who would be responsible for paying the insurance premiums on claims made by a specific hospital(s)( an admin representative would also be able to view the online database containing information on each hospital to facilitate payments).This would enable a financial and statistical report be sent to each hospital on a monthly,quarterly and yearly basis.
    I am specifically interested in how the integration of this data is to be done especially since the internet is not fully established in Nigeria and there are some remote villages that would not have internet connection and so the desktop application would have to be used(otherwise this would have been a web application with hospital management having login details and a management system for each hospital). The analysis of the data would involve population of women and children registered for the proposed insurance scheme in each local government,and ultimately,in each state of the federation,as well as the financial reports and calculation of claims for each registered hospital under a health management organisation(s).
    Please,I need your help,on suggesstions on the relevant architecture,I know you guys out there are really good and I would need suggesstions.I would really be grateful as I am so stuck.This is my first major enterprise application.I would really be grateful.
    Thanks,
    Ayo Adunse.

    Hi Ayo,
    Interesting concept, you are proposing to build a distributed application so you'll need a VPN(Virtual Private Network) .In Nigeria the only way you can establish a VPN is via the internet.So internet connectivity is compulsory for any client(browser,swing or J2ME).Then again, you could make it a web application with the appropriate security measures in place this will do just fine.Good luck pal.
    You could reach me at [email protected]
    Benni
    SCJP 1.4 | SCWCD 1.4 | SCBCD 5.0

  • JTable in MIDP ?? anyone saw

    I ve created my own component using canvas class it scrolls but ive got some problems recaluclating scrollpositions and in scrolling the content so i am looking for an exacple or similar code for MIDP platform. Has anyone seen it??
    thanx
    P.S. i can post the code so perhaps we could work on it together.
    my priv: [email protected]

    I remember seeing an open source port of Swing into J2ME by some spanish fellows. I don't remember the name of the site, but if I'm not mistaken they posted about it on the javagaming forums.
    shmoove

  • 1.Swing package in J2ME ? 2. Profile choice ?

    Is Swing package integrated in J2ME ?
    I actually search for tools in order to develop a java application for Sharp Zaurus.
    I heared talk about AWT which is completely integrated in Personal Profile but concerning Swing I don't know.
    What is the best choice between Personal Profile or PersonalJava to develop on such a device ?
    Thank You
    --::(Excuse my english...)::--

    Swiming is too heavy for J2ME, that's why so limited support for graphic/UI in J2ME/MIDP. However, you may have a look at LWT from Motorola which is a extension for MIDP to add more UI element such as check box etc. But I am not sure if it could be deployed in other non-MOto mobile like Nokia.
    use the lightweight AWT for PersonalJava environment if you have to finish something urgent. Though PersonalJava will be merged into PP in J2ME in the future, but it's much more mature than PP at this time. As well as too few mobileset support PP.
    Jeode(Insignia's implementation of PersonalJava) is the official partner for PPC device as initial installed on HP/Compaq iPAQ, Dell Axim as well as preinstalled on Zaurus from Sharp.
    best choice, at this time to me

  • J2me swing, cdc and window

    my company has developed a working version of swing w/ serializable on the desktop and like to import them into a pda. when i research this option online and i find out that only cdc can do that. however, when i download cdc and it seems that the package is only linux. where can i download a package that can used on window. i need to have swing on the pda, can cdc support all swing component? if not, what other options can i have?? i read online that j2me does not fully support swing, is that true?? i am a new programmer in j2me and really appreciate any help that i can receive.
    many thanks
    Yang

    First you should be aware that CDC is a configuration, so it does not contain any GUI components. In J2ME there are 3 different Profiles which are based on CDC.
    Foundation Profile (FP), Personal Base Profile (PBP and Personal Profile (PP). Only PP contains enhanced Java GUI elements. But it ONLY contains AWT. SWING is NOT supported and is not part of the PP specification.. Some JVMs like Creme from NSI (http://www.nsicom.com/) support Swing as opptional non-specification package. But you must buy the Creme JVM. The IBM VM J9 supports a reduced version of SWT (a GUI Framework), but not SWING. So generally it is very difficult to use SWING on a PocketPC.

  • J2me with swing supprt

    Hi
    In CDC whitepaper, it is mentioned that Swing is supported as optional package.
    And AGUI is supporting that. Does any one know, currently it is supported with CDC with personal profile?
    Is currently AGUI package is available?
    Thanks
    bee

    Savaje,
    Has implement the JSR 209 in their new phone:
    https://www.savaje.com/3GSM/savaje_ds_2006.pdf
    You can also use their extension to the Netbeans Mobility Pack to develop apps for it.
    Bruce

Maybe you are looking for

  • IPod Touch not showing up as a camera or removable disc, can't get photos

    My iPod Touch 4 is not showing up as a camera device or as a removable disk drive so I cannot pull photos and videos from Camera Roll. I prefer this over email because I don't want compressed versions. The driver in device manager indicates it's up t

  • Adobe Reader won't display PDF in IE Browser Window

    I am using Adobe Reader XI and Internet Explorer v. 11.0.9600.17280. I have tried uninstalling and re-installing Adobe.  I've also checked IE Add-Ins and all Adobe Reader Add-Ins are enabled. However, you're poorly written software STILL WILL NOT dis

  • How to connect oracle database into VC?GIve step by step.

    Hi Experts, Please help How to connect oracle database into VC? I need step by step. what shall i do the first to connect via jdbc or  something else. whether we have to create dsn name or using jdbc connections?which one to use? Please give the basi

  • Scrolling in Browser = FCP Crash

    When I scroll to the right in my FCP browser, every time I get to the "Compressor" column, the program freezes. This only happens in one particular project and none others. Any ideas?

  • How do I get rid of the scaling border and double click on mobile devices?

    Hello, I'm running into some trouble with two things on mobile. 1. The project has no border on a desktop computer. When you view it on an ipad or iphone it puts a border around it. I found out this is due to scaling as it goes away when I add viewpo