Scrolling an image at the end of a ticker

hi,
I am koushik from India. I am working in j2me(cldc-midp), for last six months.
I have successfully scrolled a ticker and also worked with image.Now I want to scroll an image at the end of a ticker.So, at first I want to scroll an image independently, then I'll go for that. I want to do it not using Timer or I don't want it as a keyEvent,it should scroll like a ticker horizontally at the top of the emulator.Is it possible using Canvas,repaint()......
if it possible , can anybody help me giving a sample code.

Hi,
Because it's an assignment that you've got to make we won't just post complete source code that can be pasted into your Canvas code. As a matter of fact, I don't have source code that accomplishes something similar, so I can't post any code.
I will try to give some hints etc...
Okay, you're not using the Ticker class. That's okay and the scenario is clear.
You probably have got a Canvas screen in which you've made a sort of rectangle at the top of the screen. This rectangle (probably a filled rectangle) represents your titlebar. In this rectangle you will draw parts of a text during each run of the thread (timer).
There are some interesting challenges: the process should be very smooth to let your ticker animate very realistic. The text will be drawn using a dynamic x coordinate. However, you will need to draw text first, then drawing a filled rectangle or something at the left or the text and at the right of the text to simulate that characters are visualised for only a certain part (like how the ticker does that).
A fast thread (that sleeps for limited milliseconds) will obviously cause flickering on the screen that might be prevented with double buffering stuff. However this might be complicated on the mobile (the implementation should support double buffering to be able to use it), so then try to increase the delay between the (re)paint actions.
The paint method should be clean and simple. Do not use any impressive calculations there. Try to find a balance in using class member variables and local calculations (in the paint method). Try to prevent the usage of local member variables in the paint method, to reduce processor load and heap usage.

