Problem in TextField...

I've been having a problem in a TextField. I'm getting a 'nullPointerException' when events of all types (Mouse, Action, etc.) are being sent up the EventQueue chain.
The output says: 'null pData'
from the class:
sun.awt.windows.WInputMethod.handleNativeIMEEvent
Has anyone seen this 'null pData' error before, or does anyone know what it means and what its used for? That information would help me a lot. Thanks!

Unfortunately, it's a big app and I'm affraid that the bug exists in the .jar file. The .jar file contains a browser program using some Mozilla browser code. I searched the bug database and found some useful information. I'm gonna run with that and see what happens.

Similar Messages

  • Problem with TextField formatting

    I'm having a little bit of a problem with this very basic bit
    of code. The following code works fine: (I apologize for not having
    it in a format that may be more suitable)
    this.createTextField("my_text", this.getNextHighestDepth(),
    10, 70, 400, 100);
    my_text.text = "This is my TextField.";
    //my_text.embedFonts = true;
    However, for some reason, this doesn't work. I'm baffled by
    why uncommenting this simple line of code makes it not show up:
    this.createTextField("my_text", this.getNextHighestDepth(),
    10, 70, 400, 100);
    my_text.text = "This is my TextField.";
    my_text.embedFonts = true;
    Any help would be appreciated.

    My guess is that you forgot a few things to work with
    embedded fonts...
    1) Have you embedded the font you want to use inside your
    library and given it a unique id.
    2) If you did #1, try this...

  • GUI problem with textfields, reading in text from a textpad

    Alright well, here is my problem. I am having trouble with aliging the textfields to how I want it but I can't get it to come out how I want it. First, I am trying to figure out how to have the some text appear right above a textfield. Example:
    File Name
    I can't get it appear that way, the text appears side to side with the textfield. And the other problem is how can I made the size of textfield to how I want it. I was reading that you have to assign a specfic number in the text field.
    This is the code I have so far:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class IP_Header extends JApplet
    private JTextField lookUp, showInfo;
    private JButton analyze;
    private JLabel msg;
    public void init()
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(3,2));
    p1.add(new JLabel("File Name"));
    p1.add(lookUp = new JTextField());
    p1.add(analyze = new JButton("Analyze"));
    p1.add(showInfo = new JTextField());
    msg = new JLabel(" ");
    Container cp = getContentPane();
    cp.setLayout(new BorderLayout());
    cp.add(p1, BorderLayout.NORTH);
    With this what I am tryin to do is as follows:
    File Name
    * "TextField" * *
    **************** * This is a textfield where I am just going to
    * have some text appear in it
    * "Button" * *
    Thank you for your help. I hope you can help me. I haven't done java for a quite a while. Thanks again

    Thanks for help ... really helpful and understanding. I am trying to read a file from the computer which has some numbers in it and I want those numbers to be shown on the textfields individually. The numbers are in a notepad file and they are .... 4, 5, 200, 780, 1, 0, 0, 12, 6, 0, 129, 24, 21, 44, 133, 62, 159, 7. I got the program to compile and everything by adding the code that I believe should work . But whenever I put the file name in and press the button analyze ... it gives me a error saying "Exception: access denied (java.io.FilePermission c:\TCP read) .. can't quite get it ...here the code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import java.util.*;
    public class IP_Header extends JApplet
        private JTextField lookUp, showInfo;
        private JButton analyze;
        private JLabel msg;
        public void init()
            GridBagLayout gridbag = new GridBagLayout();
            JPanel p1 = new JPanel(gridbag);
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.gridwidth = gbc.REMAINDER;     // one component per row
            gbc.insets = new Insets(0,20,5,0); // spacer [top, left, bottom, right]
            gbc.weightx = 1.0;                 // allows horizontal placement
            gbc.anchor = gbc.WEST;             // align left
            p1.add(new JLabel("File Name"), gbc);
            p1.add(lookUp = new JTextField(16), gbc);
            p1.add(analyze = new JButton("Analyze"), gbc);
            p1.add(showInfo = new JTextField(16), gbc);
            // center section of content pane border layout
            // First Panel - 2 rows, 4 columns
            JPanel p2 = new JPanel(gridbag);
            gbc.insets = new Insets(2,0,0,0);
            gbc.anchor = gbc.CENTER;
            JTextField verText = new JTextField(8);
            JTextField HLENText = new JTextField(8);
            JTextField ServiceType = new JTextField(8);
            JTextField TotalText = new JTextField(8);
            gbc.gridwidth = 1;
            p2.add(new JLabel("VER"), gbc);
            p2.add(new JLabel("HLEN"), gbc);
            p2.add(new JLabel("Service Type"), gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p2.add(new JLabel("Total Length"), gbc);
            gbc.gridwidth = 1;
            p2.add(verText, gbc);
            p2.add(HLENText, gbc);
            p2.add(ServiceType, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p2.add(TotalText, gbc);
            // Second Panel - 4 rows, 3 columns
            JPanel p3 = new JPanel(gridbag);
            JTextField fragText = new JTextField(8);
            JTextField flags = new JTextField(8);
            JTextField fragOffText = new JTextField(8);
            gbc.insets = new Insets(5,0,0,0);
            gbc.gridwidth = 1;
            p3.add(new JLabel("Fragmentation ID"), gbc);
            p3.add(new JLabel("Flags"), gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p3.add(new JLabel("Fragmentation Offset"), gbc);
            gbc.insets = new Insets(2,0,0,0);
            gbc.gridwidth = 1;
            p3.add(fragText, gbc);
            p3.add(flags, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p3.add(fragOffText, gbc);
            JTextField ttlText = new JTextField(8);
            JTextField protocolText = new JTextField(8);
            JTextField headText = new JTextField(8);
            gbc.insets = new Insets(5,0,0,0);
            gbc.gridwidth = 1;
            p3.add(new JLabel("TTL"), gbc);
            p3.add(new JLabel("Protocol"), gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p3.add(new JLabel("HeaderChecksum"), gbc);
            gbc.insets = new Insets(2,0,0,0);
            gbc.gridwidth = 1;
            p3.add(ttlText, gbc);
            p3.add(protocolText, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p3.add(headText, gbc);
            // Third Panel - 4 rows, 4 columns
            JPanel p4 = new JPanel(gridbag);
            JTextField sIP1text = new JTextField(4);
            JTextField sIP2text = new JTextField(4);
            JTextField sIP3text = new JTextField(4);
            JTextField sIP4text = new JTextField(4);
            gbc.insets = new Insets(5,0,0,0);
            gbc.gridwidth = 1;
            p4.add(new JLabel("SourceIP"), gbc);
            p4.add(new JLabel(" "), gbc);
            p4.add(new JLabel(" "), gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p4.add(new JLabel(" "), gbc);
            gbc.insets = new Insets(2,0,0,0);
            gbc.gridwidth = 1;
            p4.add(sIP1text, gbc);
            p4.add(sIP2text, gbc);
            p4.add(sIP3text, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p4.add(sIP4text, gbc);
            JTextField dIP1text = new JTextField(4);
            JTextField dIP2text = new JTextField(4);
            JTextField dIP3text = new JTextField(4);
            JTextField dIP4text = new JTextField(4);
            gbc.insets = new Insets(5,0,0,0);
            gbc.gridwidth = 1;
            p4.add(new JLabel("Destination IP"), gbc);
            p4.add(new JLabel(" "), gbc);
            p4.add(new JLabel(" "), gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p4.add(new JLabel(" "), gbc);
            gbc.insets = new Insets(2,0,0,0);
            gbc.gridwidth = 1;
            p4.add(dIP1text, gbc);
            p4.add(dIP2text, gbc);
            p4.add(dIP3text, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p4.add(dIP4text, gbc);
            JPanel panel = new JPanel(gridbag);
            gbc.fill = gbc.HORIZONTAL;
            gbc.insets = new Insets(0,5,0,5);
            panel.add(p2, gbc);
            panel.add(p3, gbc);
            panel.add(p4, gbc);
            msg = new JLabel(" ");
            Container cp = getContentPane();
            cp.setLayout(new BorderLayout());
            cp.add(p1, "North");
            cp.add(panel);
            setSize(450,375);
             analyze.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        String array[] = new String[18];
                        String blankString = new String();
                        String tempString = lookUp.getText();
                        showInfo.setText(array[0]);
                        try
                             FileReader fr = new FileReader(tempString);
                             BufferedReader br = new BufferedReader(fr);
                             String line = br.readLine();
                             StringTokenizer st = new StringTokenizer (line,",");
                             for (int i=0; i<=18; i++)
                                  array[i] = st.nextToken().trim();
                        catch(Exception f)
                             System.out.println("Exception: " + f.getMessage());
    }

  • Problem using TextField & CustomItem in a Single Form

    Hi all, I developed a mobile appliction with j2me. I append a customItem and then a textField in a Form. And when testing in Nokia N95, i'm getting a weired bug.
    The bug ::
    when i try to write the first character of the second line in that text field, an extra character in appended in that textField automatically (the extra character is the first character of the pressed button).
    i tried it in a form having only one textField. the bug doesnt exist there.
    Please help me with this matter. Is there any alternate?

    Hi,
    I am having the same problem. The tripple tap doesn't work when you type from one line into the next.
    Was any workaround or fix ever discovered?
    Regards.

  • [FLASH MX] problem with textfield et numeric variable

    hi everyone
    I want to make an automatic slideshow
    i ve an editable textfield ("tempo") in wich the user write
    numbers ... for
    me this number should be a variable the user can change
    This value will allow me to deal as a tempo that will load
    picture each
    second or 2 sec ...
    here is the function :
    _global.tempo = Number(tempo.text);
    filename = ["img01.jpg", "img02.jpg", "img03.jpg",
    "img04.jpg",
    "img05.jpg"];
    path = "images/";
    clearInterval(displayI);
    function displayF() {
    var k = Math.floor(Math.random()*filename.length);
    while (k == prevIndex) {
    k = Math.floor(Math.random()*filename.length);
    loadMovie(path+filename[k], my_mc);
    prevIndex = k;
    displayF();
    //button action:
    BTrandom.onPress = function() {
    displayI = setInterval(displayF, tempo);
    updateAfterEvent();
    trace(tempo);
    the textfield is of course editable.
    i ve put a trace on thetempo value the problem is that when i
    clic on the
    BTrandom button
    the value doesn't change, it keeps the original one
    i would be realy please if someone help me to find why it
    doesn't work as i
    would ...
    thanks a lot

    Have a look at:
    http://xtrema.rtr.gr/cDown/files/xTextMem_convertToAnsi.rar
    This includes both a new unicode rtf member, and a method to
    convert unicode
    text to ansi text that director can display.
    The text member can display any language and also supports
    embedding images.
    The conversion will not work if the text includes multi-byte
    characters -
    you'll be prompted if such characters exist.
    So, try if it works for your docs, and then we'll see what we
    can do so that
    > ..which means LOT of pain..
    does not happen.
    P.S. Hyperlink translation was not enabled in the Xtra
    version used by the
    app.
    "Blade75" <[email protected]> wrote in
    message
    news:f9c14e$1rs$[email protected]..
    > Hi everybody!
    > I have some applications made with Director MX 2004, and
    I have to convert
    > the
    > writings to polish language. I have the translations in
    a word .doc file,
    > and I
    > found out that when I paste the text into Director, the
    accented and
    > special
    > polish letters don't display in Director correctly. It
    shows the empty
    > square
    > or strange wrong characters, as it could not map the
    font correctly. I
    > tried to
    > embed the font, but it still does not work. At first I
    thought I messed up
    > with
    > the font, as the font was manually edited to add the
    special letters (but
    > the
    > font does work in every other application... photoshop,
    flash, word et
    > cetera).
    > But the problem remains even if I use/embed a "standard"
    window font like
    > Times New Roman, Arial and so on. It seems that Director
    is refusing to
    > use
    > correctly the font, even if I embed it entirely as full
    set.
    >
    > Now, is there a solution to this? Is it "normal"? Or
    have I to resign
    > myself
    > and convert all the text to images...which means LOT of
    pain :(
    >
    > Thank you in advance,
    > Bl@de
    >

  • Problems with TextField in Window (jre 1.4.2)

    Hi,
    I have a problem with the following code, which used to run o.k. on older vm's:
    <CODE>
    import java.awt.*;
    import java.awt.event.*;
    class TFTest extends Window {
         public TFTest(Frame frame) {
              super(frame);
              TextField tf = new TextField("Hello!");
              tf.setEditable(true);
              tf.requestFocus();
              add(tf);
         public static void main(String args[]) {
              System.out.println("Starting MAPP ParentGui...");
              Frame frame = new Frame("TFTest");
              TFTest mainFrame = new TFTest(frame);
              mainFrame.setSize(240, 320);
              mainFrame.setVisible(true);
    </code>
    The TextField doesn't seem to become editable whatever I change....
    gr,
    Peter

    Two problems:
    1. You must make parent Frame visible to make child Window focusable(see Javadoc for Window.isFocusable)
    2. You request focus on the component before adding it to the top-level. Make sure you first add component, then request focus on it.

  • A Problem with TextFields?

    I have a form that edits a table
    It is fine when you use the form to create a record for the table, however when you edit an existing record the textfields only let you edit the text if you either delete some white space after the text or a few chars from the field but only the number of chars you remove? is there a way to stop this. I have recreated this form and i still get the same problem. It only seems to be this one application though?
    Would apreciate some help Thanks
    LT

    LT,
    "...the textfields only let you edit the text if you either delete some white space after the text or a few chars from the field but only the number of chars you remove? is there a way to stop this..."
    I am not sure I understand what the problem is. Could you explain that a bit more in
    details?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/apex/f?p=107:7
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Problem with Textfield autocomplete -- only uses the INSTR function

    Hi dev team,
    I use the new APEX "textfield autocomplete" item type and got a really damn problem with it.
    I have a table with an index on the same column which I want to search with the autocomplete field.
    Index:
    CREATE BITMAP INDEX TEST.GEO_DATA_IDX1 ON TEST.GEO_DATA (postcode)
    NOLOGGING TABLESPACE TS_INDEX;Select which is automatically generated by APEX 4:
    SELECT   a.*
      FROM   (  SELECT   DISTINCT postcode AS RV
                  FROM   TEST.GEO_DATA
                 WHERE   country_id = :P1_COUNTRY
              ORDER BY   1) a
    WHERE   INSTR ("RV", :p$_search_string) > 0 AND ROWNUM <= :p$_max_rows;
    -- plan
    Plan
    SELECT STATEMENT  ALL_ROWSCost: 4,308  Bytes: 45,31  Cardinality: 1,97            
         2 SORT UNIQUE  Cost: 4,307  Bytes: 45,31  Cardinality: 1,97       
              1 TABLE ACCESS FULL TABLE #TABLE# Cost: 4,306  Bytes: 47,311  Cardinality: 2,057  In APEX 3 I used the addon from Tyler Muth with my own Select:
    SELECT   DISTINCT
                postcode AS DV,
                postcode AS RV
         FROM   TEST.GEO_DATA
         WHERE   country_id = L_COUNTRY
         AND    postcode like l_search||'%'
         ORDER BY 1
    -- Plan
    SELECT STATEMENT  ALL_ROWSCost: 840  Bytes: 152,867  Cardinality: 13,897                                
         8 SORT ORDER BY  Cost: 840  Bytes: 152,867  Cardinality: 13,897                           
              7 HASH UNIQUE  Cost: 838  Bytes: 152,867  Cardinality: 13,897                      
                   6 VIEW VIEW index$_join$_001 Cost: 836  Bytes: 232,111  Cardinality: 21,101                 
                        5 HASH JOIN            
                             2 BITMAP CONVERSION TO ROWIDS  Cost: 31  Bytes: 232,111  Cardinality: 21,101       
                                  1 BITMAP INDEX RANGE SCAN INDEX (BITMAP) #INDEX#
                             4 BITMAP CONVERSION TO ROWIDS  Cost: 45  Bytes: 232,111  Cardinality: 21,101       
                                  3 BITMAP INDEX SINGLE VALUE INDEX (BITMAP) #INDEX#Is there a chance getting my INDEX used by the new APEX item? I guess not. But I still want to ask before I rebuild everything. :)
    Best regards,
    Tobias

    Hi Tobias,
    I assume you are currently using "Contains & Case Sensitive" for the "Search" attribute. Have you already tried out "Exact & Case Sensitive"? Because that will internally use the LIKE operator as your original query does and because the % is at the end it should enable the use of an index. But it might still not work, because the ORDER BY might be executed at a different time than in your original example, but it's worth a try.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Problem updating textField via menuItem

    I am new to java and I am having a problem getting a menuItem to update a text field in my swing app. The following code is a striped down version but contains the necessary code to repeat my problem.
    I'm sure it is something fairly simple, but have had no luck finding a solution. All I want is for a menuItem to update the textfield once selected.
    How can I fix this?
    Please help.
    /*  this class test an implementation of JmenuItem and textfield
    where the menuItem is suppose to update the text in the textField*/
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MenuItemTest
        private GridBagLayout layout;
        private GridBagConstraints constraints;
        private JTextField termField;
        private JLabel headerLabel;
        private JLabel termLabel;
        private JMenuBar menuBar;
        private JMenu menu;
        private JMenuItem menuItem;
        public MenuItemTest()
            // create GUI components
            headerLabel = new JLabel("ItemMenu TextField Test");
            termLabel = new JLabel("Field:");
            termField = new JTextField("choose MenuItem");
        public Container createContentPane()
            //Create the content-pane-to-be.
            JPanel contentPane = new JPanel(new BorderLayout());
            contentPane.setOpaque(true);
            layout = new GridBagLayout();// new gridbaglayout
            JPanel p = new JPanel(layout); // set frame layout
            constraints = new GridBagConstraints(); // instantiate constraints
            // add components to JPane     
            setConstraints( 1,0,6,1,1,10);
            p.add(headerLabel,constraints);
            setConstraints( 2,1,1,1,1,2);
            p.add(termLabel,constraints);
            setConstraints(2,2,2,1,1,2);
            p.add(termField,constraints);
            contentPane.add(p, BorderLayout.CENTER);
            return contentPane;
        }// end createContentPane()
        // method for simplifying grabBagConstraints
        private void setConstraints(int row, int column, int width, int height,
                                    int fill, int ipady)
             constraints.gridx = column; // set gridx
             constraints.gridy = row; // set gridy
             constraints.gridwidth = width; // set gridwidth
             constraints.gridheight = height; // set gridheight
            constraints.insets = new Insets(1,1,0,0);//set uniform vertical gap
            constraints.fill = fill;
            constraints.ipady = ipady;
        }// end method addComponent
        //class for build menu bar
         public class MCalMenu
            public JMenuBar createMenuBar()
                //implements menu handler
                MenuHandler handler = new MenuHandler();
                //Create the menu bar.
                menuBar = new JMenuBar();
                menu = new JMenu("Menu");
                menuBar.add(menu);
                //a group of JMenuItems
                menuItem  = new JMenuItem("Preset Field 1");
                menuItem.addActionListener(handler);
                menu.add(menuItem);
                menuItem = new JMenuItem("Preset Field 2");
                menuItem.addActionListener(handler);
                menu.add(menuItem);
                menuItem = new JMenuItem("Preset Field 3");
                menuItem.addActionListener(handler);
                menu.add(menuItem);
                return menuBar;
            }// end createMenuBar method
        }//end class MCalMenu
        // class for menu events
        public class MenuHandler extends JDialog implements ActionListener
            public void actionPerformed(ActionEvent e)
                if ( e.getActionCommand() == "Preset Field 1")
                    termField.setText("1");
                }//end if
                else if (e.getActionCommand() == "Preset Field 2")
                    termField.setText("2");
                }//end else if
                else if (e.getActionCommand() == "Preset Field 3")
                   termField.setText("3");
                }//end else if   
            }// end actionPerformed method
        }// end MenuHandler class
        public void createAndShowGUI()
            JFrame frame = new JFrame("MenuItem TextField Update Fail");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            MenuItemTest myMenuItemTest = new MenuItemTest();
            MCalMenu myMCalMenu = new MCalMenu();
            frame.setJMenuBar(myMCalMenu.createMenuBar());
            frame.setContentPane(myMenuItemTest.createContentPane());
            frame.setSize(200, 200);
            frame.setVisible(true);
        public static void main(  String args [] )
            MenuItemTest myMenuItemTest = new MenuItemTest();
         myMenuItemTest.createAndShowGUI();
    }

    I think that your problem is that your createAndShowGUI method is creating two separate and distinct objects when you run this program: a MenuItemTest object and a MCalMenu object. As distinct objects, they don't share instance variables which means that this program has two termField JTextFields, one which is visible and the other which is not visible and which you are trying to change. This won't work.
    The other problem is here:
    if ( e.getActionCommand() == "Preset Field 1")don't compare strings with ==. Better to use the String method equals(...)

  • Problem with textfields

    I add in stage four textfields naming letter1, letter2 ...
    I want with a button click to add text in someone of this textfields.
    This is the code.
    for (var i:Number = 0; i<4; i++) {
    var txtFld:TextField = new TextField();
    txtFld.name = "letter"+i
    addChild(txtFld)
    myBtn.addEventListener(MouseEvent.CLICK, PutLetter);
    function PutLetter(ev) {
    letter1.text = "Billy"
    Then in the output shows:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at Untitled_fla::MainTimeline/PutLetter()
    I can't manage this...
    Please help!!!

    If you are familiar with AS2, then you need to understand that in AS3 the name assigned to a dynamically created object, such as your textfield(s) is a mere string property... it is no longer a direct targeting element of an object.  What you need to do is utilize the getChildByName() method to use that name...
    myBtn.addEventListener(MouseEvent.CLICK, PutLetter);
    function PutLetter(ev:MouseEvent) {
        TextField(this.getChildByName("letter1")).text = "Billy";
    If you manually place the object on the stage in the editor, then the instance name you assign to it in the properties panel can be used to target it.

  • Major problem with textfields set to TLF

    Looks like the garbage collector is not removing movieclips that have textfields set to TLF. I'm using Flash Builder's profile inspector and TLF brings in a bunch of objects and prevents the clip from being removed by the garbage collector (including all the objects that TLF put in memory).
    How could Adobe release CS5 with such a crappy implementation of text? If there is no solution I will have to avoid using TLF text for all my projects. I strongly suggest everyone avoid TLF.

    The solution is to use dynamic TLF textfields. Create them using actionscript.
    What I did in my project was use classic textfields just for layout purposes and then remove them with actionscript and replace them with a TLF textfield. In the destroy function for your class make sure you remove the TLF from the stage and set it's variable to null.
    Everywhere else in project where I didn't need TLF i switched back to Classic text fields.
    I needed the TLF for emoticons in a chat application. TLF will throw some items in memory when it loads the swz file.
    If you don't need TLF avoid it.

  • [Flash mX] probleme Number( textfield) et value correspondante

    bonjour
    je veux faire un slideshow qui peut etre mis en automatique
    Le probleme est que je n arrive pas a passer la valeur que je
    tape dans le
    champs de texte (qui gere la vitesse de defilement des
    images) en tant que
    variable :
    Voici la fonction :
    _global.tempo = Number(tempo.text);
    filename = ["img01.jpg", "img02.jpg", "img03.jpg",
    "img04.jpg",
    "img05.jpg"];
    path = "images/";
    clearInterval(displayI);
    function displayF() {
    var k = Math.floor(Math.random()*filename.length);
    while (k == prevIndex) {
    k = Math.floor(Math.random()*filename.length);
    loadMovie(path+filename[k], my_mc);
    prevIndex = k;
    displayF();
    //pour le bouton qui lance le defilement auto :
    BTrandom.onPress = function() {
    displayI = setInterval(displayF, tempo);
    updateAfterEvent();
    trace(tempo);
    ---------------------------------------------le champs a beau
    etre editable
    quand je clique sur mon BTrandom celui ci m affiche toujours
    la meme valeur
    de depart ...
    Tout aide serait tres bienvenue car je m epuise sur une
    pecadille depuis ce
    matin
    Merci

    Personne n'a une quelconque piste ??
    Please help !

  • Re: Problem regarding textfield

    [url http://java.sun.com/docs/books/tutorial/uiswing/events/documentlistener.html]How to Write a Document Listener
    As I understand the question you have 3 entry fields and 2 display fields. So I would add a DocumentListener to the 3 entry fields. Then when any other the fields change you will be notified and you can recalculate the value of the 2 display fields. Using a DocumentListener you don't force the user to press enter or tab to a new field as a DocumentEvent is fired for every character typed.
    If you only want to recalculate the display fields when the user is finished entering data in a text field then you could use a FocusListener or an ActionListener.

    Thanks for all informatiom cramcirk.
    Now I have further few questions to you....
    I am using 2 textfields for calculation of third text field.
    When I insert some thing in 1st textfield I get null pointer exception for textfield number 2.
    How and where I have to check the source like what we do in case of ActionEvent
    as ae.getSource() == btnLast where if source is btnLast then do follwing.
    Regards
    Rakesh

  • Big Problem Whit TextField

    Hi
    I write an Applet and Set a textfield font by this command:
    textfild.setFont(new java.awt.Font("Tahoma", 0, 16));
    Tahoma Font is install on my computer and work in other program such as MS-Word but I never can use it in my applet becuse it dose not work and my textfield use of defualt Font.
    I build my Applet by Borland JBuilder 6 Personal and Tahoma and other font's dont show in in JB6 select font dialog box.
    jb6 font dialog only show
    Dialog
    SansSerif
    Serif
    MonoSpaced
    DialogInput
    now , how can I append Windows font in JB6 font list or how can I use Tahoma or other windows font in my textfield
    thanks and sorry for my bad grammer

    Hi
    thank's for heed I add this line at first of my applet :
    UIManager.put( "TextField.font", new Font( "tahoma",1,12 ) );
    but I get this error :
    variable UIManager not found in class test.test at line 109, column 5
    where is UIManager ?
    I'm beginer please explain more!!!!
    thanks

  • Problem populating textfields from sql query

    As seen in the code below I pass a String and a database connection to the constructor of this class. If I use the query commented out in the code the connection works fine and the values text fields get populated with the data. However if I use the uncommented query, the connection fails and so the query is not executed.(Connection code included as well)
    Anyone have any ideas why???
    public invInfoPanel(String name, DBConnection db)
              try
                   this.setBorder(
                        BorderFactory.createCompoundBorder(
                             BorderFactory.createCompoundBorder(
                                                 BorderFactory.createEtchedBorder(),
                                                 BorderFactory.createEmptyBorder(2,2,2,2)),
                             this.getBorder()));
                   panel1 = new JPanel();
                   panel1.setLayout(new GridLayout(0,2,10,10));
                   nameLabel = new JLabel("Name ");
                   panel1.add(nameLabel);
                   nameText = new JTextField(15);
                   panel1.add(nameText);
                   deptLabel = new JLabel("Dept ");
                   panel1.add(deptLabel);
                   deptList = new JComboBox(deptStrings);
                   deptList.setBackground(Color.white);
                   panel1.add(deptList);
                   extLabel = new JLabel("Ext ");
                   panel1.add(extLabel);
                   extText = new JTextField(15);
                   panel1.add(extText);
                   panel2 = new JPanel();
                   panel2.setLayout(new GridLayout(0,1,2,10));
                   saveButton = new JButton("Save");
                   panel2.add(saveButton);     
                   printButton = new JButton("Print ");
                   panel2.add(printButton);
                   cancelButton = new JButton("Cancel");
                   panel2.add(cancelButton);
                   panel3 = new JPanel();
                   blankLabela = new JLabel(" ");
                   panel3.add(blankLabela);
                   panel3.setLayout(new GridLayout(0,4,2,10));
                   searchButton = new JButton("Search by");
                   panel3.add(searchButton);
                   searchList = new JComboBox(searchStrings);
                   searchList.setBackground(Color.white);
                   panel3.add(searchList);
                   blankLabel = new JLabel(" ");
                   panel3.add(blankLabel);
                   this.add(panel1, BorderLayout.WEST);
                   this.add(panel3, BorderLayout.CENTER);
                   this.add(panel2, BorderLayout.EAST);
                   query = ("select STAFF_NAME, DEPT, EXT from INV_DETAILS where STAFF_NAME = " + name);
    //query = ("select STAFF_NAME, DEPT, EXT from INV_DETAILS where EXT = 320);
                   rs = db.runQuery(query);
                   display(rs);
              catch(java.sql.SQLException e)
                   System.out.println("Could not connect");
         public void display(ResultSet rs)
    try
              if(rs != null)
                   if(rs.next())
                        nameText.setText(rs.getString("STAFF_NAME"));
                        deptList.setSelectedItem(rs.getString("DEPT"));
                        extText.setText(rs.getString("EXT"));
              else
                   System.out.println("No record found");
         catch ( SQLException sqlex )
              System.out.println("*** Details Not In Database ***" );
    //----------------DBConnection.java----------------------//
    import java.sql.*;
    import java.util.*;
    public class DBConnection
    static String url =
    "jdbc:oracle:thin:@kiwi.isg.computing.dcu.ie:1521:kiwi";
    String username = getUser();
    String password = getPass();
    static String driver = "oracle.jdbc.OracleDriver";
    Connection connection;
    String status = "Not Connected";
    public DBConnection()
    try
    Class.forName(driver);
    status = "Found Oracle driver, starting to connect...";
    catch (java.lang.ClassNotFoundException e)
    status = "Driver not found";
    return;
    try
    connection = DriverManager.getConnection(url,username,password);
    status = "Connected to Oracle";
    catch(java.sql.SQLException e)
    status = "Could not connect";
    public String getStatus()
    return status;
         public static String getPass()
              String a;
              ResourceBundle myResources1 = ResourceBundle.getBundle("info");
              a = myResources1.getString("password");
              return a;
    public static String getUser()
              String b;
              ResourceBundle myResources1 = ResourceBundle.getBundle("info");
              b = myResources1.getString("username");     
              return b;     
    public ResultSet runQuery(String s) throws java.sql.SQLException
    Statement stmt = connection.createStatement();
    System.out.println(s);
    return stmt.executeQuery(s);
    }

    Actually...got it sorted out. Thanks anyway

Maybe you are looking for

  • ITunes library not syncing to iPod touch, please help!!!

    Hi! I hesitated to upgrade to iOS 6.0.1 until all my songs from my iPod disappeared (but all the songs are still in iTunes library). I thought it was the problem with the software, so I upgraded my iPod to the current version iOS 6.0.1 and itunes to

  • Settlement Through WBS element in CJ88

    Dear Expert, When I going settle one asse through WBS element P05/00204/CB, I got the follwing problem in SAP Down payment to recipient 802000000006 0 area 01 amount 5,142.74 not cleared Message no. AW605 Diagnosis All downpayments were not cleared f

  • Dropping demo tables

    I see that there are a few demo tables in our OCS 9 rel 2 installation. I made a list of all the schemas there: ANONYMOUS     -- For SQL XML (http login) CTXSYS          -- ConTeXt, interMedia, (has funcs for es_mail and ifs) DBSNMP          -- For S

  • Getting JasperException - in a JSP file

    Hello all, I am using a custom tag - that uses a JavaScriptDate bean...i did test it separately it works fine in a Jsp page... Now, I created a Tag class as JavaScriptDateTag.java that has the following code: class JavaScriptDateTag extends TagSuppor

  • From production directly to the customer

    Hi, Some times when I produce the quantities I don´t want to make a putaway because the lorry is waiting. So it is like a cross-selling. My idea is to use a dummy storage location and send the goods to there but I don’t know if the use of doors is be