How to draw  blinking coursor on J2ME canvas.?

Hi..esperts
I have draw a TextField on canvas. i want to draw a blinking cursor on TextField also.
cursor will change position as characters are drawn in TextField .
how i can do that.
please suggest me.
Thanks and Regards

Don't cross post. Once is enough.
I'm locking this thread. All responses on
[http://forums.sun.com/thread.jspa?threadID=5345819]
db

Similar Messages

  • How to Draw 3-D scatter plot in J2ME?

    HI all
    I am new in J2ME And I need to draw a three dimensional scatter plot in J2ME application. Can any body help me how to do so? It's urgent and I am eagerly waiting for your response. Even if you can tell me how to draw a 3-D point like (x,y,z)=(3,5,8) in J2ME?

    I've removed the thread you started in the Java3D forum.
    db

  • Can you change the canvas size in AI CC . If so how? Not the artboard but the canvas behind it. I have a large cad drawing.

    Can you change the canvas size in AI CC . If so how? Not the artboard but the canvas behind it. I have a large cad drawing.

    Vandushia,
    The Workspace size is fixed, 16,384 points.
    I am afraid you will have to work in a suitable scale, which could be 1:2, 1:4, 1:10, or whatever is most convenient.

  • How to draw a perfect circle and how to make sure it is perfectly centered inside a square

    How to draw a perfect circle and how to make sure it is perfectly centered inside a square in Photoshop elements using the Ellipse option.

    1. Create a square canvas.
    2. With the Elipse tool, hold down Shift (Shift forces a circle). Draw the circle anywhere on the canvas (Shape 1 in this example).
    3. Simplify the circle layer
    4. Ctrl-click the layer to select the circle.
    5. Copy the selection to the clipboard (Edit > Copy).
    6. Deselect the selection.
    7. Paste from the clipboard (Edit > Paste). The pasted circle (Layer 1) will be centered.
    8. Delete the original circle layer.
    NOTE: Step 6 is the key. This guarantees that the pasted circle will be centered.
    If you want a circle completely within a square you can simply draw and simplify a circle on any shape canvas. Ctlrl-click the circle to to select it and copy to the clipboard.
    Then do File > New from Clipboard. This creates the circle cropped to a square on transparent background.

  • How do draw square in application

    Hi,
    am learing java and am trying to develop a stand alone application ( not applet) by using pure AWT. In my application I want to use rectangle as a border to my window. Can any one tell me how to draw a rectangle in application. Thanks a lot.

    but I am writing an application not an applet, in applet
    you have paint methond application do not have paint
    methodAu contraire (sp?)... you have a window (or a frame), which has a paint method. Chances are you are placing components inside your frame/window, all of which have paint methods.
    The simplest way to paint a rectangle into a window is to create a subclass of Canvas and override the paint method to draw the rectangle. This canvas then gets placed in the window. Keep in mind that this approach becomes less appropriate if you want your rectangle to frame other components... that requires a more creative approach with paintable Panels.

  • How to save simple graphics drawn on canvas as gifs, bitmaps, etc.

    I figured out how to draw a graphics object which is abstract for an application rather than an applet. Now, my question is, how do I save these simple graphics (lines, rectangles, circles,etc) drawn on canvas as gifs, bitmaps, etc. so that they may later be opened using other graphical viewers.
    another question I was wondering was if graphics is a AWT only class (ie no better swing equivalent)
    thanks

    some things i have found so far are acme or java advanced imaging api... anyone know what is easier to use for my purpose?
    it appears that when using acme, i need to use java.awt.image (does that mean I would have to convert the canvas to an image?) how do i save in gif format using java advanced imaging?
    Please help

  • How to draw horizontal line in smartform after end of the all line items

    Hi Friends,
    I am working on the smartform. I have created TABLE node in Main window.
    i want to draw a horizontal line after end of the main window table node. i mean after printing all the line items of the table, I need to print one horizontal line.
    Could you please help me how to resolve this issue.
    FYI: I tried with the below two options. But no use.
    1. desinged footer area in the table node of the main window.
    2. tried with uline and system symbols.
    please correct me if i am wrong. please explain in detail how to draw horizontal line after end of the main window table.
    this is very urgent.
    Thanks in advance
    Regards
    Raghu

    Hello Valter Oliveira,
    Thanks for your answer. But I need some more detail about blank line text. i.e thrid point.
    Could you please tell me how to insert blank line text.
    1 - in your table, create a line type with only one column, with the same width of the table
    2 - in table painter, create a line under the line type
    3 - insert a blank line text in the footer section with the line type you have created.

  • How To Show Blinking Cursor In Text Input Control

    Hi,
    How to show blinking cursor in a text input control?
    I am using this for login page
    Thanks.

    Hi!
    you can try this!
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" horizontalAlign="center">
    <mx:VBox horizontalAlign="center" paddingTop="100">
    <mx:HBox horizontalAlign="center">
    <mx:TextInput id = "textinput1" />
    <mx:Spacer width="10"/>
    <mx:TextInput id = "textinput2" />
    </mx:HBox>
    <mx:Spacer height="50"/>
    <mx:HBox horizontalAlign="center">
    <mx:Button label="setfocus1" click="setTextInputFocus1(event)"/>
    <mx:Spacer width="5"/>
    <mx:Button label="setfocus2" click="setTextInputFocus2(event)"/>
    </mx:HBox>
    </mx:VBox>
    <mx:Script>
    <![CDATA[
    private function setTextInputFocus1(evt:Event):void{
    textinput1.setFocus();
    textinput1.setSelection(textinput1.text.length,textinput1.text.length);
    private function setTextInputFocus2(evt:Event):void{
    textinput2.setFocus();
    textinput2.setSelection(textinput2.text.length,textinput2.text.length);
    ]]>
    </mx:Script>
    </mx:Application>

  • How to upload pdf file in a canvas in flex web application?

    how to upload pdf file in a canvas in flex web application?

    Hey saif.antri,
    You can view PDFs and more using iBooks on your iPhone:
    iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch
    http://support.apple.com/kb/HT4227
    Have a great day,
    Delgadoh

  • How to draw text vertically, or in an angle

    please help me how to draw text vertically, or in an angle

    I robbed the framework from Dr Las or 74phillip (don't remember which) ...
    import java.awt.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class AngleText extends JPanel {
      private int      degrees = 16;
      private JSpinner degreesSpinner;
      public AngleText () {
        setBackground ( Color.WHITE );
      }  // AngleText constructor
      protected void paintComponent ( Graphics _g ) {
        super.paintComponent ( _g );
        Graphics2D g = (Graphics2D)_g;
        g.setRenderingHint ( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );
        AffineTransform at = AffineTransform.getRotateInstance ( Math.toRadians ( degrees ) );
        Font f =  g.getFont();
        g.setFont ( f.deriveFont ( at ) );
        g.drawString ( "Rotating Text!", getWidth()/2, getHeight()/2 );
        g.setRenderingHint ( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF );
      }  // paintComponent
      public JPanel getUIPanel () {
        SpinnerModel degreesModel = new SpinnerNumberModel (
                                      degrees  // initial
                                     ,0        // min
                                     ,360      // max
                                     ,2        // step
        degreesSpinner = new JSpinner ( degreesModel );
        degreesSpinner.addChangeListener ( new DegreesTracker() );
        JPanel panel = new JPanel();
        panel.add ( degreesSpinner );
        return panel;
      }  // getUIPanel
      //  DegreesTracker
      private class DegreesTracker implements ChangeListener {
        public void stateChanged ( ChangeEvent e ) {
          Integer i = (Integer)((JSpinner)e.getSource()).getValue();
          degrees   = i.intValue ();
          repaint();
      }  // DegreesTracker
      //  main
      public static void main ( String[] args ) {
        JFrame f = new JFrame ( "AngleText" );
        f.setDefaultCloseOperation ( JFrame.EXIT_ON_CLOSE );
        AngleText app = new AngleText();
        f.getContentPane().add ( app );
        f.getContentPane().add ( app.getUIPanel(), BorderLayout.SOUTH );
        f.setSize ( 200, 200 );
        f.setVisible ( true );
      }  // main
    }  // AngleText

  • How to draw vertical lines in SMART FORMS

    Hi Guys,
    Can anyone please let me know how to draw vertical and horizontal lines in smart forms, i have to do this in the secondary window.
    thanks,
    Ramesh

    Hi Ramesh,
    In the window output options you have option of check box to get lines.
    Then you need to give the spacing for vertical and horizontal.
    Another option is putting a template on window and getting the boxes, but it is quite little bit complex.
    Put the cursor on the WINDOW in which the lines you want.
    Right click on it>create>complex section.
    In that select the TEMPLATE radio button.
    Goto TAB TEMPLATE.
    Name: give some name of line.
    From: From coloumn.
    To: To coloumn
    Height: specify the height of the line.
    Next give the coloumn widths.
    Like this you can draw the vertical and horzontal lines.
    If the above option doesnot workout then u can try the below option also
    any how you can draw vertical and horizontal lines using Template and Table.
    for Template First define the Line and divide that into coloumns and goto select patterns and select the required pattern to get the vertical and horizontal lines.
    For table, you have to divide the total width of the table into required no.of columns and assign the select pattern to get the vertical and horizontal lines.
    if this helps, reward with points.
    Regards,
    Naveen

  • I would like to know how to draw up a list in a cell (like a pull-down menu) to ease data capture, but I don't know how to do that  ! Do you get the idea ? Thanks !

    I would like to know how to draw up a list in a cell (like a pull-down menu) to ease data capture, but I don't know how to do that  !
    Do you get the idea ?
    Thanks ever so much !

    the numbers manual can be downlaoded from this website under the Apple support area...
    http://support.apple.com/manuals/#numbers
    What your looking for is written out step by step for drop downs and all other special types of user input starting around page 96 in the '09 manual.
    Jason

  • How to draw horizontal line at the end of table for multiple line items

    Dear Experts,
                       Pls can anyone help me how to draw horizontal line at the end of table for multiple line items . kindly help me regarding this
    Thanks
    Ramesh Manoharan

    Hi
       I tried as per your logic but it is not solving my problem .  when i am gone to table painter it is showing line type 1 and line type 2
      is below format.. if u see here line type 1 bottom line and line type 2 top line both are same..  so how to avoid this ?
                              line type 1
                             line type 2

  • How to draw table in layout in module pool

    how to draw table in layout in module pool with wizard or table control

    Hi
    Goto Screen Painter .
    here we can create table in 2 ways,
    with wizard and without wizard.
    with wizard it will step by step...
    for without wizard (its quite easy)
    Click Table control and Drag into ur screen.
    then --> click input box and place into to that table control
    for two column do this two times.
    then for header click the text icon in left side and drag into
    correspoding places .. then ur table is ready..
    then give names using double clicking the elements
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    Reward if useful.

  • How to draw 2D shapes on the image generated by JMF MediaPlayer?

    Hello all:
    IS there any way that we can draw 2D shapes on the image generated by JMF
    MediaPlayer?
    I am currently working on a project which should draw 2D shapes(rectangle, circle etc) to
    mark the interesting part of image generated by JMF MediaPlayer.
    The software is supposed to work as follows:
    1> first use will open a mpg file and use JMF MediaPlayer to play this video
    2> if the user finds some interesting image on the video, he will pause the video
    and draw a circle to mark the interesting part on that image.
    I know how to draw a 2D shapes on JPanel, however, I have no idea how I can
    draw them on the Mediaplayer Screen.
    What technique I should learn to implement this software?
    any comments are welcome.
    thank you
    -Daniel

    If anyone can help?!
    thank you
    -Daniel

Maybe you are looking for