Similar Messages

  • My ipod touch has a permanent image of the end of a USB cable with an arrow pointing to an icon of ITunes. I can't reset, and ipod does not appear on itunes when I plug it into the computer.  This happened after I agreed to a failed software update.

    My ipod touch has a permanent image of the end of a USB cable with an arrow pointing to an icon of ITunes. I can't reset using the two button method, and ipod does not appear on itunes when I plug it into the computer - and nothing else happens either.  This happened after I agreed to a software update which failed.  How can I get it going again?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I made a video in imovie and saved it, now i want to carry on making it from where i left but every time i try to add an image onto the end it just goes tot he wrong part of the movie, how do i just add it onto the end?

    I made a video in imovie and saved it, now i want to carry on making it from where i left but every time i try to add an image onto the end it just goes tot he wrong part of the movie, how do i just add it onto the end?

    Have you seen my User Tipp here
    "Movie Magic" with Stills and Dissolve
    When you 'prep' your stills in any 'picture app', you can do a lot of marvel by simply applying dissolves.
    In your case, I would create a white document (in Pixelmator, Keynote, Photshop, online at pixlr.com, whatever ...) and another with your logo (and further more ones with additional logos). Drag the jpgs into your iMovie Project and apply dissolves  - tadahh! - logos appear on white.

  • How to add an image at the end of a video?

    I tried following these instructions https://pantherfile.uwm.edu/type/www/116/SoftwareTutorials/QuickTimePro/DougProu ty_QTPro_Tutorial/QuickTimePro_DougProuty.pdf
    But can't find where to choose the frame rate. So when I add it to my video it goes away so quick you can't even read it.
    Can anyone please help me with this.
    Thank you.

    Those instructions are very old and not intended for a single image.
    In your case you need to give your still image some "time" (duration). Easy to do with QuickTime Player Pro.
    Open any audio file in QuickTime, make a selection (in and out points) that matches the duration you wish for the image file. Let's say an mp3 with a ten second selection. Leave this window open.
    Open your image file in QuickTime. Select All (Edit menu) and Copy. Close this window.
    Switch to your audio file selection. From the Edit menu choose Add to Selection & Scale. You'll see the window expand in dimensions as your image is added.
    Open the Movie Properties window (Windows menu). You'll notice it now has a "Video" track.
    Single click on the Video track and then click the "Extract" button (upper left of the window). The ten second video track will open in a new Player window.
    Close the audio file window without saving.
    Do a "Save As" on the image video track. Give this new .mov file a name and location. Leave the window open.
    Select All and copy the ten second video track. Switch to the movie file you want to add it to and move the playhead to the end. From the Edit menu "Paste" the ten second video. It will be added to the end of the movie.
    Save As (self contained) and name the new video.

  • Jdev9i;JSP;Scroll a page at the end programatically?

    Hi,
    How can i scroll the the page to the end?
    More info: I have a JSP page that shows a database table. In
    some condition I'd like to show the last row in the visible area
    when page is loaded, so if the table is large i should scroll
    the page programatically at loading time. How could i do that?

    .focus() in javascript is a good candidate for this.

  • Changing an image at the end of an animation sequence

    Hello all,
    I'm working on a project where I have a black and white image that starts in Position A and moves to Position B over the course of 1 second (24 fps). When it arrives at Position B (frame 24) I would like for it to convert seamlessly into a color version of the same image. In my head, this seems simple, but I can't get it to work. I have tried three different options so far:
    1. At Position B (frame 24) I tried to drag the color image onto the canvas so that I could simply cover the black and white symbol. However, I receive the message "that object can't be pasted as a tween target".
    2. At Position B (frame 24) I tried to "swap symbols" with the color one. However, when I did that it changed the symbol for the entire animation. So, instead of starting out black and white and then turning to color, it just became color the whole time.
    3. I tried to set the animation to end a frame 23 and then have frame 24 become the color picture. This worked, however, when I add in more images later in the project, instead of all sticking together it creates a small space between the far left image and the image directly to the right.
    Any suggestions?

    Make a graphic symbol with the black and white image on frame 1 and the color image on frame 2. Set it to "Single Frame" When it's animating, that frame should be 1. When it's finished, change the single frame to 2.  If you have problems doing this with the motion applied, try the following:
    Insert a keyframe on the last frame with all the types available.
    Copy the properties of that keyframe, then create a new keyframe on the second-to-last frame of the animation and paste the properties.
    Select the last keyframe, right click and select "Split motion." With the frame still selected, select "Remove motion tween."
    Now you have a frame after the tween where the tween is not applied, but your instance is in the same spot/state as where it ended.
    Actionscript not required!

  • [SOLVED] Append images to the end of a page with apache?

    I don't know if there is any way of doing this, but when viewing the generic apache "Index of /" page on some servers, I see an image at the bottom of the page. Unfortunately, I can't think of any example sites offhand. Is there an option in httpd.conf to do this, or am I crazy? I am positive that what I am talking about is not an image embedded into an HTML page, but an actual image that you can see when browsing files on an HTTP server, usually located by where it displays the system information, hostname, PHP version, etc.
    Thanks
    Last edited by itsbrad212 (2010-07-26 08:05:34)

    It's part of the mod_autoindex module. You give it directives like this to include a HTML file at the top and bottom (respectively) of the auto-generated indexes:
    ReadmeName /FOOTER.html
    HeaderName /HEADER.html
    These files can then be excluded from the index listing:
    IndexIgnore HEADER.html FOOTER.html
    Last edited by fukawi2 (2010-07-26 04:20:10)

  • Go directly to the end of a scroll

    Hello!
    I have a JPanel with a table inside, and avery time I add rows to this table I want the scroll to go to the end... to show the last row, but I dont know how to do this, so any help would be great.
    Here is my code:
        class paneltable extends JPanel
            public paneltable()
                super(new GridLayout(1,0));
                int row = data.getRowCount();
                table = new JTable(data);
                table.setPreferredScrollableViewportSize(new Dimension(1800, 500));
                table.setRowSelectionAllowed(true);
                table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                table.setRowSelectionInterval(row-1, row-1);
                TableColumn column = null;
                int col = table.getColumnCount();
                for (int i = 0; i < col; i++)
                    column = table.getColumnModel().getColumn(i);
                    column.setPreferredWidth(100);
                JScrollPane scroll = new JScrollPane(table);
                add(scroll, BorderLayout.CENTER);
                ListSelectionModel rowSM = table.getSelectionModel();
                rowSM.addListSelectionListener(new ListSelectionListener() {
                    public void valueChanged(ListSelectionEvent e) {
                        if (e.getValueIsAdjusting()) return;
                        ListSelectionModel lsm =
                                (ListSelectionModel)e.getSource();
                        if (lsm.isSelectionEmpty()) {
                            //no rows are selected
                            selectedRow = -1;
                        } else {
                            selectedRow = lsm.getMinSelectionIndex();
                                // selectedRow is selected
        }thanks!

    You could also use
    table.scrollRectToVisible(table.getCellRect(row,column,true));This will (if the table is inside a JScrollPane (which yours is)) scroll to make the cell at the specified row/column visible.

  • Force to scroll to the ende of a IFrame

    Hello experts,
    could anyone please explain me if it is possible to enable a button after scrolling a IFrame until the end of the page?
    PsychoCode:
    Something like this:
    --> If IframeScrollToEnd then enable Button.
    Many thanks
    Marco

    in planning board
    go to the menu path
    Edit ->Show/hide -> Show milestone
    Hide whatever you do not want

  • In iMovie '11 how do I slow down my credits at the end of my movie.  I typed them in, but the speed is too fast.

    I have iMovie '11, and I can't find how to slow down the "credits" I've typed in at the end of my movie.  I guess
    it would be the scrolling speed.

    Credits scroll at the speed that is necessary for the scrolling to complete by the end of the clip.  So, to slow them down, simply prolong the duration of the scrolling credits title clip by selecting and draggging out the yellow boundary.
    Geoff.

  • Visualisation of the end of the text of the JScrollPane

    I have create a JScrollPane with a JTextArea in it, but when the text becomes to long for the windows, a JScrollBar appears, but I must scroll it to see the end of the text.
    Is there any instruction to see automatically the end of the text.
    Thanks.

    Otherwise you have to focus on last input.
    textArea.setCaretPosition( textArea.getDocument().getLength() );
    textArea.updateUI();

  • Row getting added in the end of the scroll

    Hi -
    I am using a scroll area on a page on level 1. The issue iam encountering is that when ever i click the plus sign to add a second or third row (assume one record already exists in scroll 1) , the row gets added in the end of the scroll and also the fields are blank. However as delievered the new row should get added on the top of the scroll meaning 1 of 2 not 2 of 2, and also it should carry forward the values from the prior row. Please any suggestion or help is greatly appreciated.

    I figured it out. The reason it was happening was because, my scroll record had another key field after EFFDT and EFFSEQ, due to which the delivered copy forward logic for new rows in scroll did not work and the row was getting added in the end or after the first blank row always.

  • How do I put a image logo at the end of my video?

    I recently migrated to a Mac from 25 years on a PC, but I'm having trouble with a little problem. I can't find a way to put my logo at the end of the videos I create. I've watched the tutorials, and the logo always ends up cropped, no matter what size I make it. So if I can't do that, is there a way to make a title card with an image instead of text? -- if I can't recreat the transparent logo I want, then maybe I could try thsat.
    To see what Im trying to create, here's an example http://player.vimeo.com/video/24685312. That's my website and it's been down for a couple of weeks, so I'd like any ideas of a solutions anyone has. Thanks -- Matt

    Just like japamac said, but be aware that if you use the fully automatic settings, it will only show as long as the other slides, Don't put too much there!
    You can also use Pages and save as a PDF.
    (PS, you might get better answers if you ask in the form for that software, in this case iDVD)

  • How to upload an Image in the front end application

    Hi friends,
    I have a requirement in the sense, soon after i login into the application with the username and password....
    I will be having an file browse item, in which i need only to upload the images, soon after selecting the picture and if i give upload means, the picture has to populate immediately above the browse item in the front end itself......
    How to achieve it friends, i dont have idea in uploading the images in the front end itself......
    for example: suppose if i want my photo to keep in the front end Soon after i login into the application means, i will select my picture from the file browse item and immediately after giving upload button, i has to come above the browse field in the front end itself.........
    Inorder for getting the image in the front, whether i need to create a separate region where the image has to come soon after given the upload button....
    help me friends, how to achieve it from the scratch........
    Thanks
    Vel Rs

    Hi peter,
    Thanks for the detailed explanation, i have got an link for doing it and this is that
    http://www.dba-oracle.com/t_easy_html_db_file_browse_item.htm
    While referring that link i couldnt able to understand one thing peter, that is
    While creating the Upload button, in the 7th point in the link it is mentioned like
    On the Branching page enter &APP_PAGE_ID. for the Branch to Page field and click Create Button.  Remember the ending period!i couldnt understand what he is trying to say over there......Can you explain that point by going through that link clearly...Whether he is asking me to create what....
    Thanks
    Vel Rs

  • JScrollPane not scrolling to the end of JTable

    Hello,
    I put a table in a scroll pane, and add the scroll pane to a panel. The problem is the scroll pane does not scroll to the end of the table, it always lets me view only the first 37 rows of the table, regardless of how many rows the table actually has. Basically, the scroll pane thinks the table has exactly the same height, no matter how many lines it has. Why is this happening?
    The code is something like
    model = new SearchResultTableModel(false, null, null);
    table = new ResultTable(model);
    scrollPane = new JScrollPane(table);
    mainBox.add(scrollPane);
    If this is important, the table is a bit more complicated, I subclass JTable, use a custom TableModel, several types of cell renderers / editors, so maybe this is why it behaves so strange. How could I tell the scroll pane the table is actually larger?
    Thank you very much, any ideas are highly appreciated,
    Regards from Romania,
    Adi

    Hi,
    fireTableDataChanged() is the easiest way to do it, but also that one, that forces JTable to rerender all visible cells, regardless the fact, that they are already displayed and would not need rerendering - if you add a row - for example row 7 - do fireTableRowsInserted(7,7); instead - so JTable will only render this single row if it is visible in the viewport. If you add a couple of rows, for example row 7 to 227, do fireTableRowsInserted(7,227); - always fire only the correct notifications accordingly to the changes you make, in order to keep the performance of JTable high.
    greetings Marsian

Maybe you are looking for

  • RSSB_GENERATE_AUTHORIZATIONS

    Hi, I don't know whether I should post this question here or within the BI forum. Anyway, I've brought in the structural authorisations from an HR system into the BW DSO's 0HR_PA_" and 0HR_PA_3. I now need to generate the BW related authorisations us

  • Convert OIM single domain in a cluster domain

    Hello All, I have an OIM domain which was at first created as a single instance. Can you provide high level steps to convert it to a cluster? OIM 11.1.1.5 Weblogc 10.3.6 Thanks, Adr

  • Photoshop CS6 CC Version Update Error

      I have been attempting to update my CC version of Photoshop CS6 and keep getting an error U44M1P7, it completely downloads the update installs to 99% then fails with this error.

  • Trouble Exporting photos directly to picasa

    My iPhoto 11 does not have the option to export from iphoto to picasa.  I had an earlier edition of iPhoto which allowed this, and I read in the instructions that this is possible, so why is it not for me. Thank you

  • "there was an error installing the software"???

    Hi. Recently I upgraded to a newer version of iTunes on my old iBook G4. The new iTunes wouldn't open without a new (7.5.5 or later) version of Quicktime. I downloaded the new Quicktime, but I can't install it. The installation runs normally until th