Canvas versus form?

OK, this is a JAVA ME question, but since I'm a novice and its not specific to a certain piece of hardware, I felt it appropriate to post here.
I need to capture an image from a mobile camera phone, but thus far have struggled to find a decent tutorial. Could someone please explain to me:
a) the main difference between a canvas and a form
b) if I can capture images from a mobile camera phone using a form
c) if not, how do I get a canvas in java netbeans (with the mobilty pack installed)
d) when testing the program, what should be displayed in the emulator to signify capturing image data?
I was trying to using the code below on a form but don't seem to be having any luck, and like I said, can't find a relevant in-depth tutorial (a link would be appreciated).
public void capture() { 
try {
byte[] raw = videoControl.getSnapshot( null ); // imageString );
Image image = Image.createImage(raw, 0, raw.length);
catch (Exception e) {
public void cameraPlayer() {
try {
player = Manager.createPlayer("capture://video");
player.realize();
videoControl = (VideoControl)player.getControl("VideoControl");
player.start();
catch (Exception e) {
Thanks for any advice.

Hi all, can I put a text box in a canvas? Items only on Form...
or can I draw on a form?use CustomItems

Similar Messages

  • Icon images not displayed on canvas in form developer

    It seems I've got the opposite problem from all the postings regarding icons. I've read the white paper: "How To Deploy Icons" and tried both "documentbase" and "codebase" settings, and icons are displayed fine in both cases when I preview (run the form from Form Developer), but I cannot see the gif images on canvas in Forms Developer, whatever setting I choose.
    I'm running DS 9.0.4 and the only specific thing is that my startup shortcut on my XME desktop is starting in a directory where we store our *.fmb *.fmx files (W:\ScreenDevelopement\... which is not default directory - when you run from Start -> Programs menu).
    It is not a big deal (I guess I can live without having images on canvas), but I don't understand why something that should be fairly simple to setup is such a pain.
    Thanks,
    A.M.

    No part of the picture is visible on canvas in Forms Developer, and neither UI_ICONS nor UI_ICON_EXTENSION is helping. It looks like Forms Developer is totally disconnected from the rest of the DS (run time), and cannot figure out where to look for the pictures. As I mentioned earlier, when I run the screen preview the pictures are visible.
    A.M.

  • Canvas and form (&elements)

    Hi, i wanna use input box with canvas. As i googled it is not possible. It says i have to write my own inputbox.
    First question: is there another way use inputbox with canvas?
    Second: Can i use canvas and form together. Can i draw something with canvas on half of screen, can i put a form on another part?

    aDiGe wrote:
    Lets make clear my problem.
    I have letters in square and i am changing square's background in my code. It is easy to make with canvas. But i need an InputBox under the letters, it is a bit hard for me to draw it with canvas.You mean you have problems making it editable, right? Because I can't imagine having problems with drawing some background under the letters. Or perhaps you should define what exactly do you mean by "InputBox".
    I thought to use form. When i use StringItem for letters i can not change their backgrounds (i dont know if it is possible)
    İ tried to use ImageItem for letters. I made each of letters image. When i ll change their background i am putting another letter image on the other letter image which has different background. But i am not sure if it ll be problem about performance.
    Any idea??Do I understand it correctly that you tried to simulate a TextField (which is an already available Item) using ImageItems only to have some background color under the text?
    I don't know what application are you writing, but what's wrong with a simple TextField? If you're using Canvas for the rest of your application and sometimes you need some text input, just switch to a Form, let the user enter the data and switch back.
    If you don't like the look of the high level GUI, implement your own TextField usable with Canvas. But trying to bend a Form like you described is just... odd.

  • How to add canvas to form in J2ME Polisth

    I read somewhere that we can add Canvas to form in j2me polish. Is it possible is yes than how?

    Hi,
    Go to PE51 and create your CEDT form.
    then...
    got to PC00_M99_CEDT
    enter your payroll area...XX
    enter your form name XXXX
    click on save
    give a name for your variant
    and come out from that screen
    now PC00_m40_calc
    and go to the layout for remuneration statement --   click on F4
    now you can get your form in the list of forms
    all the best n cheers
    Here the issue is Regarding the HRFORM not PE51 Form i think  Moderator

  • Show stacked canvas when form is opened

    Hi,
    I'm working with forms 6i. My form has one multi-record block. Due to the amount of fields that need to be shown we split the block across 2 canvases, the first fields are shown in the primary canvas and next to it is something like an overflow, a stacked scrollable canvas.
    The form is opened in query mode. In the beginning we only see the items on the primary canvas. Only after the user has executed his query and navigates (with tab) to the first item on the stacked canvas this one is shown. From that moment on the stacked canvas stays visible.
    I want to change this behavior as such that the stacked canvas is visible all the time.
    I tried to solve this using show_view in the when-new-form-instance trigger but the result is not what it should be. The view is shown but not in the same way as you would see it when you properly navigate to it. The alignment is totally out of control.
    Any ideas, suggestions, are mostly appreciated.
    Kris

    Steve,
    To maybe make things a bit more strange then they're already.
      GO_ITEM('DEELNEMERS.DROOMPLOEG'); -- Item in stacked canvas
      SYNCHRONIZE;
      PAUSE;
      GO_ITEM('DEELNEMERS.CODE'); -- First item (on primary canvas)It works with above code but not without the pause.
    I'm really confused here :-),
    Kris

  • Displaying tab page canvas on content canvas in Forms 6i

    Forms [32 Bit] Version 6.0.8.8.0 (Production)
    I have an existing form which has multiple canvases and there are couple of fields on Content canvas and then on the same content a Tab canvas is layed out. I can see both canvases in same layout editor and select and move the tab canvas.
    But when I create a new form and want to layout a tab canvas on top of content, it appears in a separate layout editor window on design time.
    I want it like below:
    -----------content--------------------
    |                                       |
    |                                       |
    |                                       |
    |TabPag1     TabPage2                   |
    |                                       |
    |                                       |
    |                                       |
    |                                       |
    |                                       |
    |                                       |
    -------------content------------------How can I create it so that it appears in same layout editor window at design time and appears in same window like one canvas on runtime.

    In order for the Tabbed Canvas to appear on the Content Canvas in the Layout Editor, you have to actually draw the Tabbed Canvas on the Content Canvas; eg: open your content canvas in the layout editor, click on the tabbed canvas toolbar button and then draw it on your content canvas. If you create the Tabbed Canvas object through the Object Navigator and then set the properties so it would display on the content canvas - it won't be visible on the content canvas with the layout editor.
    This is a bit of a quirk in the Forms Builder and they haven't corrected this in any of the newer versions of Forms yet. :-(
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Tab canvas + post-forms-commit + form_trigger_failure

    Hi all,
    There is a tab canvas with eight tab pages in my forms.
    In the post-forms-commit form-level trigger there are controls based on some conditions before executing the processes. When the conditions in the controls are not met then a stop alert is shown and form_trigger_failure is raised. All of these actions , that is the alert and form_trigger_failure , are contained inside a procedure named affiche_erreur.
    The problem is that after pressing the alert button then forms goes to the first tab page. And the focus is on a non-navigable button ! Very strange !
    I trapped the form_trigger_failure exception in post-forms-commit , but untill now I do not find any way how to put the focus in a specific item.
    So how to put the focus into a specific item or a specific tab page ?
    Thank you very much indeed

    Mark , the when-tab-page-changed trigger does not fire after I pressed the alert button although the focus goes always to the non-navigable button in the first tab-page. I wrote a pause statement at the beginning of the when-tab-page-changed trigger but there was no pause alert at runtime.
    Finally I created a timer in the exception of the post-forms-commit trigger which catches the form_trigger_failure exception , and in the when-timer-expired trigger I wrote go_item.

  • Canvas or Form for displaying images

    Hi all,
    I am experiencing an annoying problem.
    I am developing an image viewer in J2ME/MIDP. I displayed all images in thumbnails. I don�t know how to list them. In canvas � I�ve problem with scrolling, if I use Form, I don�t know how to put more than one image per row. Maybe I have to use CustomItem in Form?
    Thanks for your replies.

    What you can try is:
    1. Insert default .jpg picture into your report
    2. Right-click the image and select Format Graphic> select Pictures tab> Graphic Location formula
    3. Insert your formula, but make sure that result of your formula is a string - full pass to .jpg file
    I have tested it right now and it works for my CRXIr2.

  • Canvas and Forms Server

    I have an application with some different windows. Each window possesss a different function. When I go to publish my application in web, those windows with one canvas had only appeared. The ones that possessed one more than, had simply not appeared. It has some restriction how much to the this?
    9iAS 1.0.2.2.1
    Forms 6i

    See my previous answer on Focus and somewhere for the cursor to go. If in doubt do a GO_ITEM() rather than SHOW_WINDOW()

  • Canvas with Form

    hi pals,
    I have some doubts with my application development. Till now i am developing application with Canvas, and i know we can able to use form as well as canvas within single midlet am i right?
    But i want to use Canvas as background for Form(ie. the Form should display on canvas) is it possible?
    And one more question can we add color for buttons used in form?
    waiting For reply..
    Thank you,

    Thank you,
    Iam trying to use j2me ploish, for that i had download j2mepolish-1[1].3-beta3.jar file, but i dont know how to use it with netbeans5.0 IDE.
    (by exploring tutorials we have to change the build .xml file ) but it is not clear to me.
    Can you help me how to use j2mepolish with netbeans or any other way.

  • Opening canvas crashes form

    Hi,
    Iam developing some forms in 6i, whenever i try to open canvas form crashes and form is closed... it gives application error..... but when i try to access some canvs like calendar or Progress Indicator or Standard labels then there is no problem.... I tried converting fmb to fmt and fmt back to fmb but this wont help....
    Not able to develop anything at all....
    Any kind of help is more than welcomed......
    Avinash Bhamare,
    Pune.
    India

    Hi,
    Thats feasible when iam not able to open any canvas, but it gives problem while trying to access the canvas that are user made and when try to access canvases that are preformed like calendar or progress indicator then it works fine.....
    Avinash,
    Pune.
    India.

  • J2ME Canvas and Form Objects

    I am currently in the process of converting an existing MIDP application which uses the standard high-level UI to implement menus and form objects.
    I am converting this to use the low-level UI with canvases to make the application look far more professional. There seem to be no decent tutorials realting to using the canvas to with relation to menus or user input.
    Is it possible to add the standard TextField and ChoiceGroup types into a canvas? If not, how are these implemented in existing MIDP applications that clearly use a canvas.
    Thanks for any help that you might be able to give,
    Dave

    umm abit of athread revivial but it seems that using j2me polish is more hard work than using standard j2me. This is because you need to know abit of xml and css to take full advantage of j2me polish.
    still is that the only way to create a form in a canvas?

  • Document Properties versus Form Properties

    Hello,
    I was searching this forum and the knowledgebase to find an answer on how to populate the Document Properties visible in Acrobat/Reader 7 with the values from the Form Properties of a XFA form created with Designer 7.1. Unfortunately I was not able to find a sufficient answer. Is it possible to fill the Document Properties from within a XFA form? Can anyone point me in the right direction?
    Any help is really appreciated. Thanks!
    Kind regards, Karin

    Hi,
    As I discussed with my colleague on Office application, the Document property we can access from File tab is different from the DOCPROPERTY we can locate in Fields.
    If you would like to add the "aaa" to document, we could add it manually.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Jdeveloper versus Form developer

    is th2 jdeveloper replacing the form debeloper,
    and will the ERP system in the future developed using jdeveloper or forms developer.

    Forms is still around and version 12 of Oracle E-Business suite still uses it (as well as JDeveloper).
    Fusion will use JDeveloper as the IDE.
    For more about Forms check http://otn.oracle.com/products/forms
    And for migrating your skills to Java check:
    http://www.oracle.com/technology/products/jdev/collateral/4gl/formsdesignerj2ee.html

  • Form 9i versus form 6i

    Hello all,
    I'm new to Oracle 9i and I wonder how much difference between Form 9i and form 6i. Does Form 9i use the same tools like form 6i to develop: object navigator, layout editor, data block, and other tools in form 6i?
    I know Form 9i using FormServlet and Jinitiator and more Java and OO technique; but is the basic the same from form 6i to form 9i?
    Andy.

    Hi Andy, forms 6i and 9i are pretty much the same when you look at it developer-wise.
    The big differences are in the three-tier architecture where 9i has a thin (java) client, a full-fledged application middletier and then the database. You can do a lot of neat stuff on the middletier if you know your way around j2ee and java.
    Otherwise there's the problem with OLE2 integration, but WebUtil solves 99% of these problems. And you have to get used to the fact that everything runs in a browser's java runtime environment.
    Regards,
    Jesper Vad Kristensen

Maybe you are looking for

  • Charge Expenses to Asset

    Dear group Members, How can i charge Expenses amount to asset Pleas help me with the transaction code, Document type & posting key Issue is as vendor invoice is posted as asset, how can i transfer to asset ( new asset) Regards Shamulheq Edited by: sh

  • How to access ftp account externally

    Hello, I'm using a the server app on 10.8.4 with no-ip. A subdomain of mine (home.mindofmedia.eu) links to that server. When I access that subdomain I can see the default webpage of the server. So that worked. I also enabled the FTP on the server. Bu

  • Multiple deadlines for an activity

    HI guys,            I need to create a step in which if user does not take action for 3,5,10,20 days,we send him mail on his lotus notes.Single deadline,i think,can be done by 'latest end'.but how to tackle multiple deadlines.please help me.

  • HOW DO YOU SET DOCUMENT PROFILE UNDER COLOR MANAGEMENT IN CS4?

    When I try to print in CS4 (File>Print>Color Management >Document(it displays sRGB IEC61966 -2.1) I need to change this to Adobe RGB1998 and I cannot find out how to do this! If I go to >EDIT>COLOR SETTINGS the Working Space shows Adobe RGB 1998. Is

  • Investigate book with both landscape and portrait pages

    I've an old book where I sucessfully swapped landscape and portrait pages, but there are complications why I cannot use it as a model for my current project. Since I no longer remember how I accomplished this, I have to investigate how to build a boo